Class EmailReceiver
java.lang.Object
com.microsoft.azure.management.monitor.EmailReceiver
An email receiver.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the email address of this receiver.name()
Get the name of the email receiver.status()
Get the receiver status of the e-mail.boolean
Get indicates whether to use common alert schema.withEmailAddress
(String emailAddress) Set the email address of this receiver.Set the name of the email receiver.withUseCommonAlertSchema
(boolean useCommonAlertSchema) Set indicates whether to use common alert schema.
-
Constructor Details
-
EmailReceiver
public EmailReceiver()
-
-
Method Details
-
name
Get 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 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 email address of this receiver.- Returns:
- the emailAddress value
-
withEmailAddress
Set the email address of this receiver.- Parameters:
emailAddress
- the emailAddress value to set- Returns:
- the EmailReceiver object itself.
-
useCommonAlertSchema
public boolean useCommonAlertSchema()Get indicates whether to use common alert schema.- Returns:
- the useCommonAlertSchema value
-
withUseCommonAlertSchema
Set indicates whether to use common alert schema.- Parameters:
useCommonAlertSchema
- the useCommonAlertSchema value to set- Returns:
- the EmailReceiver object itself.
-
status
Get the receiver status of the e-mail. Possible values include: 'NotSpecified', 'Enabled', 'Disabled'.- Returns:
- the status value
-