CloudServicesNetworkStorageOptionsPatch Class

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

Implements

public final class CloudServicesNetworkStorageOptionsPatch
implements JsonSerializable<CloudServicesNetworkStorageOptionsPatch>

CloudServicesNetworkStorageOptionsPatch represents the patchable storage options for the cloud services network.

Constructor Summary

Constructor Description
CloudServicesNetworkStorageOptionsPatch()

Creates an instance of CloudServicesNetworkStorageOptionsPatch class.

Method Summary

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

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

CloudServicesNetworkStorageOptionsPatch withMode(CloudServicesNetworkStorageMode mode)

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

CloudServicesNetworkStorageOptionsPatch withSizeMiB(Long sizeMiB)

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

CloudServicesNetworkStorageOptionsPatch 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

CloudServicesNetworkStorageOptionsPatch

public CloudServicesNetworkStorageOptionsPatch()

Creates an instance of CloudServicesNetworkStorageOptionsPatch class.

Method Details

fromJson

public static CloudServicesNetworkStorageOptionsPatch fromJson(JsonReader jsonReader)

Reads an instance of CloudServicesNetworkStorageOptionsPatch from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

mode

public CloudServicesNetworkStorageMode mode()

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

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 CloudServicesNetworkStorageOptionsPatch withMode(CloudServicesNetworkStorageMode mode)

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

Parameters:

mode - the mode value to set.

Returns:

the CloudServicesNetworkStorageOptionsPatch object itself.

withSizeMiB

public CloudServicesNetworkStorageOptionsPatch 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 CloudServicesNetworkStorageOptionsPatch object itself.

withStorageApplianceId

public CloudServicesNetworkStorageOptionsPatch 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 CloudServicesNetworkStorageOptionsPatch object itself.

Applies to