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 Summary
ConstructorsConstructorDescriptionCreates an instance of ActivityLogAlertActionGroup class. -
Method Summary
Modifier and TypeMethodDescriptionGet the actionGroupId property: The resource ID of the Action Group.static ActivityLogAlertActionGroup
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of ActivityLogAlertActionGroup from the JsonReader.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.Get the webhookProperties property: the dictionary of custom properties to include with the post operation.withActionGroupId
(String actionGroupId) Set the actionGroupId property: The resource ID of the Action Group.withWebhookProperties
(Map<String, String> webhookProperties) Set the webhookProperties property: the dictionary of custom properties to include with the post operation.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
-
ActivityLogAlertActionGroup
public ActivityLogAlertActionGroup()Creates an instance of ActivityLogAlertActionGroup class.
-
-
Method Details
-
actionGroupId
Get the actionGroupId property: The resource ID of the Action Group. This cannot be null or empty.- Returns:
- the actionGroupId value.
-
withActionGroupId
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
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
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
- Specified by:
toJson
in interfacecom.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.
-