Notification Class
- java.
lang. Object - com.
azure. resourcemanager. servicefabric. models. Notification
- com.
Implements
public final class Notification
implements JsonSerializable<Notification>
Describes the notification channel for cluster events.
Constructor Summary
| Constructor | Description |
|---|---|
| Notification() |
Creates an instance of Notification class. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| static Notification |
fromJson(JsonReader jsonReader)
Reads an instance of Notification from the Json |
| boolean |
isEnabled()
Get the is |
|
Notification |
notificationCategory()
Get the notification |
|
Notification |
notificationLevel()
Get the notification |
|
List<Notification |
notificationTargets()
Get the notification |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
| Notification |
withIsEnabled(boolean isEnabled)
Set the is |
| Notification |
withNotificationCategory(NotificationCategory notificationCategory)
Set the notification |
| Notification |
withNotificationLevel(NotificationLevel notificationLevel)
Set the notification |
| Notification |
withNotificationTargets(List<NotificationTarget> notificationTargets)
Set the notification |
Methods inherited from java.lang.Object
Constructor Details
Notification
public Notification()
Creates an instance of Notification class.
Method Details
fromJson
public static Notification fromJson(JsonReader jsonReader)
Reads an instance of Notification from the JsonReader.
Parameters:
Returns:
Throws:
isEnabled
public boolean isEnabled()
Get the isEnabled property: Indicates if the notification is enabled.
Returns:
notificationCategory
public NotificationCategory notificationCategory()
Get the notificationCategory property: The category of notification.
Returns:
notificationLevel
public NotificationLevel notificationLevel()
Get the notificationLevel property: The level of notification.
Returns:
notificationTargets
public List<NotificationTarget> notificationTargets()
Get the notificationTargets property: List of targets that subscribe to the notification.
Returns:
toJson
validate
public void validate()
Validates the instance.
withIsEnabled
public Notification withIsEnabled(boolean isEnabled)
Set the isEnabled property: Indicates if the notification is enabled.
Parameters:
Returns:
withNotificationCategory
public Notification withNotificationCategory(NotificationCategory notificationCategory)
Set the notificationCategory property: The category of notification.
Parameters:
Returns:
withNotificationLevel
public Notification withNotificationLevel(NotificationLevel notificationLevel)
Set the notificationLevel property: The level of notification.
Parameters:
Returns:
withNotificationTargets
public Notification withNotificationTargets(List<NotificationTarget> notificationTargets)
Set the notificationTargets property: List of targets that subscribe to the notification.
Parameters:
Returns: