CustomPersistentDiskProperties Class
- java.
lang. Object - com.
azure. resourcemanager. appplatform. models. CustomPersistentDiskProperties
- com.
Implements
public class CustomPersistentDiskProperties
implements JsonSerializable<CustomPersistentDiskProperties>
Custom persistent disk resource payload.
Constructor Summary
Constructor | Description |
---|---|
CustomPersistentDiskProperties() |
Creates an instance of Custom |
Method Summary
Modifier and Type | Method and Description |
---|---|
Boolean |
enableSubPath()
Get the enable |
static
Custom |
fromJson(JsonReader jsonReader)
Reads an instance of Custom |
List<String> |
mountOptions()
Get the mount |
String |
mountPath()
Get the mount |
Boolean |
readOnly()
Get the read |
Json |
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. |
Custom |
withEnableSubPath(Boolean enableSubPath)
Set the enable |
Custom |
withMountOptions(List<String> mountOptions)
Set the mount |
Custom |
withMountPath(String mountPath)
Set the mount |
Custom |
withReadOnly(Boolean readOnly)
Set the read |
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:
fromJson
public static CustomPersistentDiskProperties fromJson(JsonReader jsonReader)
Reads an instance of CustomPersistentDiskProperties from the JsonReader.
Parameters:
Returns:
Throws:
mountOptions
public List
Get the mountOptions property: These are the mount options for a persistent disk.
Returns:
mountPath
public String mountPath()
Get the mountPath property: The mount path of the persistent disk.
Returns:
readOnly
public Boolean readOnly()
Get the readOnly property: Indicates whether the persistent disk is a readOnly one.
Returns:
toJson
type
public Type type()
Get the type property: The type of the underlying resource to mount as a persistent disk.
Returns:
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:
Returns:
withMountOptions
public CustomPersistentDiskProperties withMountOptions(List
Set the mountOptions property: These are the mount options for a persistent disk.
Parameters:
Returns:
withMountPath
public CustomPersistentDiskProperties withMountPath(String mountPath)
Set the mountPath property: The mount path of the persistent disk.
Parameters:
Returns:
withReadOnly
public CustomPersistentDiskProperties withReadOnly(Boolean readOnly)
Set the readOnly property: Indicates whether the persistent disk is a readOnly one.
Parameters:
Returns:
Applies to
Azure SDK for Java