Share via


DataBoxScheduleAvailabilityRequest Class

public final class DataBoxScheduleAvailabilityRequest
extends ScheduleAvailabilityRequest

Request body to get the availability for scheduling data box orders orders.

Constructor Summary

Constructor Description
DataBoxScheduleAvailabilityRequest()

Creates an instance of DataBoxScheduleAvailabilityRequest class.

Method Summary

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

Reads an instance of DataBoxScheduleAvailabilityRequest from the JsonReader.

SkuName skuName()

Get the skuName property: Sku Name for which the order is to be scheduled.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DataBoxScheduleAvailabilityRequest withCountry(String country)

Set the country property: Country in which storage location should be supported.

DataBoxScheduleAvailabilityRequest withStorageLocation(String storageLocation)

Set the storageLocation property: Location for data transfer.

Methods inherited from ScheduleAvailabilityRequest

Methods inherited from java.lang.Object

Constructor Details

DataBoxScheduleAvailabilityRequest

public DataBoxScheduleAvailabilityRequest()

Creates an instance of DataBoxScheduleAvailabilityRequest class.

Method Details

fromJson

public static DataBoxScheduleAvailabilityRequest fromJson(JsonReader jsonReader)

Reads an instance of DataBoxScheduleAvailabilityRequest from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

skuName

public SkuName skuName()

Get the skuName property: Sku Name for which the order is to be scheduled.

Overrides:

DataBoxScheduleAvailabilityRequest.skuName()

Returns:

the skuName value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

DataBoxScheduleAvailabilityRequest.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

DataBoxScheduleAvailabilityRequest.validate()

withCountry

public DataBoxScheduleAvailabilityRequest withCountry(String country)

Set the country property: Country in which storage location should be supported.

Overrides:

DataBoxScheduleAvailabilityRequest.withCountry(String country)

Parameters:

country

withStorageLocation

public DataBoxScheduleAvailabilityRequest withStorageLocation(String storageLocation)

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

Overrides:

DataBoxScheduleAvailabilityRequest.withStorageLocation(String storageLocation)

Parameters:

storageLocation

Applies to