Class EmailNotification
java.lang.Object
com.azure.resourcemanager.monitor.models.EmailNotification
- All Implemented Interfaces:
com.azure.json.JsonSerializable<EmailNotification>
public final class EmailNotification
extends Object
implements com.azure.json.JsonSerializable<EmailNotification>
Email notification of an autoscale event.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the customEmails property: the custom e-mails list.static EmailNotification
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of EmailNotification from the JsonReader.Get the sendToSubscriptionAdministrator property: a value indicating whether to send email to subscription administrator.Get the sendToSubscriptionCoAdministrators property: a value indicating whether to send email to subscription co-administrators.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withCustomEmails
(List<String> customEmails) Set the customEmails property: the custom e-mails list.withSendToSubscriptionAdministrator
(Boolean sendToSubscriptionAdministrator) Set the sendToSubscriptionAdministrator property: a value indicating whether to send email to subscription administrator.withSendToSubscriptionCoAdministrators
(Boolean sendToSubscriptionCoAdministrators) Set the sendToSubscriptionCoAdministrators property: a value indicating whether to send email to subscription co-administrators.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
EmailNotification
public EmailNotification()Creates an instance of EmailNotification class.
-
-
Method Details
-
sendToSubscriptionAdministrator
Get the sendToSubscriptionAdministrator property: a value indicating whether to send email to subscription administrator.- Returns:
- the sendToSubscriptionAdministrator value.
-
withSendToSubscriptionAdministrator
public EmailNotification withSendToSubscriptionAdministrator(Boolean sendToSubscriptionAdministrator) Set the sendToSubscriptionAdministrator property: a value indicating whether to send email to subscription administrator.- Parameters:
sendToSubscriptionAdministrator
- the sendToSubscriptionAdministrator value to set.- Returns:
- the EmailNotification object itself.
-
sendToSubscriptionCoAdministrators
Get the sendToSubscriptionCoAdministrators property: a value indicating whether to send email to subscription co-administrators.- Returns:
- the sendToSubscriptionCoAdministrators value.
-
withSendToSubscriptionCoAdministrators
public EmailNotification withSendToSubscriptionCoAdministrators(Boolean sendToSubscriptionCoAdministrators) Set the sendToSubscriptionCoAdministrators property: a value indicating whether to send email to subscription co-administrators.- Parameters:
sendToSubscriptionCoAdministrators
- the sendToSubscriptionCoAdministrators value to set.- Returns:
- the EmailNotification object itself.
-
customEmails
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:
- the customEmails value.
-
withCustomEmails
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:
customEmails
- the customEmails value to set.- Returns:
- the EmailNotification object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<EmailNotification>
- Throws:
IOException
-
fromJson
Reads an instance of EmailNotification from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of EmailNotification if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException
- If an error occurs while reading the EmailNotification.
-