次の方法で共有


NotificationPreference Class

  • java.lang.Object
    • com.azure.resourcemanager.databox.models.NotificationPreference

Implements

public final class NotificationPreference
implements JsonSerializable<NotificationPreference>

Notification preference for a job stage.

Constructor Summary

Constructor Description
NotificationPreference()

Creates an instance of NotificationPreference class.

Method Summary

Modifier and Type Method and Description
static NotificationPreference fromJson(JsonReader jsonReader)

Reads an instance of NotificationPreference from the JsonReader.

boolean sendNotification()

Get the sendNotification property: Notification is required or not.

NotificationStageName stageName()

Get the stageName property: Name of the stage.

JsonWriter toJson(JsonWriter jsonWriter)
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.

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:

jsonReader - The JsonReader being read.

Returns:

An instance of NotificationPreference if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

sendNotification

public boolean sendNotification()

Get the sendNotification property: Notification is required or not.

Returns:

the sendNotification value.

stageName

public NotificationStageName stageName()

Get the stageName property: Name of the stage.

Returns:

the stageName value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

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.

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.

Applies to