Class ActionGroupResourceInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.core.management.Resource
com.azure.resourcemanager.monitor.fluent.models.ActionGroupResourceInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
public final class ActionGroupResourceInner
extends com.azure.core.management.Resource
An action group resource.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ActionGroupResourceInner class. -
Method Summary
Modifier and TypeMethodDescriptionGet the armRoleReceivers property: The list of ARM role receivers that are part of this action group.Get the automationRunbookReceivers property: The list of AutomationRunbook receivers that are part of this action group.Get the azureAppPushReceivers property: The list of AzureAppPush receivers that are part of this action group.Get the azureFunctionReceivers property: The list of azure function receivers that are part of this action group.Get the emailReceivers property: The list of email receivers that are part of this action group.enabled()
Get the enabled property: Indicates whether this action group is enabled.Get the eventHubReceivers property: The list of event hub receivers that are part of this action group.static ActionGroupResourceInner
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of ActionGroupResourceInner from the JsonReader.Get the groupShortName property: The short name of the action group.id()
Get the id property: Fully qualified resource Id for the resource.Get the itsmReceivers property: The list of ITSM receivers that are part of this action group.Get the logicAppReceivers property: The list of logic app receivers that are part of this action group.name()
Get the name property: The name of the resource.Get the smsReceivers property: The list of SMS receivers that are part of this action group.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) type()
Get the type property: The type of the resource.void
validate()
Validates the instance.Get the voiceReceivers property: The list of voice receivers that are part of this action group.Get the webhookReceivers property: The list of webhook receivers that are part of this action group.withArmRoleReceivers
(List<ArmRoleReceiver> armRoleReceivers) Set the armRoleReceivers property: The list of ARM role receivers that are part of this action group.withAutomationRunbookReceivers
(List<AutomationRunbookReceiver> automationRunbookReceivers) Set the automationRunbookReceivers property: The list of AutomationRunbook receivers that are part of this action group.withAzureAppPushReceivers
(List<AzureAppPushReceiver> azureAppPushReceivers) Set the azureAppPushReceivers property: The list of AzureAppPush receivers that are part of this action group.withAzureFunctionReceivers
(List<AzureFunctionReceiver> azureFunctionReceivers) Set the azureFunctionReceivers property: The list of azure function receivers that are part of this action group.withEmailReceivers
(List<EmailReceiver> emailReceivers) Set the emailReceivers property: The list of email receivers that are part of this action group.withEnabled
(Boolean enabled) Set the enabled property: Indicates whether this action group is enabled.withEventHubReceivers
(List<EventHubReceiver> eventHubReceivers) Set the eventHubReceivers property: The list of event hub receivers that are part of this action group.withGroupShortName
(String groupShortName) Set the groupShortName property: The short name of the action group.withItsmReceivers
(List<ItsmReceiver> itsmReceivers) Set the itsmReceivers property: The list of ITSM receivers that are part of this action group.withLocation
(String location) withLogicAppReceivers
(List<LogicAppReceiver> logicAppReceivers) Set the logicAppReceivers property: The list of logic app receivers that are part of this action group.withSmsReceivers
(List<SmsReceiver> smsReceivers) Set the smsReceivers property: The list of SMS receivers that are part of this action group.withVoiceReceivers
(List<VoiceReceiver> voiceReceivers) Set the voiceReceivers property: The list of voice receivers that are part of this action group.withWebhookReceivers
(List<WebhookReceiver> webhookReceivers) Set the webhookReceivers property: The list of webhook receivers that are part of this action group.Methods inherited from class com.azure.core.management.Resource
location, tags
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
-
ActionGroupResourceInner
public ActionGroupResourceInner()Creates an instance of ActionGroupResourceInner class.
-
-
Method Details
-
id
Get the id property: Fully qualified resource Id for the resource.- Overrides:
id
in classcom.azure.core.management.ProxyResource
- Returns:
- the id value.
-
name
Get the name property: The name of the resource.- Overrides:
name
in classcom.azure.core.management.ProxyResource
- Returns:
- the name value.
-
type
Get the type property: The type of the resource.- Overrides:
type
in classcom.azure.core.management.ProxyResource
- Returns:
- the type value.
-
withLocation
- Overrides:
withLocation
in classcom.azure.core.management.Resource
-
withTags
- Overrides:
withTags
in classcom.azure.core.management.Resource
-
groupShortName
Get the groupShortName property: The short name of the action group. This will be used in SMS messages.- Returns:
- the groupShortName value.
-
withGroupShortName
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.
-
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.
-
withEnabled
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.
-
emailReceivers
Get the emailReceivers property: The list of email receivers that are part of this action group.- Returns:
- the emailReceivers value.
-
withEmailReceivers
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.
-
smsReceivers
Get the smsReceivers property: The list of SMS receivers that are part of this action group.- Returns:
- the smsReceivers value.
-
withSmsReceivers
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.
-
webhookReceivers
Get the webhookReceivers property: The list of webhook receivers that are part of this action group.- Returns:
- the webhookReceivers value.
-
withWebhookReceivers
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.
-
itsmReceivers
Get the itsmReceivers property: The list of ITSM receivers that are part of this action group.- Returns:
- the itsmReceivers value.
-
withItsmReceivers
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.
-
azureAppPushReceivers
Get the azureAppPushReceivers property: The list of AzureAppPush receivers that are part of this action group.- Returns:
- the azureAppPushReceivers value.
-
withAzureAppPushReceivers
public ActionGroupResourceInner withAzureAppPushReceivers(List<AzureAppPushReceiver> 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.
-
automationRunbookReceivers
Get the automationRunbookReceivers property: The list of AutomationRunbook receivers that are part of this action group.- Returns:
- the automationRunbookReceivers value.
-
withAutomationRunbookReceivers
public ActionGroupResourceInner withAutomationRunbookReceivers(List<AutomationRunbookReceiver> 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.
-
voiceReceivers
Get the voiceReceivers property: The list of voice receivers that are part of this action group.- Returns:
- the voiceReceivers value.
-
withVoiceReceivers
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.
-
logicAppReceivers
Get the logicAppReceivers property: The list of logic app receivers that are part of this action group.- Returns:
- the logicAppReceivers value.
-
withLogicAppReceivers
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.
-
azureFunctionReceivers
Get the azureFunctionReceivers property: The list of azure function receivers that are part of this action group.- Returns:
- the azureFunctionReceivers value.
-
withAzureFunctionReceivers
public ActionGroupResourceInner withAzureFunctionReceivers(List<AzureFunctionReceiver> 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.
-
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.
-
withArmRoleReceivers
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.
-
eventHubReceivers
Get the eventHubReceivers property: The list of event hub receivers that are part of this action group.- Returns:
- the eventHubReceivers value.
-
withEventHubReceivers
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.
-
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<com.azure.core.management.ProxyResource>
- Overrides:
toJson
in classcom.azure.core.management.Resource
- Throws:
IOException
-
fromJson
public static ActionGroupResourceInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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:
IllegalStateException
- If the deserialized JSON object was missing any required properties.IOException
- If an error occurs while reading the ActionGroupResourceInner.
-