java.lang.Object
com.azure.resourcemanager.monitor.models.Actions
All Implemented Interfaces:
com.azure.json.JsonSerializable<Actions>

public final class Actions extends Object implements com.azure.json.JsonSerializable<Actions>
Actions to invoke when the alert fires.
  • Constructor Details

    • Actions

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

    • actionGroups

      public List<String> actionGroups()
      Get the actionGroups property: Action Group resource Ids to invoke when the alert fires.
      Returns:
      the actionGroups value.
    • withActionGroups

      public Actions withActionGroups(List<String> actionGroups)
      Set the actionGroups property: Action Group resource Ids to invoke when the alert fires.
      Parameters:
      actionGroups - the actionGroups value to set.
      Returns:
      the Actions object itself.
    • customProperties

      public Map<String,String> customProperties()
      Get the customProperties property: The properties of an alert payload.
      Returns:
      the customProperties value.
    • withCustomProperties

      public Actions withCustomProperties(Map<String,String> customProperties)
      Set the customProperties property: The properties of an alert payload.
      Parameters:
      customProperties - the customProperties value to set.
      Returns:
      the Actions 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<Actions>
      Throws:
      IOException
    • fromJson

      public static Actions fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of Actions from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of Actions 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 Actions.