Class RuleEmailAction
- java.lang.Object
-
- com.azure.resourcemanager.monitor.models.RuleAction
-
- com.azure.resourcemanager.monitor.models.RuleEmailAction
-
public class RuleEmailAction extends RuleAction
Specifies the action to send email when the rule condition is evaluated. The discriminator is always RuleEmailAction in this case.
-
-
Constructor Summary
Constructors Constructor Description RuleEmailAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>customEmails()Get the customEmails property: the list of administrator's custom email addresses to notify of the activation of the alert.BooleansendToServiceOwners()Get the sendToServiceOwners property: Whether the administrators (service and co-administrators) of the service should be notified when the alert is activated.voidvalidate()Validates the instance.RuleEmailActionwithCustomEmails(List<String> customEmails)Set the customEmails property: the list of administrator's custom email addresses to notify of the activation of the alert.RuleEmailActionwithSendToServiceOwners(Boolean sendToServiceOwners)Set the sendToServiceOwners property: Whether the administrators (service and co-administrators) of the service should be notified when the alert is activated.
-
-
-
Method Detail
-
sendToServiceOwners
public Boolean sendToServiceOwners()
Get the sendToServiceOwners property: Whether the administrators (service and co-administrators) of the service should be notified when the alert is activated.- Returns:
- the sendToServiceOwners value.
-
withSendToServiceOwners
public RuleEmailAction withSendToServiceOwners(Boolean sendToServiceOwners)
Set the sendToServiceOwners property: Whether the administrators (service and co-administrators) of the service should be notified when the alert is activated.- Parameters:
sendToServiceOwners- the sendToServiceOwners value to set.- Returns:
- the RuleEmailAction object itself.
-
customEmails
public List<String> customEmails()
Get the customEmails property: the list of administrator's custom email addresses to notify of the activation of the alert.- Returns:
- the customEmails value.
-
withCustomEmails
public RuleEmailAction withCustomEmails(List<String> customEmails)
Set the customEmails property: the list of administrator's custom email addresses to notify of the activation of the alert.- Parameters:
customEmails- the customEmails value to set.- Returns:
- the RuleEmailAction object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validatein classRuleAction- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-