ActionGroup Class

  • java.lang.Object
    • com.azure.resourcemanager.monitor.fluent.models.ActionGroup

Implements

public final class ActionGroup
implements JsonSerializable<ActionGroup>

An Azure action group.

Constructor Summary

Constructor Description
ActionGroup()

Creates an instance of ActionGroup class.

Method Summary

Modifier and Type Method and Description
List<ArmRoleReceiver> armRoleReceivers()

Get the armRoleReceivers property: The list of ARM role receivers that are part of this action group.

List<AutomationRunbookReceiver> automationRunbookReceivers()

Get the automationRunbookReceivers property: The list of AutomationRunbook receivers that are part of this action group.

List<AzureAppPushReceiver> azureAppPushReceivers()

Get the azureAppPushReceivers property: The list of AzureAppPush receivers that are part of this action group.

List<AzureFunctionReceiver> azureFunctionReceivers()

Get the azureFunctionReceivers property: The list of azure function receivers that are part of this action group.

List<EmailReceiver> emailReceivers()

Get the emailReceivers property: The list of email receivers that are part of this action group.

boolean enabled()

Get the enabled property: Indicates whether this action group is enabled.

List<EventHubReceiver> eventHubReceivers()

Get the eventHubReceivers property: The list of event hub receivers that are part of this action group.

static ActionGroup fromJson(JsonReader jsonReader)

Reads an instance of ActionGroup from the JsonReader.

String groupShortName()

Get the groupShortName property: The short name of the action group.

List<ItsmReceiver> itsmReceivers()

Get the itsmReceivers property: The list of ITSM receivers that are part of this action group.

List<LogicAppReceiver> logicAppReceivers()

Get the logicAppReceivers property: The list of logic app receivers that are part of this action group.

List<SmsReceiver> smsReceivers()

Get the smsReceivers property: The list of SMS receivers that are part of this action group.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

List<VoiceReceiver> voiceReceivers()

Get the voiceReceivers property: The list of voice receivers that are part of this action group.

List<WebhookReceiver> webhookReceivers()

Get the webhookReceivers property: The list of webhook receivers that are part of this action group.

ActionGroup withArmRoleReceivers(List<ArmRoleReceiver> armRoleReceivers)

Set the armRoleReceivers property: The list of ARM role receivers that are part of this action group.

ActionGroup withAutomationRunbookReceivers(List<AutomationRunbookReceiver> automationRunbookReceivers)

Set the automationRunbookReceivers property: The list of AutomationRunbook receivers that are part of this action group.

ActionGroup withAzureAppPushReceivers(List<AzureAppPushReceiver> azureAppPushReceivers)

Set the azureAppPushReceivers property: The list of AzureAppPush receivers that are part of this action group.

ActionGroup withAzureFunctionReceivers(List<AzureFunctionReceiver> azureFunctionReceivers)

Set the azureFunctionReceivers property: The list of azure function receivers that are part of this action group.

ActionGroup withEmailReceivers(List<EmailReceiver> emailReceivers)

Set the emailReceivers property: The list of email receivers that are part of this action group.

ActionGroup withEnabled(boolean enabled)

Set the enabled property: Indicates whether this action group is enabled.

ActionGroup withEventHubReceivers(List<EventHubReceiver> eventHubReceivers)

Set the eventHubReceivers property: The list of event hub receivers that are part of this action group.

ActionGroup withGroupShortName(String groupShortName)

Set the groupShortName property: The short name of the action group.

ActionGroup withItsmReceivers(List<ItsmReceiver> itsmReceivers)

Set the itsmReceivers property: The list of ITSM receivers that are part of this action group.

ActionGroup withLogicAppReceivers(List<LogicAppReceiver> logicAppReceivers)

Set the logicAppReceivers property: The list of logic app receivers that are part of this action group.

ActionGroup withSmsReceivers(List<SmsReceiver> smsReceivers)

Set the smsReceivers property: The list of SMS receivers that are part of this action group.

ActionGroup withVoiceReceivers(List<VoiceReceiver> voiceReceivers)

Set the voiceReceivers property: The list of voice receivers that are part of this action group.

ActionGroup withWebhookReceivers(List<WebhookReceiver> webhookReceivers)

Set the webhookReceivers property: The list of webhook receivers that are part of this action group.

Methods inherited from java.lang.Object

Constructor Details

ActionGroup

public ActionGroup()

Creates an instance of ActionGroup class.

Method Details

armRoleReceivers

public List armRoleReceivers()

Get the armRoleReceivers property: The list of ARM role receivers that are part of this action group. Roles are Azure RBAC roles and only built-in roles are supported.

Returns:

the armRoleReceivers value.

automationRunbookReceivers

public List automationRunbookReceivers()

Get the automationRunbookReceivers property: The list of AutomationRunbook receivers that are part of this action group.

Returns:

the automationRunbookReceivers value.

azureAppPushReceivers

public List azureAppPushReceivers()

Get the azureAppPushReceivers property: The list of AzureAppPush receivers that are part of this action group.

Returns:

the azureAppPushReceivers value.

azureFunctionReceivers

public List azureFunctionReceivers()

Get the azureFunctionReceivers property: The list of azure function receivers that are part of this action group.

Returns:

the azureFunctionReceivers value.

emailReceivers

