Class AzureFileVolume
java.lang.Object
com.azure.resourcemanager.appplatform.models.CustomPersistentDiskProperties
com.azure.resourcemanager.appplatform.models.AzureFileVolume
- All Implemented Interfaces:
com.azure.json.JsonSerializable<CustomPersistentDiskProperties>
The properties of the Azure File volume. Azure File shares are mounted as volumes.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AzureFileVolumefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AzureFileVolume from the JsonReader.Get the shareName property: The share name of the Azure File share.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the underlying resource to mount as a persistent disk.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, readOnlyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
AzureFileVolume
public AzureFileVolume()Creates an instance of AzureFileVolume class.
-
-
Method Details
-
type
Get the type property: The type of the underlying resource to mount as a persistent disk.- Overrides:
typein classCustomPersistentDiskProperties- Returns:
- the type value.
-
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.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<CustomPersistentDiskProperties>- Overrides:
toJsonin classCustomPersistentDiskProperties- Throws:
IOException
-
fromJson
Reads an instance of AzureFileVolume from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AzureFileVolume if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the AzureFileVolume.
-