Partilhar via


ActionGroupResourceInner Class

public final class ActionGroupResourceInner
extends Resource

An action group resource.

Constructor Summary

Constructor Description
ActionGroupResourceInner()

Creates an instance of ActionGroupResourceInner 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 ActionGroupResourceInner fromJson(JsonReader jsonReader)

Reads an instance of ActionGroupResourceInner from the JsonReader.

String groupShortName()

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

String id()

Get the id property: Fully qualified resource Id for the resource.

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.

String name()

Get the name property: The name of the resource.

List<SmsReceiver> smsReceivers()

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

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

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.

ActionGroupResourceInner withArmRoleReceivers(List<ArmRoleReceiver> armRoleReceivers)

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

ActionGroupResourceInner withAutomationRunbookReceivers(List<AutomationRunbookReceiver> automationRunbookReceivers)

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

ActionGroupResourceInner withAzureAppPushReceivers(List<AzureAppPushReceiver> azureAppPushReceivers)

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

ActionGroupResourceInner withAzureFunctionReceivers(List<AzureFunctionReceiver> azureFunctionReceivers)

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

ActionGroupResourceInner withEmailReceivers(List<EmailReceiver> emailReceivers)

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

ActionGroupResourceInner withEnabled(Boolean enabled)

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

ActionGroupResourceInner withEventHubReceivers(List<EventHubReceiver> eventHubReceivers)

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

ActionGroupResourceInner withGroupShortName(String groupShortName)

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

ActionGroupResourceInner withItsmReceivers(List<ItsmReceiver> itsmReceivers)

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

ActionGroupResourceInner withLocation(String location)
ActionGroupResourceInner withLogicAppReceivers(List<LogicAppReceiver> logicAppReceivers)

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

ActionGroupResourceInner withSmsReceivers(List<SmsReceiver> smsReceivers)

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

ActionGroupResourceInner withTags(Map<String,String> tags)
ActionGroupResourceInner withVoiceReceivers(List<VoiceReceiver> voiceReceivers)

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

ActionGroupResourceInner withWebhookReceivers(List<WebhookReceiver> webhookReceivers)

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

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

ActionGroupResourceInner

public ActionGroupResourceInner()

Creates an instance of ActionGroupResourceInner 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 ActionGroupResourceInner fromJson(JsonReader jsonReader)

Reads an instance of ActionGroupResourceInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

ActionGroupResourceInner.id()

Returns:

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

name

public String name()

Get the name property: The name of the resource.

Overrides:

ActionGroupResourceInner.name()

Returns:

the name 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)

Overrides:

ActionGroupResourceInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

ActionGroupResourceInner.type()

Returns:

the type value.

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 ActionGroupResourceInner 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 ActionGroupResourceInner object itself.

withAutomationRunbookReceivers

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

withAzureAppPushReceivers

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

withAzureFunctionReceivers

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

withEmailReceivers

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

withEnabled

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

withEventHubReceivers

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

withGroupShortName

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

withItsmReceivers

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

withLocation

public ActionGroupResourceInner withLocation(String location)

Overrides:

ActionGroupResourceInner.withLocation(String location)

Parameters:

location

withLogicAppReceivers

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

withSmsReceivers

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

withTags

public ActionGroupResourceInner withTags(Map tags)

Overrides:

ActionGroupResourceInner.withTags(Map<String,String> tags)

Parameters:

tags

withVoiceReceivers

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

withWebhookReceivers

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

Applies to