Class CustomPersistentDiskProperties
java.lang.Object
com.azure.resourcemanager.appplatform.models.CustomPersistentDiskProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<CustomPersistentDiskProperties>
- Direct Known Subclasses:
AzureFileVolume
public class CustomPersistentDiskProperties
extends Object
implements com.azure.json.JsonSerializable<CustomPersistentDiskProperties>
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.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of CustomPersistentDiskProperties from the JsonReader.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.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.Methods 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
-
CustomPersistentDiskProperties
public CustomPersistentDiskProperties()Creates an instance of CustomPersistentDiskProperties class.
-
-
Method Details
-
type
Get the type property: The type of the underlying resource to mount as a persistent disk.- Returns:
- the type value.
-
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.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<CustomPersistentDiskProperties>- Throws:
IOException
-
fromJson
public static CustomPersistentDiskProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the CustomPersistentDiskProperties.
-