EmailNotification Class
- java.
lang. Object - com.
azure. resourcemanager. monitor. models. EmailNotification
- com.
Implements
public final class EmailNotification
implements JsonSerializable<EmailNotification>
Email notification of an autoscale event.
Constructor | Description |
---|---|
Email |
Creates an instance of Email |
Modifier and Type | Method and Description |
---|---|
List<String> |
custom Get the custom |
static
Email |
from Reads an instance of Email |
Boolean |
send Get the send |
Boolean |
send Get the send |
Json |
to |
void |
validate()
Validates the instance. |
Email |
with Set the custom |
Email |
with Set the send |
Email |
with Set the send |
Methods inherited from java.lang.Object
EmailNotification
public EmailNotification()
Creates an instance of EmailNotification class.
customEmails
public List
Get the customEmails property: the custom e-mails list. This value can be null or empty, in which case this attribute will be ignored.
Returns:
fromJson
public static EmailNotification fromJson(JsonReader jsonReader)
Reads an instance of EmailNotification from the JsonReader.
Parameters:
Returns:
Throws:
sendToSubscriptionAdministrator
public Boolean sendToSubscriptionAdministrator()
Get the sendToSubscriptionAdministrator property: a value indicating whether to send email to subscription administrator.
Returns:
sendToSubscriptionCoAdministrators
public Boolean sendToSubscriptionCoAdministrators()
Get the sendToSubscriptionCoAdministrators property: a value indicating whether to send email to subscription co-administrators.
Returns:
toJson
validate
public void validate()
Validates the instance.
withCustomEmails
public EmailNotification withCustomEmails(List
Set the customEmails property: the custom e-mails list. This value can be null or empty, in which case this attribute will be ignored.
Parameters:
Returns:
withSendToSubscriptionAdministrator
public EmailNotification withSendToSubscriptionAdministrator(Boolean sendToSubscriptionAdministrator)
Set the sendToSubscriptionAdministrator property: a value indicating whether to send email to subscription administrator.
Parameters:
Returns:
withSendToSubscriptionCoAdministrators
public EmailNotification withSendToSubscriptionCoAdministrators(Boolean sendToSubscriptionCoAdministrators)
Set the sendToSubscriptionCoAdministrators property: a value indicating whether to send email to subscription co-administrators.
Parameters:
Returns: