Class VolumeMount

java.lang.Object
com.azure.resourcemanager.appservice.models.VolumeMount

public final class VolumeMount extends Object
The VolumeMount model.
  • Constructor Details

    • VolumeMount

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

    • volumeSubPath

      public String volumeSubPath()
      Get the volumeSubPath property: Sub path in the volume where volume is mounted from.
      Returns:
      the volumeSubPath value.
    • withVolumeSubPath

      public VolumeMount withVolumeSubPath(String volumeSubPath)
      Set the volumeSubPath property: Sub path in the volume where volume is mounted from.
      Parameters:
      volumeSubPath - the volumeSubPath value to set.
      Returns:
      the VolumeMount object itself.
    • containerMountPath

      public String containerMountPath()
      Get the containerMountPath property: Target path on the container where volume is mounted on.
      Returns:
      the containerMountPath value.
    • withContainerMountPath

      public VolumeMount withContainerMountPath(String containerMountPath)
      Set the containerMountPath property: Target path on the container where volume is mounted on.
      Parameters:
      containerMountPath - the containerMountPath value to set.
      Returns:
      the VolumeMount object itself.
    • data

      public String data()
      Get the data property: Config Data to be mounted on the volume.
      Returns:
      the data value.
    • withData

      public VolumeMount withData(String data)
      Set the data property: Config Data to be mounted on the volume.
      Parameters:
      data - the data value to set.
      Returns:
      the VolumeMount object itself.
    • readOnly

      public Boolean readOnly()
      Get the readOnly property: Boolean to specify if the mount is read only on the container.
      Returns:
      the readOnly value.
    • withReadOnly

      public VolumeMount withReadOnly(Boolean readOnly)
      Set the readOnly property: Boolean to specify if the mount is read only on the container.
      Parameters:
      readOnly - the readOnly value to set.
      Returns:
      the VolumeMount object itself.
    • validate

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