NotificationTarget Class
- java.
lang. Object - com.
azure. resourcemanager. servicefabric. models. NotificationTarget
- com.
Implements
public final class NotificationTarget
implements JsonSerializable<NotificationTarget>
Describes the notification target properties.
Constructor Summary
| Constructor | Description |
|---|---|
| NotificationTarget() |
Creates an instance of Notification |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Notification |
fromJson(JsonReader jsonReader)
Reads an instance of Notification |
|
Notification |
notificationChannel()
Get the notification |
| List<String> |
receivers()
Get the receivers property: List of targets that subscribe to the notification. |
|
Json |
toJson(JsonWriter jsonWriter) |
| 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
fromJson
public static NotificationTarget fromJson(JsonReader jsonReader)
Reads an instance of NotificationTarget from the JsonReader.
Parameters:
Returns:
Throws:
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<String> receivers()
Get the receivers property: List of targets that subscribe to the notification.
Returns:
toJson
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<String> receivers)
Set the receivers property: List of targets that subscribe to the notification.
Parameters:
Returns: