다음을 통해 공유


PersistentDisk Class

  • java.lang.Object
    • com.azure.resourcemanager.appplatform.models.PersistentDisk

Implements

public final class PersistentDisk
implements JsonSerializable<PersistentDisk>

Persistent disk payload.

Constructor Summary

Constructor Description
PersistentDisk()

Creates an instance of PersistentDisk class.

Method Summary

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

Reads an instance of PersistentDisk from the JsonReader.

String mountPath()

Get the mountPath property: Mount path of the persistent disk.

Integer sizeInGB()

Get the sizeInGB property: Size of the persistent disk in GB.

JsonWriter toJson(JsonWriter jsonWriter)
Integer usedInGB()

Get the usedInGB property: Size of the used persistent disk in GB.

void validate()

Validates the instance.

PersistentDisk withMountPath(String mountPath)

Set the mountPath property: Mount path of the persistent disk.

PersistentDisk withSizeInGB(Integer sizeInGB)

Set the sizeInGB property: Size of the persistent disk in GB.

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:

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.

mountPath

public String mountPath()

Get the mountPath property: Mount path of the persistent disk.

Returns:

the mountPath value.

sizeInGB

public Integer sizeInGB()

Get the sizeInGB property: Size of the persistent disk in GB.

Returns:

the sizeInGB value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

usedInGB

public Integer usedInGB()

Get the usedInGB property: Size of the used persistent disk in GB.

Returns:

the usedInGB value.

validate

public void validate()

Validates the instance.

withMountPath

public PersistentDisk withMountPath(String mountPath)

Set the mountPath property: Mount path of the persistent disk.

Parameters:

mountPath - the mountPath value to set.

Returns:

the PersistentDisk object itself.

withSizeInGB

public PersistentDisk withSizeInGB(Integer sizeInGB)

Set the sizeInGB property: Size of the persistent disk in GB.

Parameters:

sizeInGB - the sizeInGB value to set.

Returns:

the PersistentDisk object itself.

Applies to