Class NotificationSetting

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

public final class NotificationSetting extends Object implements com.azure.json.JsonSerializable<NotificationSetting>
Configuration for notification.
  • Constructor Details

    • NotificationSetting

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

    • emails

      public List<String> emails()
      Get the emails property: This is the email recipient list which has a limitation of 499 characters in total concat with comma separator.
      Returns:
      the emails value.
    • withEmails

      public NotificationSetting withEmails(List<String> emails)
      Set the emails property: This is the email recipient list which has a limitation of 499 characters in total concat with comma separator.
      Parameters:
      emails - the emails value to set.
      Returns:
      the NotificationSetting object itself.
    • emailOn

      public List<EmailNotificationEnableType> emailOn()
      Get the emailOn property: Send email notification to user on specified notification type.
      Returns:
      the emailOn value.
    • withEmailOn

      public NotificationSetting withEmailOn(List<EmailNotificationEnableType> emailOn)
      Set the emailOn property: Send email notification to user on specified notification type.
      Parameters:
      emailOn - the emailOn value to set.
      Returns:
      the NotificationSetting object itself.
    • webhooks

      public Map<String,Webhook> webhooks()
      Get the webhooks property: Send webhook callback to a service. Key is a user-provided name for the webhook.
      Returns:
      the webhooks value.
    • withWebhooks

      public NotificationSetting withWebhooks(Map<String,Webhook> webhooks)
      Set the webhooks property: Send webhook callback to a service. Key is a user-provided name for the webhook.
      Parameters:
      webhooks - the webhooks value to set.
      Returns:
      the NotificationSetting 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<NotificationSetting>
      Throws:
      IOException
    • fromJson

      public static NotificationSetting fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of NotificationSetting from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of NotificationSetting 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 NotificationSetting.