Class CfnJobDefinition.EksContainerVolumeMountProperty.Builder
java.lang.Object
software.amazon.awscdk.services.batch.CfnJobDefinition.EksContainerVolumeMountProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnJobDefinition.EksContainerVolumeMountProperty>
- Enclosing interface:
CfnJobDefinition.EksContainerVolumeMountProperty
@Stability(Stable)
public static final class CfnJobDefinition.EksContainerVolumeMountProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnJobDefinition.EksContainerVolumeMountProperty>
A builder for
CfnJobDefinition.EksContainerVolumeMountProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnJobDefinition.EksContainerVolumeMountProperty.getMountPath()
Sets the value ofCfnJobDefinition.EksContainerVolumeMountProperty.getName()
Sets the value ofCfnJobDefinition.EksContainerVolumeMountProperty.getReadOnly()
readOnly
(IResolvable readOnly) Sets the value ofCfnJobDefinition.EksContainerVolumeMountProperty.getReadOnly()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
mountPath
@Stability(Stable) public CfnJobDefinition.EksContainerVolumeMountProperty.Builder mountPath(String mountPath) Sets the value ofCfnJobDefinition.EksContainerVolumeMountProperty.getMountPath()
- Parameters:
mountPath
- The path on the container where the volume is mounted.- Returns:
this
-
name
@Stability(Stable) public CfnJobDefinition.EksContainerVolumeMountProperty.Builder name(String name) Sets the value ofCfnJobDefinition.EksContainerVolumeMountProperty.getName()
- Parameters:
name
- The name the volume mount. This must match the name of one of the volumes in the pod.- Returns:
this
-
readOnly
@Stability(Stable) public CfnJobDefinition.EksContainerVolumeMountProperty.Builder readOnly(Boolean readOnly) Sets the value ofCfnJobDefinition.EksContainerVolumeMountProperty.getReadOnly()
- Parameters:
readOnly
- If this value istrue
, the container has read-only access to the volume. Otherwise, the container can write to the volume. The default value isfalse
.- Returns:
this
-
readOnly
@Stability(Stable) public CfnJobDefinition.EksContainerVolumeMountProperty.Builder readOnly(IResolvable readOnly) Sets the value ofCfnJobDefinition.EksContainerVolumeMountProperty.getReadOnly()
- Parameters:
readOnly
- If this value istrue
, the container has read-only access to the volume. Otherwise, the container can write to the volume. The default value isfalse
.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnJobDefinition.EksContainerVolumeMountProperty>
- Returns:
- a new instance of
CfnJobDefinition.EksContainerVolumeMountProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-