다음을 통해 공유


CustomPersistentDiskProperties Class

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

Implements

public class CustomPersistentDiskProperties
implements JsonSerializable<CustomPersistentDiskProperties>

Custom persistent disk resource payload.

Constructor Summary

Constructor Description
CustomPersistentDiskProperties()

Creates an instance of CustomPersistentDiskProperties class.

Method Summary

Modifier and Type Method and Description
Boolean enableSubPath()

Get the enableSubPath property: If set to true, it will create and mount a dedicated directory for every individual app instance.

static CustomPersistentDiskProperties fromJson(JsonReader jsonReader)

Reads an instance of CustomPersistentDiskProperties from the JsonReader.

List<String> mountOptions()

Get the mountOptions property: These are the mount options for a persistent disk.

String mountPath()

Get the mountPath property: The mount path of the persistent disk.

Boolean readOnly()

Get the readOnly property: Indicates whether the persistent disk is a readOnly one.

JsonWriter toJson(JsonWriter jsonWriter)
Type type()

Get the type property: The type of the underlying resource to mount as a persistent disk.

void validate()

Validates the instance.

CustomPersistentDiskProperties withEnableSubPath(Boolean enableSubPath)

Set the enableSubPath property: If set to true, it will create and mount a dedicated directory for every individual app instance.

CustomPersistentDiskProperties withMountOptions(List<String> mountOptions)

Set the mountOptions property: These are the mount options for a persistent disk.

CustomPersistentDiskProperties withMountPath(String mountPath)

Set the mountPath property: The mount path of the persistent disk.

CustomPersistentDiskProperties withReadOnly(Boolean readOnly)

Set the readOnly property: Indicates whether the persistent disk is a readOnly one.

Methods inherited from java.lang.Object

Constructor Details

CustomPersistentDiskProperties

public CustomPersistentDiskProperties()

Creates an instance of CustomPersistentDiskProperties class.

Method Details

enableSubPath

public Boolean enableSubPath()

Get the enableSubPath property: If set to true, it will create and mount a dedicated directory for every individual app instance.

Returns:

the enableSubPath value.

fromJson

public static CustomPersistentDiskProperties fromJson(JsonReader jsonReader)

Reads an instance of CustomPersistentDiskProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of CustomPersistentDiskProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

mountOptions

public List mountOptions()

Get the mountOptions property: These are the mount options for a persistent disk.

Returns:

the mountOptions value.

mountPath

public String mountPath()

Get the mountPath property: The mount path of the persistent disk.

Returns:

the mountPath value.

readOnly

public Boolean readOnly()

Get the readOnly property: Indicates whether the persistent disk is a readOnly one.

Returns:

the readOnly value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public Type type()

Get the type property: The type of the underlying resource to mount as a persistent disk.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withEnableSubPath

public CustomPersistentDiskProperties withEnableSubPath(Boolean enableSubPath)

Set the enableSubPath property: If set to true, it will create and mount a dedicated directory for every individual app instance.

Parameters:

enableSubPath - the enableSubPath value to set.

Returns:

the CustomPersistentDiskProperties object itself.

withMountOptions

public CustomPersistentDiskProperties withMountOptions(List mountOptions)

Set the mountOptions property: These are the mount options for a persistent disk.

Parameters:

mountOptions - the mountOptions value to set.

Returns:

the CustomPersistentDiskProperties object itself.

withMountPath

public CustomPersistentDiskProperties withMountPath(String mountPath)

Set the mountPath property: The mount path of the persistent disk.

Parameters:

mountPath - the mountPath value to set.

Returns:

the CustomPersistentDiskProperties object itself.

withReadOnly

public CustomPersistentDiskProperties withReadOnly(Boolean readOnly)

Set the readOnly property: Indicates whether the persistent disk is a readOnly one.

Parameters:

readOnly - the readOnly value to set.

Returns:

the CustomPersistentDiskProperties object itself.

Applies to