ActionGroup Class

  • java.lang.Object
    • com.azure.resourcemanager.alertsmanagement.models.ActionGroup

Implements

public final class ActionGroup
implements JsonSerializable<ActionGroup>

A pointer to an Azure Action Group.

Constructor Summary

Constructor Description
ActionGroup()

Creates an instance of ActionGroup class.

Method Summary

Modifier and Type Method and Description
String actionGroupId()

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

Map<String,String> actionProperties()

Get the actionProperties property: Predefined list of properties and configuration items for the action group.

static ActionGroup fromJson(JsonReader jsonReader)

Reads an instance of ActionGroup 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.

ActionGroup withActionGroupId(String actionGroupId)

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

ActionGroup withActionProperties(Map<String,String> actionProperties)

Set the actionProperties property: Predefined list of properties and configuration items for the action group.

ActionGroup 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

ActionGroup

public ActionGroup()

Creates an instance of ActionGroup 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.

actionProperties

public Map<String,String> actionProperties()

Get the actionProperties property: Predefined list of properties and configuration items for the action group.

Returns:

the actionProperties value.

fromJson

public static ActionGroup fromJson(JsonReader jsonReader)

Reads an instance of ActionGroup from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ActionGroup 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<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.

withActionGroupId

public ActionGroup 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 ActionGroup object itself.

withActionProperties

public ActionGroup withActionProperties(Map<String,String> actionProperties)

Set the actionProperties property: Predefined list of properties and configuration items for the action group.

Parameters:

actionProperties - the actionProperties value to set.

Returns:

the ActionGroup object itself.

withWebhookProperties

public ActionGroup 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 ActionGroup object itself.

Applies to