Notification Class

  • java.lang.Object
    • com.azure.resourcemanager.servicefabric.models.Notification

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 isEnabled property: Indicates if the notification is enabled.

NotificationCategory notificationCategory()

Get the notificationCategory property: The category of notification.

NotificationLevel notificationLevel()

Get the notificationLevel property: The level of notification.

List<NotificationTarget> notificationTargets()

Get the notificationTargets property: List of targets that subscribe to the notification.

void validate()

Validates the instance.

Notification withIsEnabled(boolean isEnabled)

Set the isEnabled property: Indicates if the notification is enabled.

Notification withNotificationCategory(NotificationCategory notificationCategory)

Set the notificationCategory property: The category of notification.

Notification withNotificationLevel(NotificationLevel notificationLevel)

Set the notificationLevel property: The level of notification.

Notification withNotificationTargets(List<NotificationTarget> notificationTargets)

Set the notificationTargets property: List of targets that subscribe to 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:

the isEnabled value.

notificationCategory

public NotificationCategory notificationCategory()

Get the notificationCategory property: The category of notification.

Returns:

the notificationCategory value.

notificationLevel

public NotificationLevel notificationLevel()

Get the notificationLevel property: The level of notification.

Returns:

the notificationLevel value.

notificationTargets

public List notificationTargets()

Get the notificationTargets property: List of targets that subscribe to the notification.

Returns:

the notificationTargets value.

validate

public void validate()

Validates the instance.

withIsEnabled

public Notification withIsEnabled(boolean isEnabled)

Set the isEnabled property: Indicates if the notification is enabled.

Parameters:

isEnabled - the isEnabled value to set.

Returns:

the Notification object itself.

withNotificationCategory

public Notification withNotificationCategory(NotificationCategory notificationCategory)

Set the notificationCategory property: The category of notification.

Parameters:

notificationCategory - the notificationCategory value to set.

Returns:

the Notification object itself.

withNotificationLevel

public Notification withNotificationLevel(NotificationLevel notificationLevel)

Set the notificationLevel property: The level of notification.

Parameters:

notificationLevel - the notificationLevel value to set.

Returns:

the Notification object itself.

withNotificationTargets

public Notification withNotificationTargets(List notificationTargets)

Set the notificationTargets property: List of targets that subscribe to the notification.

Parameters:

notificationTargets - the notificationTargets value to set.

Returns:

the Notification object itself.

Applies to