Class EmailNotification


  • public final class EmailNotification
    extends Object
    Email notification of an autoscale event.
    • Constructor Detail

      • EmailNotification

        public EmailNotification()
    • Method Detail

      • sendToSubscriptionAdministrator

        public Boolean sendToSubscriptionAdministrator()
        Get the sendToSubscriptionAdministrator property: a value indicating whether to send email to subscription administrator.
        Returns:
        the sendToSubscriptionAdministrator value.
      • withSendToSubscriptionAdministrator

        public EmailNotification withSendToSubscriptionAdministrator​(Boolean sendToSubscriptionAdministrator)
        Set the sendToSubscriptionAdministrator property: a value indicating whether to send email to subscription administrator.
        Parameters:
        sendToSubscriptionAdministrator - the sendToSubscriptionAdministrator value to set.
        Returns:
        the EmailNotification object itself.
      • sendToSubscriptionCoAdministrators

        public Boolean sendToSubscriptionCoAdministrators()
        Get the sendToSubscriptionCoAdministrators property: a value indicating whether to send email to subscription co-administrators.
        Returns:
        the sendToSubscriptionCoAdministrators value.
      • withSendToSubscriptionCoAdministrators

        public EmailNotification withSendToSubscriptionCoAdministrators​(Boolean sendToSubscriptionCoAdministrators)
        Set the sendToSubscriptionCoAdministrators property: a value indicating whether to send email to subscription co-administrators.
        Parameters:
        sendToSubscriptionCoAdministrators - the sendToSubscriptionCoAdministrators value to set.
        Returns:
        the EmailNotification object itself.
      • customEmails

        public List<String> customEmails()
        Get the customEmails property: the custom e-mails list. This value can be null or empty, in which case this attribute will be ignored.
        Returns:
        the customEmails value.
      • withCustomEmails

        public EmailNotification withCustomEmails​(List<String> customEmails)
        Set the customEmails property: the custom e-mails list. This value can be null or empty, in which case this attribute will be ignored.
        Parameters:
        customEmails - the customEmails value to set.
        Returns:
        the EmailNotification object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.