Class CfnTaskDefinition.TmpfsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.CfnTaskDefinition.TmpfsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTaskDefinition.TmpfsProperty>
- Enclosing interface:
CfnTaskDefinition.TmpfsProperty
@Stability(Stable)
public static final class CfnTaskDefinition.TmpfsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTaskDefinition.TmpfsProperty>
A builder for
CfnTaskDefinition.TmpfsProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.containerPath
(String containerPath) Sets the value ofCfnTaskDefinition.TmpfsProperty.getContainerPath()
mountOptions
(List<String> mountOptions) Sets the value ofCfnTaskDefinition.TmpfsProperty.getMountOptions()
Sets the value ofCfnTaskDefinition.TmpfsProperty.getSize()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
size
Sets the value ofCfnTaskDefinition.TmpfsProperty.getSize()
- Parameters:
size
- The maximum size (in MiB) of the tmpfs volume. This parameter is required.- Returns:
this
-
containerPath
@Stability(Stable) public CfnTaskDefinition.TmpfsProperty.Builder containerPath(String containerPath) Sets the value ofCfnTaskDefinition.TmpfsProperty.getContainerPath()
- Parameters:
containerPath
- The absolute file path where the tmpfs volume is to be mounted.- Returns:
this
-
mountOptions
@Stability(Stable) public CfnTaskDefinition.TmpfsProperty.Builder mountOptions(List<String> mountOptions) Sets the value ofCfnTaskDefinition.TmpfsProperty.getMountOptions()
- Parameters:
mountOptions
- The list of tmpfs 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<CfnTaskDefinition.TmpfsProperty>
- Returns:
- a new instance of
CfnTaskDefinition.TmpfsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-