Class CfnJobDefinition.TmpfsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.batch.CfnJobDefinition.TmpfsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnJobDefinition.TmpfsProperty>
- Enclosing interface:
CfnJobDefinition.TmpfsProperty
@Stability(Stable)
public static final class CfnJobDefinition.TmpfsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnJobDefinition.TmpfsProperty>
A builder for
CfnJobDefinition.TmpfsProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.containerPath
(String containerPath) Sets the value ofCfnJobDefinition.TmpfsProperty.getContainerPath()
mountOptions
(List<String> mountOptions) Sets the value ofCfnJobDefinition.TmpfsProperty.getMountOptions()
Sets the value ofCfnJobDefinition.TmpfsProperty.getSize()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
containerPath
@Stability(Stable) public CfnJobDefinition.TmpfsProperty.Builder containerPath(String containerPath) Sets the value ofCfnJobDefinition.TmpfsProperty.getContainerPath()
- Parameters:
containerPath
- The absolute file path in the container where thetmpfs
volume is mounted. This parameter is required.- Returns:
this
-
size
Sets the value ofCfnJobDefinition.TmpfsProperty.getSize()
- Parameters:
size
- The size (in MiB) of thetmpfs
volume. This parameter is required.- Returns:
this
-
mountOptions
@Stability(Stable) public CfnJobDefinition.TmpfsProperty.Builder mountOptions(List<String> mountOptions) Sets the value ofCfnJobDefinition.TmpfsProperty.getMountOptions()
- Parameters:
mountOptions
- The list oftmpfs
volume mount options. Valid values: "defaults
" | "ro
" | "rw
" | "suid
" | "nosuid
" | "dev
" | "nodev
" | "exec
" | "noexec
" | "sync
" | "async
" | "dirsync
" | "remount
" | "mand
" | "nomand
" | "atime
" | "noatime
" | "diratime
" | "nodiratime
" | "bind
" | "rbind" | "unbindable" | "runbindable" | "private" | "rprivate" | "shared" | "rshared" | "slave" | "rslave" | "relatime
" | "norelatime
" | "strictatime
" | "nostrictatime
" | "mode
" | "uid
" | "gid
" | "nr_inodes
" | "nr_blocks
" | "mpol
"- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnJobDefinition.TmpfsProperty>
- Returns:
- a new instance of
CfnJobDefinition.TmpfsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-