Share via


HeavyScheduleAvailabilityRequest Class

public final class HeavyScheduleAvailabilityRequest
extends ScheduleAvailabilityRequest

Request body to get the availability for scheduling heavy orders.

Constructor Summary

Constructor Description
HeavyScheduleAvailabilityRequest()

Creates an instance of HeavyScheduleAvailabilityRequest class.

Method Summary

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

Reads an instance of HeavyScheduleAvailabilityRequest 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.

HeavyScheduleAvailabilityRequest withCountry(String country)

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

HeavyScheduleAvailabilityRequest withStorageLocation(String storageLocation)

Set the storageLocation property: Location for data transfer.

Methods inherited from ScheduleAvailabilityRequest

Methods inherited from java.lang.Object

Constructor Details

HeavyScheduleAvailabilityRequest

public HeavyScheduleAvailabilityRequest()

Creates an instance of HeavyScheduleAvailabilityRequest class.

Method Details

fromJson

public static HeavyScheduleAvailabilityRequest fromJson(JsonReader jsonReader)

Reads an instance of HeavyScheduleAvailabilityRequest from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of HeavyScheduleAvailabilityRequest 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:

HeavyScheduleAvailabilityRequest.skuName()

Returns:

the skuName value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

HeavyScheduleAvailabilityRequest.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

HeavyScheduleAvailabilityRequest.validate()

withCountry

public HeavyScheduleAvailabilityRequest withCountry(String country)

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

Overrides:

HeavyScheduleAvailabilityRequest.withCountry(String country)

Parameters:

country

withStorageLocation

public HeavyScheduleAvailabilityRequest 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:

HeavyScheduleAvailabilityRequest.withStorageLocation(String storageLocation)

Parameters:

storageLocation

Applies to