Share via


PreferencesValidationRequest Class

public final class PreferencesValidationRequest
extends ValidationInputRequest

Request to validate preference of transport and data center.

Constructor Summary

Constructor Description
PreferencesValidationRequest()

Creates an instance of PreferencesValidationRequest class.

Method Summary

Modifier and Type Method and Description
SkuName deviceType()

Get the deviceType property: Device type to be used for the job.

static PreferencesValidationRequest fromJson(JsonReader jsonReader)

Reads an instance of PreferencesValidationRequest from the JsonReader.

Preferences preference()

Get the preference property: Preference of transport and data center.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ValidationInputDiscriminator validationType()

Get the validationType property: Identifies the type of validation request.

PreferencesValidationRequest withDeviceType(SkuName deviceType)

Set the deviceType property: Device type to be used for the job.

PreferencesValidationRequest withPreference(Preferences preference)

Set the preference property: Preference of transport and data center.

Methods inherited from ValidationInputRequest

Methods inherited from java.lang.Object

Constructor Details

PreferencesValidationRequest

public PreferencesValidationRequest()

Creates an instance of PreferencesValidationRequest class.

Method Details

deviceType

public SkuName deviceType()

Get the deviceType property: Device type to be used for the job.

Returns:

the deviceType value.

fromJson

public static PreferencesValidationRequest fromJson(JsonReader jsonReader)

Reads an instance of PreferencesValidationRequest from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of PreferencesValidationRequest 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.

preference

public Preferences preference()

Get the preference property: Preference of transport and data center.

Returns:

the preference value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

PreferencesValidationRequest.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

PreferencesValidationRequest.validate()

validationType

public ValidationInputDiscriminator validationType()

Get the validationType property: Identifies the type of validation request.

Overrides:

PreferencesValidationRequest.validationType()

Returns:

the validationType value.

withDeviceType

public PreferencesValidationRequest withDeviceType(SkuName deviceType)

Set the deviceType property: Device type to be used for the job.

Parameters:

deviceType - the deviceType value to set.

Returns:

the PreferencesValidationRequest object itself.

withPreference

public PreferencesValidationRequest withPreference(Preferences preference)

Set the preference property: Preference of transport and data center.

Parameters:

preference - the preference value to set.

Returns:

the PreferencesValidationRequest object itself.

Applies to