Share via


AvailableSkuRequest Class

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

Implements

public final class AvailableSkuRequest
implements JsonSerializable<AvailableSkuRequest>

The filters for showing the available skus.

Constructor Summary

Constructor Description
AvailableSkuRequest()

Creates an instance of AvailableSkuRequest class.

Method Summary

Modifier and Type Method and Description
String country()

Get the country property: ISO country code.

static AvailableSkuRequest fromJson(JsonReader jsonReader)

Reads an instance of AvailableSkuRequest from the JsonReader.

String location()

Get the location property: Location for data transfer.

List<SkuName> skuNames()

Get the skuNames property: Sku Names to filter for available skus.

JsonWriter toJson(JsonWriter jsonWriter)
TransferType transferType()

Get the transferType property: Type of the transfer.

void validate()

Validates the instance.

AvailableSkuRequest withCountry(String country)

Set the country property: ISO country code.

AvailableSkuRequest withLocation(String location)

Set the location property: Location for data transfer.

AvailableSkuRequest withSkuNames(List<SkuName> skuNames)

Set the skuNames property: Sku Names to filter for available skus.

AvailableSkuRequest withTransferType(TransferType transferType)

Set the transferType property: Type of the transfer.

Methods inherited from java.lang.Object

Constructor Details

AvailableSkuRequest

public AvailableSkuRequest()

Creates an instance of AvailableSkuRequest 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.

fromJson

public static AvailableSkuRequest fromJson(JsonReader jsonReader)

Reads an instance of AvailableSkuRequest from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

skuNames

public List<SkuName> skuNames()

Get the skuNames property: Sku Names to filter for available skus.

Returns:

the skuNames value.

toJson

public JsonWriter 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.

withCountry

public AvailableSkuRequest 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 AvailableSkuRequest object itself.

withLocation

public AvailableSkuRequest 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 AvailableSkuRequest object itself.

withSkuNames

public AvailableSkuRequest withSkuNames(List<SkuName> skuNames)

Set the skuNames property: Sku Names to filter for available skus.

Parameters:

skuNames - the skuNames value to set.

Returns:

the AvailableSkuRequest object itself.

withTransferType

public AvailableSkuRequest withTransferType(TransferType transferType)

Set the transferType property: Type of the transfer.

Parameters:

transferType - the transferType value to set.

Returns:

the AvailableSkuRequest object itself.

Applies to