Class NotificationProperties

java.lang.Object
com.azure.resourcemanager.costmanagement.models.NotificationProperties

public final class NotificationProperties extends Object
The properties of the scheduled action notification.
  • Constructor Details

    • NotificationProperties

      public NotificationProperties()
      Creates an instance of NotificationProperties class.
  • Method Details

    • to

      public List<String> to()
      Get the to property: Array of email addresses.
      Returns:
      the to value.
    • withTo

      public NotificationProperties withTo(List<String> to)
      Set the to property: Array of email addresses.
      Parameters:
      to - the to value to set.
      Returns:
      the NotificationProperties object itself.
    • language

      public String language()
      Get the language property: Locale of the email.
      Returns:
      the language value.
    • withLanguage

      public NotificationProperties withLanguage(String language)
      Set the language property: Locale of the email.
      Parameters:
      language - the language value to set.
      Returns:
      the NotificationProperties object itself.
    • message

      public String message()
      Get the message property: Optional message to be added in the email. Length is limited to 250 characters.
      Returns:
      the message value.
    • withMessage

      public NotificationProperties withMessage(String message)
      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

      public String regionalFormat()
      Get the regionalFormat property: Regional format used for formatting date/time and currency values in the email.
      Returns:
      the regionalFormat value.
    • withRegionalFormat

      public NotificationProperties withRegionalFormat(String regionalFormat)
      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

      public String subject()
      Get the subject property: Subject of the email. Length is limited to 70 characters.
      Returns:
      the subject value.
    • withSubject

      public NotificationProperties withSubject(String subject)
      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.