TemporaryDisk Class

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

Implements

public final class TemporaryDisk
implements JsonSerializable<TemporaryDisk>

Temporary disk payload.

Constructor Summary

Constructor Description
TemporaryDisk()

Creates an instance of TemporaryDisk class.

Method Summary

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

Reads an instance of TemporaryDisk from the JsonReader.

String mountPath()

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

Integer sizeInGB()

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

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

TemporaryDisk withMountPath(String mountPath)

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

TemporaryDisk withSizeInGB(Integer sizeInGB)

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

Methods inherited from java.lang.Object

Constructor Details

TemporaryDisk

public TemporaryDisk()

Creates an instance of TemporaryDisk class.

Method Details

fromJson

public static TemporaryDisk fromJson(JsonReader jsonReader)

Reads an instance of TemporaryDisk from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of TemporaryDisk 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 TemporaryDisk.

mountPath

public String mountPath()

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

Returns:

the mountPath value.

sizeInGB

public Integer sizeInGB()

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

Returns:

the sizeInGB value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withMountPath

public TemporaryDisk withMountPath(String mountPath)

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

Parameters:

mountPath - the mountPath value to set.

Returns:

the TemporaryDisk object itself.

withSizeInGB

public TemporaryDisk withSizeInGB(Integer sizeInGB)

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

Parameters:

sizeInGB - the sizeInGB value to set.

Returns:

the TemporaryDisk object itself.

Applies to