Class PersistentDisk
java.lang.Object
com.azure.resourcemanager.appplatform.models.PersistentDisk
- All Implemented Interfaces:
com.azure.json.JsonSerializable<PersistentDisk>
public final class PersistentDisk
extends Object
implements com.azure.json.JsonSerializable<PersistentDisk>
Persistent disk payload.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PersistentDiskfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of PersistentDisk from the JsonReader.Get the mountPath property: Mount path of the persistent disk.sizeInGB()Get the sizeInGB property: Size of the persistent disk in GB.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) usedInGB()Get the usedInGB property: Size of the used persistent disk in GB.voidvalidate()Validates the instance.withMountPath(String mountPath) Set the mountPath property: Mount path of the persistent disk.withSizeInGB(Integer sizeInGB) Set the sizeInGB property: Size of the persistent disk in GB.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
-
PersistentDisk
public PersistentDisk()Creates an instance of PersistentDisk class.
-
-
Method Details
-
sizeInGB
Get the sizeInGB property: Size of the persistent disk in GB.- Returns:
- the sizeInGB value.
-
withSizeInGB
Set the sizeInGB property: Size of the persistent disk in GB.- Parameters:
sizeInGB- the sizeInGB value to set.- Returns:
- the PersistentDisk object itself.
-
usedInGB
Get the usedInGB property: Size of the used persistent disk in GB.- Returns:
- the usedInGB value.
-
mountPath
Get the mountPath property: Mount path of the persistent disk.- Returns:
- the mountPath value.
-
withMountPath
Set the mountPath property: Mount path of the persistent disk.- Parameters:
mountPath- the mountPath value to set.- Returns:
- the PersistentDisk 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<PersistentDisk>- Throws:
IOException
-
fromJson
Reads an instance of PersistentDisk from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of PersistentDisk 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 PersistentDisk.
-