NotificationSetting Class

  • java.lang.Object
    • com.azure.resourcemanager.machinelearning.models.NotificationSetting

Implements

public final class NotificationSetting
implements JsonSerializable<NotificationSetting>

Configuration for notification.

Constructor Summary

Constructor Description
NotificationSetting()

Creates an instance of NotificationSetting class.

Method Summary

Modifier and Type Method and Description
List<EmailNotificationEnableType> emailOn()

Get the emailOn property: Send email notification to user on specified notification type.

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 NotificationSetting fromJson(JsonReader jsonReader)

Reads an instance of NotificationSetting from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Map<String,Webhook> webhooks()

Get the webhooks property: Send webhook callback to a service.

NotificationSetting withEmailOn(List<EmailNotificationEnableType> emailOn)

Set the emailOn property: Send email notification to user on specified notification type.

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.

NotificationSetting 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:

the emailOn value.

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.

fromJson

public static NotificationSetting fromJson(JsonReader jsonReader)

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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

the webhooks 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.

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.

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.

Applies to