java.lang.Object
com.microsoft.azure.management.containerinstance.VolumeMount

public class VolumeMount extends Object
The properties of the volume mount.
  • Constructor Details

    • VolumeMount

      public VolumeMount()
  • Method Details

    • name

      public String name()
      Get the name of the volume mount.
      Returns:
      the name value
    • withName

      public VolumeMount withName(String name)
      Set the name of the volume mount.
      Parameters:
      name - the name value to set
      Returns:
      the VolumeMount object itself.
    • mountPath

      public String mountPath()
      Get the path within the container where the volume should be mounted. Must not contain colon (:).
      Returns:
      the mountPath value
    • withMountPath

      public VolumeMount withMountPath(String mountPath)
      Set the path within the container where the volume should be mounted. Must not contain colon (:).
      Parameters:
      mountPath - the mountPath value to set
      Returns:
      the VolumeMount object itself.
    • readOnly

      public Boolean readOnly()
      Get the flag indicating whether the volume mount is read-only.
      Returns:
      the readOnly value
    • withReadOnly

      public VolumeMount withReadOnly(Boolean readOnly)
      Set the flag indicating whether the volume mount is read-only.
      Parameters:
      readOnly - the readOnly value to set
      Returns:
      the VolumeMount object itself.