Class NotificationPreference
- java.lang.Object
-
- com.azure.resourcemanager.edgeorder.models.NotificationPreference
-
public final class NotificationPreference extends Object
Notification preference for a job stage.
-
-
Constructor Summary
Constructors Constructor Description NotificationPreference()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
sendNotification()
Get the sendNotification property: Notification is required or not.NotificationStageName
stageName()
Get the stageName property: Name of the stage.void
validate()
Validates the instance.NotificationPreference
withSendNotification(boolean sendNotification)
Set the sendNotification property: Notification is required or not.NotificationPreference
withStageName(NotificationStageName stageName)
Set the stageName property: Name of the stage.
-
-
-
Method Detail
-
stageName
public NotificationStageName stageName()
Get the stageName property: Name of the stage.- Returns:
- the stageName value.
-
withStageName
public NotificationPreference withStageName(NotificationStageName stageName)
Set the stageName property: Name of the stage.- Parameters:
stageName
- the stageName value to set.- Returns:
- the NotificationPreference object itself.
-
sendNotification
public boolean sendNotification()
Get the sendNotification property: Notification is required or not.- Returns:
- the sendNotification value.
-
withSendNotification
public NotificationPreference withSendNotification(boolean sendNotification)
Set the sendNotification property: Notification is required or not.- Parameters:
sendNotification
- the sendNotification value to set.- Returns:
- the NotificationPreference object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-