Class CustomPersistentDiskProperties
java.lang.Object
com.azure.resourcemanager.appplatform.models.CustomPersistentDiskProperties
- Direct Known Subclasses:
AzureFileVolume
Custom persistent disk resource payload.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of CustomPersistentDiskProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the enableSubPath property: If set to true, it will create and mount a dedicated directory for every individual app instance.Get the mountOptions property: These are the mount options for a persistent disk.Get the mountPath property: The mount path of the persistent disk.readOnly()Get the readOnly property: Indicates whether the persistent disk is a readOnly one.voidvalidate()Validates the instance.withEnableSubPath(Boolean enableSubPath) Set the enableSubPath property: If set to true, it will create and mount a dedicated directory for every individual app instance.withMountOptions(List<String> mountOptions) Set the mountOptions property: These are the mount options for a persistent disk.withMountPath(String mountPath) Set the mountPath property: The mount path of the persistent disk.withReadOnly(Boolean readOnly) Set the readOnly property: Indicates whether the persistent disk is a readOnly one.
-
Constructor Details
-
CustomPersistentDiskProperties
public CustomPersistentDiskProperties()Creates an instance of CustomPersistentDiskProperties class.
-
-
Method Details
-
mountPath
Get the mountPath property: The mount path of the persistent disk.- Returns:
- the mountPath value.
-
withMountPath
Set the mountPath property: The mount path of the persistent disk.- Parameters:
mountPath- the mountPath value to set.- Returns:
- the CustomPersistentDiskProperties object itself.
-
readOnly
Get the readOnly property: Indicates whether the persistent disk is a readOnly one.- Returns:
- the readOnly value.
-
withReadOnly
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.
-
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.
-
withEnableSubPath
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.
-
mountOptions
Get the mountOptions property: These are the mount options for a persistent disk.- Returns:
- the mountOptions value.
-
withMountOptions
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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-