Class CustomPersistentDiskProperties

java.lang.Object
com.azure.resourcemanager.appplatform.models.CustomPersistentDiskProperties
Direct Known Subclasses:
AzureFileVolume

public class CustomPersistentDiskProperties extends Object
Custom persistent disk resource payload.
  • Constructor Details

    • CustomPersistentDiskProperties

      public CustomPersistentDiskProperties()
      Creates an instance of CustomPersistentDiskProperties class.
  • Method Details

    • mountPath

      public String mountPath()
      Get the mountPath property: The mount path of the persistent disk.
      Returns:
      the mountPath value.
    • withMountPath

      public CustomPersistentDiskProperties withMountPath(String mountPath)
      Set the mountPath property: The mount path of the persistent disk.
      Parameters:
      mountPath - the mountPath value to set.
      Returns:
      the CustomPersistentDiskProperties object itself.
    • readOnly

      public Boolean readOnly()
      Get the readOnly property: Indicates whether the persistent disk is a readOnly one.
      Returns:
      the readOnly value.
    • withReadOnly

      public CustomPersistentDiskProperties withReadOnly(Boolean readOnly)
      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

      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:
      the enableSubPath value.
    • 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:
      enableSubPath - the enableSubPath value to set.
      Returns:
      the CustomPersistentDiskProperties object itself.
    • mountOptions

      public List<String> mountOptions()
      Get the mountOptions property: These are the mount options for a persistent disk.
      Returns:
      the mountOptions value.
    • withMountOptions

      public CustomPersistentDiskProperties withMountOptions(List<String> mountOptions)
      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.