Class VolumeUpdateProperties
java.lang.Object
com.azure.resourcemanager.elasticsan.fluent.models.VolumeUpdateProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<VolumeUpdateProperties>
public final class VolumeUpdateProperties
extends Object
implements com.azure.json.JsonSerializable<VolumeUpdateProperties>
Volume response properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of VolumeUpdateProperties class. -
Method Summary
Modifier and TypeMethodDescriptionstatic VolumeUpdatePropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of VolumeUpdateProperties from the JsonReader.Get the managedBy property: Parent resource information.sizeGiB()Get the sizeGiB property: Volume size.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()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, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
VolumeUpdateProperties
public VolumeUpdateProperties()Creates an instance of VolumeUpdateProperties 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 VolumeUpdateProperties 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 VolumeUpdateProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<VolumeUpdateProperties>- Throws:
IOException
-
fromJson
public static VolumeUpdateProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of VolumeUpdateProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of VolumeUpdateProperties 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 VolumeUpdateProperties.
-