Class V1VolumeMount

java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1VolumeMount

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") public class V1VolumeMount extends Object
VolumeMount describes a mounting of a Volume within a container.
  • Field Details

  • Constructor Details

    • V1VolumeMount

      public V1VolumeMount(String mountPath, String name)
  • Method Details

    • getMountPath

      public String getMountPath()
      Path within the container at which the volume should be mounted. Must not contain ':'.
      Returns:
      the mountPath property value
    • setMountPath

      public void setMountPath(String mountPath)
      Set the mountPath property value
      Parameters:
      mountPath - property value to set
    • mountPath

      public V1VolumeMount mountPath(String mountPath)
      Set mountPath in a chainable fashion.
      Returns:
      The same instance of V1VolumeMount for chaining.
    • getName

      public String getName()
      This must match the Name of a Volume.
      Returns:
      the name property value
    • setName

      public void setName(String name)
      Set the name property value
      Parameters:
      name - property value to set
    • name

      public V1VolumeMount name(String name)
      Set name in a chainable fashion.
      Returns:
      The same instance of V1VolumeMount for chaining.
    • getMountPropagation

      public String getMountPropagation()
      mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10.
      Returns:
      the mountPropagation property value
    • setMountPropagation

      public void setMountPropagation(String mountPropagation)
      Set the mountPropagation property value
      Parameters:
      mountPropagation - property value to set
    • mountPropagation

      public V1VolumeMount mountPropagation(String mountPropagation)
      Set mountPropagation in a chainable fashion.
      Returns:
      The same instance of V1VolumeMount for chaining.
    • getReadOnly

      public Boolean getReadOnly()
      Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.
      Returns:
      the readOnly property value
    • setReadOnly

      public void setReadOnly(Boolean readOnly)
      Set the readOnly property value
      Parameters:
      readOnly - property value to set
    • readOnly

      public V1VolumeMount readOnly(Boolean readOnly)
      Set readOnly in a chainable fashion.
      Returns:
      The same instance of V1VolumeMount for chaining.
    • getSubPath

      public String getSubPath()
      Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root).
      Returns:
      the subPath property value
    • setSubPath

      public void setSubPath(String subPath)
      Set the subPath property value
      Parameters:
      subPath - property value to set
    • subPath

      public V1VolumeMount subPath(String subPath)
      Set subPath in a chainable fashion.
      Returns:
      The same instance of V1VolumeMount for chaining.
    • getSubPathExpr

      public String getSubPathExpr()
      Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to \"\" (volume's root). SubPathExpr and SubPath are mutually exclusive.
      Returns:
      the subPathExpr property value
    • setSubPathExpr

      public void setSubPathExpr(String subPathExpr)
      Set the subPathExpr property value
      Parameters:
      subPathExpr - property value to set
    • subPathExpr

      public V1VolumeMount subPathExpr(String subPathExpr)
      Set subPathExpr in a chainable fashion.
      Returns:
      The same instance of V1VolumeMount for chaining.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object