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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionemailOn()Get the emailOn property: Send email notification to user on specified notification type.emails()Get the emails property: This is the email recipient list which has a limitation of 499 characters in total concat with comma separator.static NotificationSettingfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of NotificationSetting from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.webhooks()Get the webhooks property: Send webhook callback to a service.withEmailOn(List<EmailNotificationEnableType> emailOn) Set the emailOn property: Send email notification to user on specified notification type.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.withWebhooks(Map<String, Webhook> webhooks) Set the webhooks property: Send webhook callback to a service.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
NotificationSetting
public NotificationSetting()Creates an instance of NotificationSetting class.
-
-
Method Details
-
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
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
Get the emailOn property: Send email notification to user on specified notification type.- Returns:
- the emailOn value.
-
withEmailOn
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
Get the webhooks property: Send webhook callback to a service. Key is a user-provided name for the webhook.- Returns:
- the webhooks value.
-
withWebhooks
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
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<NotificationSetting>- Throws:
IOException
-
fromJson
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.
-