Class NotificationChannelInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.core.management.Resource
com.azure.resourcemanager.devtestlabs.fluent.models.NotificationChannelInner
public final class NotificationChannelInner
extends com.azure.core.management.Resource
A notification.
-
Constructor Summary
ConstructorDescriptionCreates an instance of NotificationChannelInner class. -
Method Summary
Modifier and TypeMethodDescriptionGet the createdDate property: The creation date of the notification channel.Get the description property: Description of notification.Get the emailRecipient property: The email recipient to send notifications to (can be a list of semi-colon separated email addresses).events()
Get the events property: The list of event for which this notification is enabled.Get the notificationLocale property: The locale to use when sending a notification (fallback for unsupported languages is EN).Get the provisioningState property: The provisioning status of the resource.Get the uniqueIdentifier property: The unique immutable identifier of a resource (Guid).void
validate()
Validates the instance.Get the webhookUrl property: The webhook URL to send notifications to.withDescription
(String description) Set the description property: Description of notification.withEmailRecipient
(String emailRecipient) Set the emailRecipient property: The email recipient to send notifications to (can be a list of semi-colon separated email addresses).withEvents
(List<Event> events) Set the events property: The list of event for which this notification is enabled.withLocation
(String location) withNotificationLocale
(String notificationLocale) Set the notificationLocale property: The locale to use when sending a notification (fallback for unsupported languages is EN).withWebhookUrl
(String webhookUrl) Set the webhookUrl property: The webhook URL to send notifications to.Methods inherited from class com.azure.core.management.Resource
location, tags
Methods inherited from class com.azure.core.management.ProxyResource
id, name, type
-
Constructor Details
-
NotificationChannelInner
public NotificationChannelInner()Creates an instance of NotificationChannelInner class.
-
-
Method Details
-
withLocation
- Overrides:
withLocation
in classcom.azure.core.management.Resource
-
withTags
- Overrides:
withTags
in classcom.azure.core.management.Resource
-
webhookUrl
Get the webhookUrl property: The webhook URL to send notifications to.- Returns:
- the webhookUrl value.
-
withWebhookUrl
Set the webhookUrl property: The webhook URL to send notifications to.- Parameters:
webhookUrl
- the webhookUrl value to set.- Returns:
- the NotificationChannelInner object itself.
-
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.
-
withEmailRecipient
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 NotificationChannelInner object itself.
-
notificationLocale
Get the notificationLocale property: The locale to use when sending a notification (fallback for unsupported languages is EN).- Returns:
- the notificationLocale value.
-
withNotificationLocale
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 NotificationChannelInner object itself.
-
description
Get the description property: Description of notification.- Returns:
- the description value.
-
withDescription
Set the description property: Description of notification.- Parameters:
description
- the description value to set.- Returns:
- the NotificationChannelInner object itself.
-
events
Get the events property: The list of event for which this notification is enabled.- Returns:
- the events value.
-
withEvents
Set the events property: The list of event for which this notification is enabled.- Parameters:
events
- the events value to set.- Returns:
- the NotificationChannelInner object itself.
-
createdDate
Get the createdDate property: The creation date of the notification channel.- Returns:
- the createdDate value.
-
provisioningState
Get the provisioningState property: The provisioning status of the resource.- Returns:
- the provisioningState value.
-
uniqueIdentifier
Get the uniqueIdentifier property: The unique immutable identifier of a resource (Guid).- Returns:
- the uniqueIdentifier value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-