次の方法で共有


ScheduleAvailabilityRequest Class

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

Implements

public class ScheduleAvailabilityRequest
implements JsonSerializable<ScheduleAvailabilityRequest>

Request body to get the availability for scheduling orders.

Constructor Summary

Constructor Description
ScheduleAvailabilityRequest()

Creates an instance of ScheduleAvailabilityRequest class.

Method Summary

Modifier and Type Method and Description
String country()

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

static ScheduleAvailabilityRequest fromJson(JsonReader jsonReader)

Reads an instance of ScheduleAvailabilityRequest from the JsonReader.

SkuName skuName()

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

String storageLocation()

Get the storageLocation property: Location for data transfer.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ScheduleAvailabilityRequest withCountry(String country)

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

ScheduleAvailabilityRequest withStorageLocation(String storageLocation)

Set the storageLocation property: Location for data transfer.

Methods inherited from java.lang.Object

Constructor Details

ScheduleAvailabilityRequest

public ScheduleAvailabilityRequest()

Creates an instance of ScheduleAvailabilityRequest class.

Method Details

country

public String country()

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

Returns:

the country value.

fromJson

public static ScheduleAvailabilityRequest fromJson(JsonReader jsonReader)

Reads an instance of ScheduleAvailabilityRequest from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Returns:

the skuName value.

storageLocation

public String storageLocation()

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

Returns:

the storageLocation value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCountry

public ScheduleAvailabilityRequest withCountry(String country)

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

Parameters:

country - the country value to set.

Returns:

the ScheduleAvailabilityRequest object itself.

withStorageLocation

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

Parameters:

storageLocation - the storageLocation value to set.

Returns:

the ScheduleAvailabilityRequest object itself.

Applies to