NotificationChannelInner Class

public final class NotificationChannelInner
extends Resource

A notification.

Constructor Summary

Constructor Description
NotificationChannelInner()

Creates an instance of NotificationChannelInner class.

Method Summary

Modifier and Type Method and Description
OffsetDateTime createdDate()

Get the createdDate property: The creation date of the notification channel.

String description()

Get the description property: Description of notification.

String emailRecipient()

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

List<Event> events()

Get the events property: The list of event for which this notification is enabled.

String notificationLocale()

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

String provisioningState()

Get the provisioningState property: The provisioning status of the resource.

String uniqueIdentifier()

Get the uniqueIdentifier property: The unique immutable identifier of a resource (Guid).

void validate()

Validates the instance.

String webhookUrl()

Get the webhookUrl property: The webhook URL to send notifications to.

NotificationChannelInner withDescription(String description)

Set the description property: Description of notification.

NotificationChannelInner withEmailRecipient(String emailRecipient)

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

NotificationChannelInner withEvents(List<Event> events)

Set the events property: The list of event for which this notification is enabled.

NotificationChannelInner withLocation(String location)
NotificationChannelInner withNotificationLocale(String notificationLocale)

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

NotificationChannelInner withTags(Map<String,String> tags)
NotificationChannelInner withWebhookUrl(String webhookUrl)

Set the webhookUrl property: The webhook URL to send notifications to.

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

NotificationChannelInner

public NotificationChannelInner()

Creates an instance of NotificationChannelInner class.

Method Details

createdDate

public OffsetDateTime createdDate()

Get the createdDate property: The creation date of the notification channel.

Returns:

the createdDate value.

description

public String description()

Get the description property: Description of notification.

Returns:

the description value.

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.

events

public List events()

Get the events property: The list of event for which this notification is enabled.

Returns:

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

provisioningState

public String provisioningState()

Get the provisioningState property: The provisioning status of the resource.

Returns:

the provisioningState value.

uniqueIdentifier

public String uniqueIdentifier()

Get the uniqueIdentifier property: The unique immutable identifier of a resource (Guid).

Returns:

the uniqueIdentifier value.

validate

public void validate()

Validates the instance.

webhookUrl

public String webhookUrl()

Get the webhookUrl property: The webhook URL to send notifications to.

Returns:

the webhookUrl value.

withDescription

public NotificationChannelInner withDescription(String description)

Set the description property: Description of notification.

Parameters:

description - the description value to set.

Returns:

the NotificationChannelInner object itself.

withEmailRecipient

public NotificationChannelInner 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 NotificationChannelInner object itself.

withEvents

public NotificationChannelInner withEvents(List events)

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.

withLocation

public NotificationChannelInner withLocation(String location)

Overrides:

NotificationChannelInner.withLocation(String location)

Parameters:

location

withNotificationLocale

public NotificationChannelInner 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 NotificationChannelInner object itself.

withTags

public NotificationChannelInner withTags(Map tags)

Overrides:

NotificationChannelInner.withTags(Map<String,String> tags)

Parameters:

tags

withWebhookUrl

public NotificationChannelInner withWebhookUrl(String webhookUrl)

Set the webhookUrl property: The webhook URL to send notifications to.

Parameters:

webhookUrl - the webhookUrl value to set.

Returns:

the NotificationChannelInner object itself.

Applies to