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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Path within the container at which the volume should be mounted.mountPropagation determines how mounts are propagated from the host to container and the other way around.getName()
This must match the Name of a Volume.Mounted read-only if true, read-write otherwise (false or unspecified).RecursiveReadOnly specifies whether read-only mounts should be handled recursively.Path within the volume from which the container's volume should be mounted.Expanded path within the volume from which the container's volume should be mounted.int
hashCode()
Set mountPath in a chainable fashion.mountPropagation
(String mountPropagation) Set mountPropagation in a chainable fashion.Set name in a chainable fashion.Set readOnly in a chainable fashion.recursiveReadOnly
(String recursiveReadOnly) Set recursiveReadOnly in a chainable fashion.void
setMountPath
(String mountPath) Set the mountPath property valuevoid
setMountPropagation
(String mountPropagation) Set the mountPropagation property valuevoid
Set the name property valuevoid
setReadOnly
(Boolean readOnly) Set the readOnly property valuevoid
setRecursiveReadOnly
(String recursiveReadOnly) Set the recursiveReadOnly property valuevoid
setSubPath
(String subPath) Set the subPath property valuevoid
setSubPathExpr
(String subPathExpr) Set the subPathExpr property valueSet subPath in a chainable fashion.subPathExpr
(String subPathExpr) Set subPathExpr in a chainable fashion.toString()
-
Field Details
-
JSON_PROPERTY_MOUNT_PATH
- See Also:
-
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_MOUNT_PROPAGATION
- See Also:
-
JSON_PROPERTY_READ_ONLY
- See Also:
-
JSON_PROPERTY_RECURSIVE_READ_ONLY
- See Also:
-
JSON_PROPERTY_SUB_PATH
- See Also:
-
JSON_PROPERTY_SUB_PATH_EXPR
- See Also:
-
-
Constructor Details
-
V1VolumeMount
-
-
Method Details
-
getMountPath
Path within the container at which the volume should be mounted. Must not contain ':'.- Returns:
- the mountPath property value
-
setMountPath
Set the mountPath property value- Parameters:
mountPath
- property value to set
-
mountPath
Set mountPath in a chainable fashion.- Returns:
- The same instance of V1VolumeMount for chaining.
-
getName
This must match the Name of a Volume.- Returns:
- the name property value
-
setName
Set the name property value- Parameters:
name
- property value to set
-
name
Set name in a chainable fashion.- Returns:
- The same instance of V1VolumeMount for chaining.
-
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. When RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified (which defaults to None).- Returns:
- the mountPropagation property value
-
setMountPropagation
Set the mountPropagation property value- Parameters:
mountPropagation
- property value to set
-
mountPropagation
Set mountPropagation in a chainable fashion.- Returns:
- The same instance of V1VolumeMount for chaining.
-
getReadOnly
Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.- Returns:
- the readOnly property value
-
setReadOnly
Set the readOnly property value- Parameters:
readOnly
- property value to set
-
readOnly
Set readOnly in a chainable fashion.- Returns:
- The same instance of V1VolumeMount for chaining.
-
getRecursiveReadOnly
RecursiveReadOnly specifies whether read-only mounts should be handled recursively. If ReadOnly is false, this field has no meaning and must be unspecified. If ReadOnly is true, and this field is set to Disabled, the mount is not made recursively read-only. If this field is set to IfPossible, the mount is made recursively read-only, if it is supported by the container runtime. If this field is set to Enabled, the mount is made recursively read-only if it is supported by the container runtime, otherwise the pod will not be started and an error will be generated to indicate the reason. If this field is set to IfPossible or Enabled, MountPropagation must be set to None (or be unspecified, which defaults to None). If this field is not specified, it is treated as an equivalent of Disabled.- Returns:
- the recursiveReadOnly property value
-
setRecursiveReadOnly
Set the recursiveReadOnly property value- Parameters:
recursiveReadOnly
- property value to set
-
recursiveReadOnly
Set recursiveReadOnly in a chainable fashion.- Returns:
- The same instance of V1VolumeMount for chaining.
-
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
Set the subPath property value- Parameters:
subPath
- property value to set
-
subPath
Set subPath in a chainable fashion.- Returns:
- The same instance of V1VolumeMount for chaining.
-
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
Set the subPathExpr property value- Parameters:
subPathExpr
- property value to set
-
subPathExpr
Set subPathExpr in a chainable fashion.- Returns:
- The same instance of V1VolumeMount for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-