EmailReceiver Class
- java.
lang. Object - com.
azure. resourcemanager. monitor. models. EmailReceiver
- com.
Implements
public final class EmailReceiver
implements JsonSerializable<EmailReceiver>
An email receiver.
Constructor Summary
Constructor | Description |
---|---|
EmailReceiver() |
Creates an instance of Email |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
emailAddress()
Get the email |
static
Email |
fromJson(JsonReader jsonReader)
Reads an instance of Email |
String |
name()
Get the name property: The name of the email receiver. |
Receiver |
status()
Get the status property: The receiver status of the e-mail. |
Json |
toJson(JsonWriter jsonWriter) |
Boolean |
useCommonAlertSchema()
Get the use |
void |
validate()
Validates the instance. |
Email |
withEmailAddress(String emailAddress)
Set the email |
Email |
withName(String name)
Set the name property: The name of the email receiver. |
Email |
withUseCommonAlertSchema(Boolean useCommonAlertSchema)
Set the use |
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:
fromJson
public static EmailReceiver fromJson(JsonReader jsonReader)
Reads an instance of EmailReceiver from the JsonReader.
Parameters:
Returns:
Throws:
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:
status
public ReceiverStatus status()
Get the status property: The receiver status of the e-mail.
Returns:
toJson
useCommonAlertSchema
public Boolean useCommonAlertSchema()
Get the useCommonAlertSchema property: Indicates whether to use common alert schema.
Returns:
validate
public void validate()
Validates the instance.
withEmailAddress
public EmailReceiver withEmailAddress(String emailAddress)
Set the emailAddress property: The email address of this receiver.
Parameters:
Returns:
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:
Returns:
withUseCommonAlertSchema
public EmailReceiver withUseCommonAlertSchema(Boolean useCommonAlertSchema)
Set the useCommonAlertSchema property: Indicates whether to use common alert schema.
Parameters:
Returns:
Applies to
Azure SDK for Java