NotificationSettings Class
- java.
lang. Object - com.
azure. resourcemanager. devtestlabs. models. NotificationSettings
- com.
public final class NotificationSettings
Notification settings for a schedule.
Constructor Summary
Constructor | Description |
---|---|
NotificationSettings() |
Creates an instance of Notification |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
emailRecipient()
Get the email |
String |
notificationLocale()
Get the notification |
Enable |
status()
Get the status property: If notifications are enabled for this schedule (i. |
Integer |
timeInMinutes()
Get the time |
void |
validate()
Validates the instance. |
String |
webhookUrl()
Get the webhook |
Notification |
withEmailRecipient(String emailRecipient)
Set the email |
Notification |
withNotificationLocale(String notificationLocale)
Set the notification |
Notification |
withStatus(EnableStatus status)
Set the status property: If notifications are enabled for this schedule (i. |
Notification |
withTimeInMinutes(Integer timeInMinutes)
Set the time |
Notification |
withWebhookUrl(String webhookUrl)
Set the webhook |
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:
notificationLocale
public String notificationLocale()
Get the notificationLocale property: The locale to use when sending a notification (fallback for unsupported languages is EN).
Returns:
status
public EnableStatus status()
Get the status property: If notifications are enabled for this schedule (i.e. Enabled, Disabled).
Returns:
timeInMinutes
public Integer timeInMinutes()
Get the timeInMinutes property: Time in minutes before event at which notification will be sent.
Returns:
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:
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:
Returns:
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:
Returns:
withStatus
public NotificationSettings withStatus(EnableStatus status)
Set the status property: If notifications are enabled for this schedule (i.e. Enabled, Disabled).
Parameters:
Returns:
withTimeInMinutes
public NotificationSettings withTimeInMinutes(Integer timeInMinutes)
Set the timeInMinutes property: Time in minutes before event at which notification will be sent.
Parameters:
Returns:
withWebhookUrl
public NotificationSettings withWebhookUrl(String webhookUrl)
Set the webhookUrl property: The webhook URL to which the notification will be sent.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for