Share via


SkuAvailabilityValidationRequest Class

public final class SkuAvailabilityValidationRequest
extends ValidationInputRequest

Request to validate sku availability.

Constructor Summary

Constructor Description
SkuAvailabilityValidationRequest()

Creates an instance of SkuAvailabilityValidationRequest class.

Method Summary

Modifier and Type Method and Description
String country()

Get the country property: ISO country code.

SkuName deviceType()

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

static SkuAvailabilityValidationRequest fromJson(JsonReader jsonReader)

Reads an instance of SkuAvailabilityValidationRequest from the JsonReader.

String location()

Get the location property: Location for data transfer.

JsonWriter toJson(JsonWriter jsonWriter)
TransferType transferType()

Get the transferType property: Type of the transfer.

void validate()

Validates the instance.

ValidationInputDiscriminator validationType()

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

SkuAvailabilityValidationRequest withCountry(String country)

Set the country property: ISO country code.

SkuAvailabilityValidationRequest withDeviceType(SkuName deviceType)

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

SkuAvailabilityValidationRequest withLocation(String location)

Set the location property: Location for data transfer.

SkuAvailabilityValidationRequest withTransferType(TransferType transferType)

Set the transferType property: Type of the transfer.

Methods inherited from ValidationInputRequest

Methods inherited from java.lang.Object

Constructor Details

SkuAvailabilityValidationRequest

public SkuAvailabilityValidationRequest()

Creates an instance of SkuAvailabilityValidationRequest class.

Method Details

country

public String country()

Get the country property: ISO country code. Country for hardware shipment. For codes check: https://en.wikipedia.org/wiki/ISO\_3166-1\_alpha-2\#Officially\_assigned\_code\_elements.

Returns:

the country value.

deviceType

public SkuName deviceType()

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

Returns:

the deviceType value.

fromJson

public static SkuAvailabilityValidationRequest fromJson(JsonReader jsonReader)

Reads an instance of SkuAvailabilityValidationRequest from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

location

public String location()

Get the location property: Location for data transfer. For locations check: https://management.azure.com/subscriptions/SUBSCRIPTIONID/locations?api-version=2018-01-01.

Returns:

the location value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

SkuAvailabilityValidationRequest.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

transferType

public TransferType transferType()

Get the transferType property: Type of the transfer.

Returns:

the transferType value.

validate

public void validate()

Validates the instance.

Overrides:

SkuAvailabilityValidationRequest.validate()

validationType

public ValidationInputDiscriminator validationType()

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

Overrides:

SkuAvailabilityValidationRequest.validationType()

Returns:

the validationType value.

withCountry

public SkuAvailabilityValidationRequest withCountry(String country)

Set the country property: ISO country code. Country for hardware shipment. For codes check: https://en.wikipedia.org/wiki/ISO\_3166-1\_alpha-2\#Officially\_assigned\_code\_elements.

Parameters:

country - the country value to set.

Returns:

the SkuAvailabilityValidationRequest object itself.

withDeviceType

public SkuAvailabilityValidationRequest withDeviceType(SkuName deviceType)

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

Parameters:

deviceType - the deviceType value to set.

Returns:

the SkuAvailabilityValidationRequest object itself.

withLocation

public SkuAvailabilityValidationRequest withLocation(String location)

Set the location property: Location for data transfer. For locations check: https://management.azure.com/subscriptions/SUBSCRIPTIONID/locations?api-version=2018-01-01.

Parameters:

location - the location value to set.

Returns:

the SkuAvailabilityValidationRequest object itself.

withTransferType

public SkuAvailabilityValidationRequest withTransferType(TransferType transferType)

Set the transferType property: Type of the transfer.

Parameters:

transferType - the transferType value to set.

Returns:

the SkuAvailabilityValidationRequest object itself.

Applies to