NotificationPreference Class
- java.
lang. Object - com.
azure. resourcemanager. databox. models. NotificationPreference
- com.
Implements
public final class NotificationPreference
implements JsonSerializable<NotificationPreference>
Notification preference for a job stage.
Constructor Summary
| Constructor | Description |
|---|---|
| NotificationPreference() |
Creates an instance of Notification |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Notification |
fromJson(JsonReader jsonReader)
Reads an instance of Notification |
| boolean |
sendNotification()
Get the send |
|
Notification |
stageName()
Get the stage |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Notification |
withSendNotification(boolean sendNotification)
Set the send |
|
Notification |
withStageName(NotificationStageName stageName)
Set the stage |
Methods inherited from java.lang.Object
Constructor Details
NotificationPreference
public NotificationPreference()
Creates an instance of NotificationPreference class.
Method Details
fromJson
public static NotificationPreference fromJson(JsonReader jsonReader)
Reads an instance of NotificationPreference from the JsonReader.
Parameters:
Returns:
Throws:
sendNotification
public boolean sendNotification()
Get the sendNotification property: Notification is required or not.
Returns:
stageName
public NotificationStageName stageName()
Get the stageName property: Name of the stage.
Returns:
toJson
validate
public void validate()
Validates the instance.
withSendNotification
public NotificationPreference withSendNotification(boolean sendNotification)
Set the sendNotification property: Notification is required or not.
Parameters:
Returns:
withStageName
public NotificationPreference withStageName(NotificationStageName stageName)
Set the stageName property: Name of the stage.
Parameters:
Returns: