Notification Class
- java.
lang. Object - com.
azure. resourcemanager. servicefabric. models. Notification
- com.
public final class 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 |
---|---|
boolean |
isEnabled()
Get the is |
Notification |
notificationCategory()
Get the notification |
Notification |
notificationLevel()
Get the notification |
List<Notification |
notificationTargets()
Get the notification |
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
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
Get the notificationTargets property: List of targets that subscribe to the notification.
Returns:
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
Set the notificationTargets 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