CloudServicesNetworkStorageOptions Class

  • java.lang.Object
    • com.azure.resourcemanager.networkcloud.models.CloudServicesNetworkStorageOptions

Implements

public final class CloudServicesNetworkStorageOptions
implements JsonSerializable<CloudServicesNetworkStorageOptions>

CloudServicesNetworkStorageOptions represents the storage options for the cloud services network.

Constructor Summary

Constructor Description
CloudServicesNetworkStorageOptions()

Creates an instance of CloudServicesNetworkStorageOptions class.

Method Summary

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

Reads an instance of CloudServicesNetworkStorageOptions from the JsonReader.

CloudServicesNetworkStorageMode mode()

Get the mode property: The indicator to enable shared storage on the cloud services network.

Long sizeMiB()

Get the sizeMiB property: The requested storage allocation for the volume in Mebibytes.

String storageApplianceId()

Get the storageApplianceId property: The resource ID of the storage appliance that hosts the storage.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

CloudServicesNetworkStorageOptions withMode(CloudServicesNetworkStorageMode mode)

Set the mode property: The indicator to enable shared storage on the cloud services network.

CloudServicesNetworkStorageOptions withSizeMiB(Long sizeMiB)

Set the sizeMiB property: The requested storage allocation for the volume in Mebibytes.

CloudServicesNetworkStorageOptions withStorageApplianceId(String storageApplianceId)

Set the storageApplianceId property: The resource ID of the storage appliance that hosts the storage.

Methods inherited from java.lang.Object

Constructor Details

CloudServicesNetworkStorageOptions

public CloudServicesNetworkStorageOptions()

Creates an instance of CloudServicesNetworkStorageOptions class.

Method Details

fromJson

public static CloudServicesNetworkStorageOptions fromJson(JsonReader jsonReader)

Reads an instance of CloudServicesNetworkStorageOptions from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of CloudServicesNetworkStorageOptions if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the CloudServicesNetworkStorageOptions.

mode

public CloudServicesNetworkStorageMode mode()

Get the mode property: The indicator to enable shared storage on the cloud services network. If not specified, the allocation will align with the standard storage enablement.

Returns:

the mode value.

sizeMiB

public Long sizeMiB()

Get the sizeMiB property: The requested storage allocation for the volume in Mebibytes.

Returns:

the sizeMiB value.

storageApplianceId

public String storageApplianceId()

Get the storageApplianceId property: The resource ID of the storage appliance that hosts the storage.

Returns:

the storageApplianceId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withMode

public CloudServicesNetworkStorageOptions withMode(CloudServicesNetworkStorageMode mode)

Set the mode property: The indicator to enable shared storage on the cloud services network. If not specified, the allocation will align with the standard storage enablement.

Parameters:

mode - the mode value to set.

Returns:

the CloudServicesNetworkStorageOptions object itself.

withSizeMiB

public CloudServicesNetworkStorageOptions withSizeMiB(Long sizeMiB)

Set the sizeMiB property: The requested storage allocation for the volume in Mebibytes.

Parameters:

sizeMiB - the sizeMiB value to set.

Returns:

the CloudServicesNetworkStorageOptions object itself.

withStorageApplianceId

public CloudServicesNetworkStorageOptions withStorageApplianceId(String storageApplianceId)

Set the storageApplianceId property: The resource ID of the storage appliance that hosts the storage.

Parameters:

storageApplianceId - the storageApplianceId value to set.

Returns:

the CloudServicesNetworkStorageOptions object itself.

Applies to