Class AzureFileVolume
java.lang.Object
com.azure.resourcemanager.appplatform.models.CustomPersistentDiskProperties
com.azure.resourcemanager.appplatform.models.AzureFileVolume
The properties of the Azure File volume. Azure File shares are mounted as volumes.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the shareName property: The share name of the Azure File share.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.withShareName(String shareName) Set the shareName property: The share name of the Azure File share.Methods inherited from class com.azure.resourcemanager.appplatform.models.CustomPersistentDiskProperties
enableSubPath, mountOptions, mountPath, readOnly
-
Constructor Details
-
AzureFileVolume
public AzureFileVolume()Creates an instance of AzureFileVolume class.
-
-
Method Details
-
withMountPath
Set the mountPath property: The mount path of the persistent disk.- Overrides:
withMountPathin classCustomPersistentDiskProperties- Parameters:
mountPath- the mountPath value to set.- Returns:
- the CustomPersistentDiskProperties object itself.
-
withReadOnly
Set the readOnly property: Indicates whether the persistent disk is a readOnly one.- Overrides:
withReadOnlyin classCustomPersistentDiskProperties- Parameters:
readOnly- the readOnly value to set.- Returns:
- the CustomPersistentDiskProperties object itself.
-
withEnableSubPath
Set the enableSubPath property: If set to true, it will create and mount a dedicated directory for every individual app instance.- Overrides:
withEnableSubPathin classCustomPersistentDiskProperties- Parameters:
enableSubPath- the enableSubPath value to set.- Returns:
- the CustomPersistentDiskProperties object itself.
-
withMountOptions
Set the mountOptions property: These are the mount options for a persistent disk.- Overrides:
withMountOptionsin classCustomPersistentDiskProperties- Parameters:
mountOptions- the mountOptions value to set.- Returns:
- the CustomPersistentDiskProperties object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classCustomPersistentDiskProperties- Throws:
IllegalArgumentException- thrown if the instance is not valid.