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 Details

    • NotificationChannelInner

      public NotificationChannelInner()
      Creates an instance of NotificationChannelInner class.
  • Method Details

    • withLocation

      public NotificationChannelInner withLocation(String location)
      Overrides:
      withLocation in class com.azure.core.management.Resource
    • withTags

      public NotificationChannelInner withTags(Map<String,String> tags)
      Overrides:
      withTags in class com.azure.core.management.Resource
    • webhookUrl

      public String webhookUrl()
      Get the webhookUrl property: The webhook URL to send notifications to.
      Returns:
      the webhookUrl value.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • description

      public String description()
      Get the description property: Description of notification.
      Returns:
      the description 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.
    • events

      public List<Event> events()
      Get the events property: The list of event for which this notification is enabled.
      Returns:
      the events value.
    • withEvents

      public NotificationChannelInner withEvents(List<Event> 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.
    • createdDate

      public OffsetDateTime createdDate()
      Get the createdDate property: The creation date of the notification channel.
      Returns:
      the createdDate 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.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.