NotificationSettings Class

  • java.lang.Object
    • com.azure.resourcemanager.devtestlabs.models.NotificationSettings

public final class NotificationSettings

Notification settings for a schedule.

Constructor Summary

Constructor Description
NotificationSettings()

Creates an instance of NotificationSettings class.

Method Summary

Modifier and Type Method and Description
String emailRecipient()

Get the emailRecipient property: The email recipient to send notifications to (can be a list of semi-colon separated email addresses).

String notificationLocale()

Get the notificationLocale property: The locale to use when sending a notification (fallback for unsupported languages is EN).

EnableStatus status()

Get the status property: If notifications are enabled for this schedule (i.e.

Integer timeInMinutes()

Get the timeInMinutes property: Time in minutes before event at which notification will be sent.

void validate()

Validates the instance.

String webhookUrl()

Get the webhookUrl property: The webhook URL to which the notification will be sent.

NotificationSettings withEmailRecipient(String emailRecipient)

Set the emailRecipient property: The email recipient to send notifications to (can be a list of semi-colon separated email addresses).

NotificationSettings withNotificationLocale(String notificationLocale)

Set the notificationLocale property: The locale to use when sending a notification (fallback for unsupported languages is EN).

NotificationSettings withStatus(EnableStatus status)

Set the status property: If notifications are enabled for this schedule (i.e.

NotificationSettings withTimeInMinutes(Integer timeInMinutes)

Set the timeInMinutes property: Time in minutes before event at which notification will be sent.

NotificationSettings withWebhookUrl(String webhookUrl)

Set the webhookUrl property: The webhook URL to which the notification will be sent.

Methods inherited from java.lang.Object

Constructor Details

NotificationSettings

public NotificationSettings()

Creates an instance of NotificationSettings class.

Method Details

emailRecipient

public String emailRecipient()

Get the emailRecipient property: The email recipient to send notifications to (can be a list of semi-colon separated email addresses).

Returns:

the emailRecipient value.

notificationLocale

public String notificationLocale()

Get the notificationLocale property: The locale to use when sending a notification (fallback for unsupported languages is EN).

Returns:

the notificationLocale value.

status

public EnableStatus status()

Get the status property: If notifications are enabled for this schedule (i.e. Enabled, Disabled).

Returns:

the status value.

timeInMinutes

public Integer timeInMinutes()

Get the timeInMinutes property: Time in minutes before event at which notification will be sent.

Returns:

the timeInMinutes value.

validate

public void validate()

Validates the instance.

webhookUrl

public String webhookUrl()

Get the webhookUrl property: The webhook URL to which the notification will be sent.

Returns:

the webhookUrl value.

withEmailRecipient

public NotificationSettings withEmailRecipient(String emailRecipient)

Set the emailRecipient property: The email recipient to send notifications to (can be a list of semi-colon separated email addresses).

Parameters:

emailRecipient - the emailRecipient value to set.

Returns:

the NotificationSettings object itself.

withNotificationLocale

public NotificationSettings withNotificationLocale(String notificationLocale)

Set the notificationLocale property: The locale to use when sending a notification (fallback for unsupported languages is EN).

Parameters:

notificationLocale - the notificationLocale value to set.

Returns:

the NotificationSettings object itself.

withStatus

public NotificationSettings withStatus(EnableStatus status)

Set the status property: If notifications are enabled for this schedule (i.e. Enabled, Disabled).

Parameters:

status - the status value to set.

Returns:

the NotificationSettings object itself.

withTimeInMinutes

public NotificationSettings withTimeInMinutes(Integer timeInMinutes)

Set the timeInMinutes property: Time in minutes before event at which notification will be sent.

Parameters:

timeInMinutes - the timeInMinutes value to set.

Returns:

the NotificationSettings object itself.

withWebhookUrl

public NotificationSettings withWebhookUrl(String webhookUrl)

Set the webhookUrl property: The webhook URL to which the notification will be sent.

Parameters:

webhookUrl - the webhookUrl value to set.

Returns:

the NotificationSettings object itself.

Applies to