Class VolumeUpdate
java.lang.Object
com.azure.resourcemanager.elasticsan.models.VolumeUpdate
- All Implemented Interfaces:
com.azure.json.JsonSerializable<VolumeUpdate>
public final class VolumeUpdate
extends Object
implements com.azure.json.JsonSerializable<VolumeUpdate>
Response for Volume request.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic VolumeUpdate
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of VolumeUpdate from the JsonReader.Get the managedBy property: Parent resource information.sizeGiB()
Get the sizeGiB property: Volume size.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withManagedBy
(ManagedByInfo managedBy) Set the managedBy property: Parent resource information.withSizeGiB
(Long sizeGiB) Set the sizeGiB property: Volume size.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
VolumeUpdate
public VolumeUpdate()Creates an instance of VolumeUpdate class.
-
-
Method Details
-
sizeGiB
Get the sizeGiB property: Volume size.- Returns:
- the sizeGiB value.
-
withSizeGiB
Set the sizeGiB property: Volume size.- Parameters:
sizeGiB
- the sizeGiB value to set.- Returns:
- the VolumeUpdate object itself.
-
managedBy
Get the managedBy property: Parent resource information.- Returns:
- the managedBy value.
-
withManagedBy
Set the managedBy property: Parent resource information.- Parameters:
managedBy
- the managedBy value to set.- Returns:
- the VolumeUpdate object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<VolumeUpdate>
- Throws:
IOException
-
fromJson
Reads an instance of VolumeUpdate from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of VolumeUpdate 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 VolumeUpdate.
-