Class Tmpfs.Builder
java.lang.Object
software.amazon.awscdk.services.batch.Tmpfs.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<Tmpfs>
- Enclosing interface:
Tmpfs
@Stability(Stable)
public static final class Tmpfs.Builder
extends Object
implements software.amazon.jsii.Builder<Tmpfs>
A builder for
Tmpfs
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.containerPath
(String containerPath) Sets the value ofTmpfs.getContainerPath()
mountOptions
(List<? extends TmpfsMountOption> mountOptions) Sets the value ofTmpfs.getMountOptions()
Sets the value ofTmpfs.getSize()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
containerPath
Sets the value ofTmpfs.getContainerPath()
- Parameters:
containerPath
- The absolute file path where the tmpfs volume is to be mounted. This parameter is required.- Returns:
this
-
size
Sets the value ofTmpfs.getSize()
- Parameters:
size
- The size (in MiB) of the tmpfs volume. This parameter is required.- Returns:
this
-
mountOptions
Sets the value ofTmpfs.getMountOptions()
- Parameters:
mountOptions
- The list of tmpfs volume mount options. For more information, see TmpfsMountOptions.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<Tmpfs>
- Returns:
- a new instance of
Tmpfs
- Throws:
NullPointerException
- if any required attribute was not provided
-