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 Details

    • ActionDetail

      public ActionDetail()
      Creates an instance of ActionDetail class.
  • Method Details

    • mechanismType

      public String mechanismType()
      Get the mechanismType property: The mechanism type.
      Returns:
      the mechanismType value.
    • withMechanismType

      public ActionDetail withMechanismType(String mechanismType)
      Set the mechanismType property: The mechanism type.
      Parameters:
      mechanismType - the mechanismType value to set.
      Returns:
      the ActionDetail object itself.
    • name

      public String name()
      Get the name property: The name of the action.
      Returns:
      the name value.
    • withName

      public ActionDetail withName(String name)
      Set the name property: The name of the action.
      Parameters:
      name - the name value to set.
      Returns:
      the ActionDetail object itself.
    • status

      public String status()
      Get the status property: The status of the action.
      Returns:
      the status value.
    • withStatus

      public ActionDetail withStatus(String status)
      Set the status property: The status of the action.
      Parameters:
      status - the status value to set.
      Returns:
      the ActionDetail object itself.
    • subState

      public String subState()
      Get the subState property: The substatus of the action.
      Returns:
      the subState value.
    • withSubState

      public ActionDetail withSubState(String subState)
      Set the subState property: The substatus of the action.
      Parameters:
      subState - the subState value to set.
      Returns:
      the ActionDetail object itself.
    • sendTime

      public String sendTime()
      Get the sendTime property: The send time.
      Returns:
      the sendTime value.
    • withSendTime

      public ActionDetail withSendTime(String sendTime)
      Set the sendTime property: The send time.
      Parameters:
      sendTime - the sendTime value to set.
      Returns:
      the ActionDetail object itself.
    • detail

      public String detail()
      Get the detail property: The detail of the friendly error message.
      Returns:
      the detail value.
    • withDetail

      public ActionDetail withDetail(String detail)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<ActionDetail>
      Throws:
      IOException
    • fromJson

      public static ActionDetail fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.