Partilhar via


EmailReceiver Class

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

Implements

public final class EmailReceiver
implements JsonSerializable<EmailReceiver>

An email receiver.

Constructor Summary

Constructor Description
EmailReceiver()

Creates an instance of EmailReceiver class.

Method Summary

Modifier and Type Method and Description
String emailAddress()

Get the emailAddress property: The email address of this receiver.

static EmailReceiver fromJson(JsonReader jsonReader)

Reads an instance of EmailReceiver from the JsonReader.

String name()

Get the name property: The name of the email receiver.

ReceiverStatus status()

Get the status property: The receiver status of the e-mail.

JsonWriter toJson(JsonWriter jsonWriter)
Boolean useCommonAlertSchema()

Get the useCommonAlertSchema property: Indicates whether to use common alert schema.

void validate()

Validates the instance.

EmailReceiver withEmailAddress(String emailAddress)

Set the emailAddress property: The email address of this receiver.

EmailReceiver withName(String name)

Set the name property: The name of the email receiver.

EmailReceiver withUseCommonAlertSchema(Boolean useCommonAlertSchema)

Set the useCommonAlertSchema property: Indicates whether to use common alert schema.

Methods inherited from java.lang.Object

Constructor Details

EmailReceiver

public EmailReceiver()

Creates an instance of EmailReceiver class.

Method Details

emailAddress

public String emailAddress()

Get the emailAddress property: The email address of this receiver.

Returns:

the emailAddress value.

fromJson

public static EmailReceiver fromJson(JsonReader jsonReader)

Reads an instance of EmailReceiver from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of EmailReceiver if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

name

public String name()

Get the name property: The name of the email receiver. Names must be unique across all receivers within an action group.

Returns:

the name value.

status

public ReceiverStatus status()

Get the status property: The receiver status of the e-mail.

Returns:

the status value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

useCommonAlertSchema

public Boolean useCommonAlertSchema()

Get the useCommonAlertSchema property: Indicates whether to use common alert schema.

Returns:

the useCommonAlertSchema value.

validate

public void validate()

Validates the instance.

withEmailAddress

public EmailReceiver withEmailAddress(String emailAddress)

Set the emailAddress property: The email address of this receiver.

Parameters:

emailAddress - the emailAddress value to set.

Returns:

the EmailReceiver object itself.

withName

public EmailReceiver withName(String name)

Set the name property: The name of the email receiver. Names must be unique across all receivers within an action group.

Parameters:

name - the name value to set.

Returns:

the EmailReceiver object itself.

withUseCommonAlertSchema

public EmailReceiver withUseCommonAlertSchema(Boolean useCommonAlertSchema)

Set the useCommonAlertSchema property: Indicates whether to use common alert schema.

Parameters:

useCommonAlertSchema - the useCommonAlertSchema value to set.

Returns:

the EmailReceiver object itself.

Applies to