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 Details

    • CustomPersistentDiskProperties

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

    • type

      public Type type()
      Get the type property: The type of the underlying resource to mount as a persistent disk.
      Returns:
      the type value.
    • 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.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.