EmailNotification Class

  • java.lang.Object
    • com.azure.resourcemanager.monitor.models.EmailNotification

Implements

public final class EmailNotification
implements JsonSerializable<EmailNotification>

Email notification of an autoscale event.

Constructor Summary

Constructor Description
EmailNotification()

Creates an instance of EmailNotification class.

Method Summary

Modifier and Type Method and Description
List<String> customEmails()

Get the customEmails property: the custom e-mails list.

static EmailNotification fromJson(JsonReader jsonReader)

Reads an instance of EmailNotification from the JsonReader.

Boolean sendToSubscriptionAdministrator()

Get the sendToSubscriptionAdministrator property: a value indicating whether to send email to subscription administrator.

Boolean sendToSubscriptionCoAdministrators()

Get the sendToSubscriptionCoAdministrators property: a value indicating whether to send email to subscription co-administrators.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

EmailNotification withCustomEmails(List<String> customEmails)

Set the customEmails property: the custom e-mails list.

EmailNotification withSendToSubscriptionAdministrator(Boolean sendToSubscriptionAdministrator)

Set the sendToSubscriptionAdministrator property: a value indicating whether to send email to subscription administrator.

EmailNotification withSendToSubscriptionCoAdministrators(Boolean sendToSubscriptionCoAdministrators)

Set the sendToSubscriptionCoAdministrators property: a value indicating whether to send email to subscription co-administrators.

Methods inherited from java.lang.Object

Constructor Details

EmailNotification

public EmailNotification()

Creates an instance of EmailNotification class.

Method Details

customEmails

public List 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.

fromJson

public static EmailNotification fromJson(JsonReader jsonReader)

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.

sendToSubscriptionAdministrator

public Boolean sendToSubscriptionAdministrator()

Get the sendToSubscriptionAdministrator property: a value indicating whether to send email to subscription administrator.

Returns:

the sendToSubscriptionAdministrator value.

sendToSubscriptionCoAdministrators

public Boolean sendToSubscriptionCoAdministrators()

Get the sendToSubscriptionCoAdministrators property: a value indicating whether to send email to subscription co-administrators.

Returns:

the sendToSubscriptionCoAdministrators value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCustomEmails

public EmailNotification withCustomEmails(List customEmails)

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.

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.

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.

Applies to