Class ActionDetail
java.lang.Object
com.azure.resourcemanager.monitor.models.ActionDetail
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ActionDetail>
public final class ActionDetail
extends Object
implements com.azure.json.JsonSerializable<ActionDetail>
The action detail.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondetail()
Get the detail property: The detail of the friendly error message.static ActionDetail
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of ActionDetail from the JsonReader.Get the mechanismType property: The mechanism type.name()
Get the name property: The name of the action.sendTime()
Get the sendTime property: The send time.status()
Get the status property: The status of the action.subState()
Get the subState property: The substatus of the action.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withDetail
(String detail) Set the detail property: The detail of the friendly error message.withMechanismType
(String mechanismType) Set the mechanismType property: The mechanism type.Set the name property: The name of the action.withSendTime
(String sendTime) Set the sendTime property: The send time.withStatus
(String status) Set the status property: The status of the action.withSubState
(String subState) Set the subState property: The substatus of the action.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ActionDetail
public ActionDetail()Creates an instance of ActionDetail class.
-
-
Method Details
-
mechanismType
Get the mechanismType property: The mechanism type.- Returns:
- the mechanismType value.
-
withMechanismType
Set the mechanismType property: The mechanism type.- Parameters:
mechanismType
- the mechanismType value to set.- Returns:
- the ActionDetail object itself.
-
name
Get the name property: The name of the action.- Returns:
- the name value.
-
withName
Set the name property: The name of the action.- Parameters:
name
- the name value to set.- Returns:
- the ActionDetail object itself.
-
status
Get the status property: The status of the action.- Returns:
- the status value.
-
withStatus
Set the status property: The status of the action.- Parameters:
status
- the status value to set.- Returns:
- the ActionDetail object itself.
-
subState
Get the subState property: The substatus of the action.- Returns:
- the subState value.
-
withSubState
Set the subState property: The substatus of the action.- Parameters:
subState
- the subState value to set.- Returns:
- the ActionDetail object itself.
-
sendTime
Get the sendTime property: The send time.- Returns:
- the sendTime value.
-
withSendTime
Set the sendTime property: The send time.- Parameters:
sendTime
- the sendTime value to set.- Returns:
- the ActionDetail object itself.
-
detail
Get the detail property: The detail of the friendly error message.- Returns:
- the detail value.
-
withDetail
Set the detail property: The detail of the friendly error message.- Parameters:
detail
- the detail value to set.- Returns:
- the ActionDetail object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<ActionDetail>
- Throws:
IOException
-
fromJson
Reads an instance of ActionDetail from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of ActionDetail if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException
- If an error occurs while reading the ActionDetail.
-