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
-
Constructor Summary
-
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).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.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
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_MOUNT_PROPAGATION
- See Also:
-
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_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 -
mountPath
Set mountPath 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.- Returns:
- the mountPropagation property value
-
setMountPropagation
Set the mountPropagation property value -
mountPropagation
Set mountPropagation 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 -
name
Set name 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 -
readOnly
Set readOnly 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 -
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 -
subPathExpr
Set subPathExpr in a chainable fashion.- Returns:
- The same instance of V1VolumeMount for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-