Class NotificationProperties
java.lang.Object
com.azure.resourcemanager.costmanagement.models.NotificationProperties
The properties of the scheduled action notification.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of NotificationProperties class. -
Method Summary
Modifier and TypeMethodDescriptionlanguage()Get the language property: Locale of the email.message()Get the message property: Optional message to be added in the email.Get the regionalFormat property: Regional format used for formatting date/time and currency values in the email.subject()Get the subject property: Subject of the email.to()Get the to property: Array of email addresses.voidvalidate()Validates the instance.withLanguage(String language) Set the language property: Locale of the email.withMessage(String message) Set the message property: Optional message to be added in the email.withRegionalFormat(String regionalFormat) Set the regionalFormat property: Regional format used for formatting date/time and currency values in the email.withSubject(String subject) Set the subject property: Subject of the email.Set the to property: Array of email addresses.
-
Constructor Details
-
NotificationProperties
public NotificationProperties()Creates an instance of NotificationProperties class.
-
-
Method Details
-
to
Get the to property: Array of email addresses.- Returns:
- the to value.
-
withTo
Set the to property: Array of email addresses.- Parameters:
to- the to value to set.- Returns:
- the NotificationProperties object itself.
-
language
Get the language property: Locale of the email.- Returns:
- the language value.
-
withLanguage
Set the language property: Locale of the email.- Parameters:
language- the language value to set.- Returns:
- the NotificationProperties object itself.
-
message
Get the message property: Optional message to be added in the email. Length is limited to 250 characters.- Returns:
- the message value.
-
withMessage
Set the message property: Optional message to be added in the email. Length is limited to 250 characters.- Parameters:
message- the message value to set.- Returns:
- the NotificationProperties object itself.
-
regionalFormat
Get the regionalFormat property: Regional format used for formatting date/time and currency values in the email.- Returns:
- the regionalFormat value.
-
withRegionalFormat
Set the regionalFormat property: Regional format used for formatting date/time and currency values in the email.- Parameters:
regionalFormat- the regionalFormat value to set.- Returns:
- the NotificationProperties object itself.
-
subject
Get the subject property: Subject of the email. Length is limited to 70 characters.- Returns:
- the subject value.
-
withSubject
Set the subject property: Subject of the email. Length is limited to 70 characters.- Parameters:
subject- the subject value to set.- Returns:
- the NotificationProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-