public class RuleEmailAction extends RuleAction
| Constructor and Description |
|---|
RuleEmailAction() |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
customEmails()
Get the customEmails property: the list of administrator's custom email addresses to notify of the activation of
the alert.
|
Boolean |
sendToServiceOwners()
Get the sendToServiceOwners property: Whether the administrators (service and co-administrators) of the service
should be notified when the alert is activated.
|
void |
validate()
Validates the instance.
|
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.
|
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.
|
public Boolean sendToServiceOwners()
public RuleEmailAction withSendToServiceOwners(Boolean sendToServiceOwners)
sendToServiceOwners - the sendToServiceOwners value to set.public List<String> customEmails()
public RuleEmailAction withCustomEmails(List<String> customEmails)
customEmails - the customEmails value to set.public void validate()
validate in class RuleActionIllegalArgumentException - thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.