NotificationSetting Class
- java.
lang. Object - com.
azure. resourcemanager. machinelearning. models. NotificationSetting
- com.
Implements
public final class NotificationSetting
implements JsonSerializable<NotificationSetting>
Configuration for notification.
Constructor Summary
| Constructor | Description |
|---|---|
| NotificationSetting() |
Creates an instance of Notification |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
List<Email |
emailOn()
Get the email |
| 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. |
|
static
Notification |
fromJson(JsonReader jsonReader)
Reads an instance of Notification |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
| Map<String,Webhook> |
webhooks()
Get the webhooks property: Send webhook callback to a service. |
|
Notification |
withEmailOn(List<EmailNotificationEnableType> emailOn)
Set the email |
|
Notification |
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. |
|
Notification |
withWebhooks(Map<String,Webhook> webhooks)
Set the webhooks property: Send webhook callback to a service. |
Methods inherited from java.lang.Object
Constructor Details
NotificationSetting
public NotificationSetting()
Creates an instance of NotificationSetting class.
Method Details
emailOn
public List<EmailNotificationEnableType> emailOn()
Get the emailOn property: Send email notification to user on specified notification type.
Returns:
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:
fromJson
public static NotificationSetting fromJson(JsonReader jsonReader)
Reads an instance of NotificationSetting from the JsonReader.
Parameters:
Returns:
Throws:
toJson
validate
public void validate()
Validates the instance.
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:
withEmailOn
public NotificationSetting withEmailOn(List<EmailNotificationEnableType> emailOn)
Set the emailOn property: Send email notification to user on specified notification type.
Parameters:
Returns:
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:
Returns:
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:
Returns: