ActivityLogAlertActionGroup Class

  • java.lang.Object
    • com.azure.resourcemanager.monitor.models.ActivityLogAlertActionGroup

Implements

public final class ActivityLogAlertActionGroup
implements JsonSerializable<ActivityLogAlertActionGroup>

A pointer to an Azure Action Group.

Constructor Summary

Constructor Description
ActivityLogAlertActionGroup()

Creates an instance of ActivityLogAlertActionGroup class.

Method Summary

Modifier and Type Method and Description
String actionGroupId()

Get the actionGroupId property: The resource ID of the Action Group.

static ActivityLogAlertActionGroup fromJson(JsonReader jsonReader)

Reads an instance of ActivityLogAlertActionGroup from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Map<String,String> webhookProperties()

Get the webhookProperties property: the dictionary of custom properties to include with the post operation.

ActivityLogAlertActionGroup withActionGroupId(String actionGroupId)

Set the actionGroupId property: The resource ID of the Action Group.

ActivityLogAlertActionGroup withWebhookProperties(Map<String,String> webhookProperties)

Set the webhookProperties property: the dictionary of custom properties to include with the post operation.

Methods inherited from java.lang.Object

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.

fromJson

public static ActivityLogAlertActionGroup fromJson(JsonReader jsonReader)

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:

IOException

- If the deserialized JSON object was missing any required properties.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

webhookProperties

public Map 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.

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.

withWebhookProperties

public ActivityLogAlertActionGroup withWebhookProperties(Map 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.

Applies to