次の方法で共有


DatacenterAddressRequest Class

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

Implements

public final class DatacenterAddressRequest
implements JsonSerializable<DatacenterAddressRequest>

Request body to get the datacenter address.

Constructor Summary

Constructor Description
DatacenterAddressRequest()

Creates an instance of DatacenterAddressRequest class.

Method Summary

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

Reads an instance of DatacenterAddressRequest from the JsonReader.

SkuName skuName()

Get the skuName property: Sku Name for which the data center address requested.

String storageLocation()

Get the storageLocation property: Storage location.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DatacenterAddressRequest withSkuName(SkuName skuName)

Set the skuName property: Sku Name for which the data center address requested.

DatacenterAddressRequest withStorageLocation(String storageLocation)

Set the storageLocation property: Storage location.

Methods inherited from java.lang.Object

Constructor Details

DatacenterAddressRequest

public DatacenterAddressRequest()

Creates an instance of DatacenterAddressRequest class.

Method Details

fromJson

public static DatacenterAddressRequest fromJson(JsonReader jsonReader)

Reads an instance of DatacenterAddressRequest from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DatacenterAddressRequest 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 data center address requested.

Returns:

the skuName value.

storageLocation

public String storageLocation()

Get the storageLocation property: Storage location. 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.

withSkuName

public DatacenterAddressRequest withSkuName(SkuName skuName)

Set the skuName property: Sku Name for which the data center address requested.

Parameters:

skuName - the skuName value to set.

Returns:

the DatacenterAddressRequest object itself.

withStorageLocation

public DatacenterAddressRequest withStorageLocation(String storageLocation)

Set the storageLocation property: Storage location. For locations check: https://management.azure.com/subscriptions/SUBSCRIPTIONID/locations?api-version=2018-01-01.

Parameters:

storageLocation - the storageLocation value to set.

Returns:

the DatacenterAddressRequest object itself.

Applies to