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 Summary
Constructor | Description |
---|---|
EmailNotification() |
Creates an instance of Email |
Method Summary
Modifier and Type | Method and Description |
---|---|
List<String> |
customEmails()
Get the custom |
static
Email |
fromJson(JsonReader jsonReader)
Reads an instance of Email |
Boolean |
sendToSubscriptionAdministrator()
Get the send |
Boolean |
sendToSubscriptionCoAdministrators()
Get the send |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Email |
withCustomEmails(List<String> customEmails)
Set the custom |
Email |
withSendToSubscriptionAdministrator(Boolean sendToSubscriptionAdministrator)
Set the send |
Email |
withSendToSubscriptionCoAdministrators(Boolean sendToSubscriptionCoAdministrators)
Set the send |
Methods inherited from java.lang.Object
Constructor Details
EmailNotification
public EmailNotification()
Creates an instance of EmailNotification class.
Method Details
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:
Applies to
Azure SDK for Java