Class AzureFileVolume

java.lang.Object
com.azure.resourcemanager.appplatform.models.CustomPersistentDiskProperties
com.azure.resourcemanager.appplatform.models.AzureFileVolume

public final class AzureFileVolume extends CustomPersistentDiskProperties
The properties of the Azure File volume. Azure File shares are mounted as volumes.
  • Constructor Details

    • AzureFileVolume

      public AzureFileVolume()
  • Method Details

    • shareName

      public String shareName()
      Get the shareName property: The share name of the Azure File share.
      Returns:
      the shareName value.
    • withShareName

      public AzureFileVolume withShareName(String shareName)
      Set the shareName property: The share name of the Azure File share.
      Parameters:
      shareName - the shareName value to set.
      Returns:
      the AzureFileVolume object itself.
    • withMountPath

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

      public AzureFileVolume withReadOnly(Boolean readOnly)
      Set the readOnly property: Indicates whether the persistent disk is a readOnly one.
      Overrides:
      withReadOnly in class CustomPersistentDiskProperties
      Parameters:
      readOnly - the readOnly value to set.
      Returns:
      the CustomPersistentDiskProperties object itself.
    • withMountOptions

      public AzureFileVolume withMountOptions(List<String> mountOptions)
      Set the mountOptions property: These are the mount options for a persistent disk.
      Overrides:
      withMountOptions in class CustomPersistentDiskProperties
      Parameters:
      mountOptions - the mountOptions value to set.
      Returns:
      the CustomPersistentDiskProperties object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class CustomPersistentDiskProperties
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.