Class EmailReceiver
java.lang.Object
com.azure.resourcemanager.monitor.models.EmailReceiver
An email receiver.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the emailAddress property: The email address of this receiver.name()Get the name property: The name of the email receiver.status()Get the status property: The receiver status of the e-mail.Get the useCommonAlertSchema property: Indicates whether to use common alert schema.voidvalidate()Validates the instance.withEmailAddress(String emailAddress) Set the emailAddress property: The email address of this receiver.Set the name property: The name of the email receiver.withUseCommonAlertSchema(Boolean useCommonAlertSchema) Set the useCommonAlertSchema property: Indicates whether to use common alert schema.
-
Constructor Details
-
EmailReceiver
public EmailReceiver()Creates an instance of EmailReceiver class.
-
-
Method Details
-
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.
-
withName
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.
-
emailAddress
Get the emailAddress property: The email address of this receiver.- Returns:
- the emailAddress value.
-
withEmailAddress
Set the emailAddress property: The email address of this receiver.- Parameters:
emailAddress- the emailAddress value to set.- Returns:
- the EmailReceiver object itself.
-
useCommonAlertSchema
Get the useCommonAlertSchema property: Indicates whether to use common alert schema.- Returns:
- the useCommonAlertSchema value.
-
withUseCommonAlertSchema
Set the useCommonAlertSchema property: Indicates whether to use common alert schema.- Parameters:
useCommonAlertSchema- the useCommonAlertSchema value to set.- Returns:
- the EmailReceiver object itself.
-
status
Get the status property: The receiver status of the e-mail.- Returns:
- the status value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-