Class EmailNotification

java.lang.Object
com.azure.resourcemanager.monitor.models.EmailNotification
All Implemented Interfaces:
com.azure.json.JsonSerializable<EmailNotification>

public final class EmailNotification extends Object implements com.azure.json.JsonSerializable<EmailNotification>
Email notification of an autoscale event.
  • Constructor Details

    • EmailNotification

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

    • 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.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<EmailNotification>
      Throws:
      IOException
    • fromJson

      public static EmailNotification fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of EmailNotification from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of EmailNotification if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the EmailNotification.