public List emailReceivers()

Get the emailReceivers property: The list of email receivers that are part of this action group.

Returns:

the emailReceivers value.

enabled

public boolean enabled()

Get the enabled property: Indicates whether this action group is enabled. If an action group is not enabled, then none of its receivers will receive communications.

Returns:

the enabled value.

eventHubReceivers

public List eventHubReceivers()

Get the eventHubReceivers property: The list of event hub receivers that are part of this action group.

Returns:

the eventHubReceivers 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.

groupShortName

public String groupShortName()

Get the groupShortName property: The short name of the action group. This will be used in SMS messages.

Returns:

the groupShortName value.

itsmReceivers

public List itsmReceivers()

Get the itsmReceivers property: The list of ITSM receivers that are part of this action group.

Returns:

the itsmReceivers value.

logicAppReceivers

public List logicAppReceivers()

Get the logicAppReceivers property: The list of logic app receivers that are part of this action group.

Returns:

the logicAppReceivers value.

smsReceivers

public List smsReceivers()

Get the smsReceivers property: The list of SMS receivers that are part of this action group.

Returns:

the smsReceivers value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

voiceReceivers

public List voiceReceivers()

Get the voiceReceivers property: The list of voice receivers that are part of this action group.

Returns:

the voiceReceivers value.

webhookReceivers

public List webhookReceivers()

Get the webhookReceivers property: The list of webhook receivers that are part of this action group.

Returns:

the webhookReceivers value.

withArmRoleReceivers

public ActionGroup withArmRoleReceivers(List armRoleReceivers)

Set the armRoleReceivers property: The list of ARM role receivers that are part of this action group. Roles are Azure RBAC roles and only built-in roles are supported.

Parameters:

armRoleReceivers - the armRoleReceivers value to set.

Returns:

the ActionGroup object itself.

withAutomationRunbookReceivers

public ActionGroup withAutomationRunbookReceivers(List automationRunbookReceivers)

Set the automationRunbookReceivers property: The list of AutomationRunbook receivers that are part of this action group.

Parameters:

automationRunbookReceivers - the automationRunbookReceivers value to set.

Returns:

the ActionGroup object itself.

withAzureAppPushReceivers

public ActionGroup withAzureAppPushReceivers(List azureAppPushReceivers)

Set the azureAppPushReceivers property: The list of AzureAppPush receivers that are part of this action group.

Parameters:

azureAppPushReceivers - the azureAppPushReceivers value to set.

Returns:

the ActionGroup object itself.

withAzureFunctionReceivers

public ActionGroup withAzureFunctionReceivers(List azureFunctionReceivers)

Set the azureFunctionReceivers property: The list of azure function receivers that are part of this action group.

Parameters:

azureFunctionReceivers - the azureFunctionReceivers value to set.

Returns:

the ActionGroup object itself.

withEmailReceivers

public ActionGroup withEmailReceivers(List emailReceivers)

Set the emailReceivers property: The list of email receivers that are part of this action group.

Parameters:

emailReceivers - the emailReceivers value to set.

Returns:

the ActionGroup object itself.

withEnabled

public ActionGroup withEnabled(boolean enabled)

Set the enabled property: Indicates whether this action group is enabled. If an action group is not enabled, then none of its receivers will receive communications.

Parameters:

enabled - the enabled value to set.

Returns:

the ActionGroup object itself.

withEventHubReceivers

public ActionGroup withEventHubReceivers(List eventHubReceivers)

Set the eventHubReceivers property: The list of event hub receivers that are part of this action group.

Parameters:

eventHubReceivers - the eventHubReceivers value to set.

Returns:

the ActionGroup object itself.

withGroupShortName

public ActionGroup withGroupShortName(String groupShortName)

Set the groupShortName property: The short name of the action group. This will be used in SMS messages.

Parameters:

groupShortName - the groupShortName value to set.

Returns:

the ActionGroup object itself.

withItsmReceivers

public ActionGroup withItsmReceivers(List itsmReceivers)

Set the itsmReceivers property: The list of ITSM receivers that are part of this action group.

Parameters:

itsmReceivers - the itsmReceivers value to set.

Returns:

the ActionGroup object itself.

withLogicAppReceivers

public ActionGroup withLogicAppReceivers(List logicAppReceivers)

Set the logicAppReceivers property: The list of logic app receivers that are part of this action group.

Parameters:

logicAppReceivers - the logicAppReceivers value to set.

Returns:

the ActionGroup object itself.

withSmsReceivers

public ActionGroup withSmsReceivers(List smsReceivers)

Set the smsReceivers property: The list of SMS receivers that are part of this action group.

Parameters:

smsReceivers - the smsReceivers value to set.

Returns:

the ActionGroup object itself.

withVoiceReceivers

public ActionGroup withVoiceReceivers(List voiceReceivers)

Set the voiceReceivers property: The list of voice receivers that are part of this action group.

Parameters:

voiceReceivers - the voiceReceivers value to set.

Returns:

the ActionGroup object itself.

withWebhookReceivers

public ActionGroup withWebhookReceivers(List webhookReceivers)

Set the webhookReceivers property: The list of webhook receivers that are part of this action group.

Parameters:

webhookReceivers - the webhookReceivers value to set.

Returns:

the ActionGroup object itself.

Applies to