Class NotificationRequestBody
java.lang.Object
com.azure.resourcemanager.monitor.models.NotificationRequestBody
The request body which contain contact detail metadata.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of NotificationRequestBody class. -
Method Summary
Modifier and TypeMethodDescriptionGet the alertType property: The value of the supported alert type.Get 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.Get the eventHubReceivers property: The list of event hub receivers that are part of this action group.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.Get the smsReceivers property: The list of SMS receivers that are part of this action group.voidvalidate()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.withAlertType(String alertType) Set the alertType property: The value of the supported alert type.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.withEventHubReceivers(List<EventHubReceiver> eventHubReceivers) Set the eventHubReceivers property: The list of event hub receivers that are part of this action group.withItsmReceivers(List<ItsmReceiver> itsmReceivers) Set the itsmReceivers property: The list of ITSM receivers that are part of this action group.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.
-
Constructor Details
-
NotificationRequestBody
public NotificationRequestBody()Creates an instance of NotificationRequestBody class.
-
-
Method Details
-
alertType
Get the alertType property: The value of the supported alert type. Supported alert type values are: servicehealth, metricstaticthreshold, metricsdynamicthreshold, logalertv2, smartalert, webtestalert, logalertv1numresult, logalertv1metricmeasurement, resourcehealth, activitylog, budget.- Returns:
- the alertType value.
-
withAlertType
Set the alertType property: The value of the supported alert type. Supported alert type values are: servicehealth, metricstaticthreshold, metricsdynamicthreshold, logalertv2, smartalert, webtestalert, logalertv1numresult, logalertv1metricmeasurement, resourcehealth, activitylog, budget.- Parameters:
alertType- the alertType value to set.- Returns:
- the NotificationRequestBody 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 NotificationRequestBody 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 NotificationRequestBody 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 NotificationRequestBody 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 NotificationRequestBody 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 NotificationRequestBody 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 NotificationRequestBody 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 NotificationRequestBody 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 NotificationRequestBody 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 NotificationRequestBody 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 NotificationRequestBody 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 NotificationRequestBody 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 NotificationRequestBody 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 NotificationRequestBody 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 NotificationRequestBody object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-