PersistentDisk Class
- java.
lang. Object - com.
azure. resourcemanager. appplatform. models. PersistentDisk
- com.
Implements
public final class PersistentDisk
implements JsonSerializable<PersistentDisk>
Persistent disk payload.
Constructor Summary
Constructor | Description |
---|---|
PersistentDisk() |
Creates an instance of Persistent |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Persistent |
fromJson(JsonReader jsonReader)
Reads an instance of Persistent |
String |
mountPath()
Get the mount |
Integer |
sizeInGB()
Get the size |
Json |
toJson(JsonWriter jsonWriter) |
Integer |
usedInGB()
Get the used |
void |
validate()
Validates the instance. |
Persistent |
withMountPath(String mountPath)
Set the mount |
Persistent |
withSizeInGB(Integer sizeInGB)
Set the size |
Methods inherited from java.lang.Object
Constructor Details
PersistentDisk
public PersistentDisk()
Creates an instance of PersistentDisk class.
Method Details
fromJson
public static PersistentDisk fromJson(JsonReader jsonReader)
Reads an instance of PersistentDisk from the JsonReader.
Parameters:
Returns:
Throws:
mountPath
public String mountPath()
Get the mountPath property: Mount path of the persistent disk.
Returns:
sizeInGB
public Integer sizeInGB()
Get the sizeInGB property: Size of the persistent disk in GB.
Returns:
toJson
usedInGB
public Integer usedInGB()
Get the usedInGB property: Size of the used persistent disk in GB.
Returns:
validate
public void validate()
Validates the instance.
withMountPath
public PersistentDisk withMountPath(String mountPath)
Set the mountPath property: Mount path of the persistent disk.
Parameters:
Returns:
withSizeInGB
public PersistentDisk withSizeInGB(Integer sizeInGB)
Set the sizeInGB property: Size of the persistent disk in GB.
Parameters:
Returns:
Applies to
Azure SDK for Java