Class ActivityLogAlertActionGroup

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

public final class ActivityLogAlertActionGroup extends Object implements com.azure.json.JsonSerializable<ActivityLogAlertActionGroup>
A pointer to an Azure Action Group.
  • Constructor Details

    • ActivityLogAlertActionGroup

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

    • actionGroupId

      public String actionGroupId()
      Get the actionGroupId property: The resource ID of the Action Group. This cannot be null or empty.
      Returns:
      the actionGroupId value.
    • withActionGroupId

      public ActivityLogAlertActionGroup withActionGroupId(String actionGroupId)
      Set the actionGroupId property: The resource ID of the Action Group. This cannot be null or empty.
      Parameters:
      actionGroupId - the actionGroupId value to set.
      Returns:
      the ActivityLogAlertActionGroup object itself.
    • webhookProperties

      public Map<String,String> webhookProperties()
      Get the webhookProperties property: the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload.
      Returns:
      the webhookProperties value.
    • withWebhookProperties

      public ActivityLogAlertActionGroup withWebhookProperties(Map<String,String> webhookProperties)
      Set the webhookProperties property: the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload.
      Parameters:
      webhookProperties - the webhookProperties value to set.
      Returns:
      the ActivityLogAlertActionGroup 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<ActivityLogAlertActionGroup>
      Throws:
      IOException
    • fromJson

      public static ActivityLogAlertActionGroup fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ActivityLogAlertActionGroup from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ActivityLogAlertActionGroup if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the ActivityLogAlertActionGroup.