NotificationTarget Class
- java.
lang. Object - com.
azure. resourcemanager. servicefabric. models. NotificationTarget
- com.
public final class NotificationTarget
Describes the notification target properties.
Constructor Summary
Constructor | Description |
---|---|
NotificationTarget() |
Creates an instance of Notification |
Method Summary
Modifier and Type | Method and Description |
---|---|
Notification |
notificationChannel()
Get the notification |
List<String> |
receivers()
Get the receivers property: List of targets that subscribe to the notification. |
void |
validate()
Validates the instance. |
Notification |
withNotificationChannel(NotificationChannel notificationChannel)
Set the notification |
Notification |
withReceivers(List<String> receivers)
Set the receivers property: List of targets that subscribe to the notification. |
Methods inherited from java.lang.Object
Constructor Details
NotificationTarget
public NotificationTarget()
Creates an instance of NotificationTarget class.
Method Details
notificationChannel
public NotificationChannel notificationChannel()
Get the notificationChannel property: The notification channel indicates the type of receivers subscribed to the notification, either user or subscription.
Returns:
receivers
public List
Get the receivers property: List of targets that subscribe to the notification.
Returns:
validate
public void validate()
Validates the instance.
withNotificationChannel
public NotificationTarget withNotificationChannel(NotificationChannel notificationChannel)
Set the notificationChannel property: The notification channel indicates the type of receivers subscribed to the notification, either user or subscription.
Parameters:
Returns:
withReceivers
public NotificationTarget withReceivers(List
Set the receivers property: List of targets that subscribe to the notification.
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