Class EmptyDirVolume.Builder
java.lang.Object
software.amazon.awscdk.services.batch.EmptyDirVolume.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<EmptyDirVolume>
- Enclosing class:
EmptyDirVolume
@Stability(Stable)
public static final class EmptyDirVolume.Builder
extends Object
implements software.amazon.jsii.Builder<EmptyDirVolume>
A fluent builder for
EmptyDirVolume
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static EmptyDirVolume.Builder
create()
medium
(EmptyDirMediumType medium) The storage type to use for this Volume.The path on the container where the volume is mounted.The name of this volume.If specified, the container has readonly access to the volume.The maximum size for this Volume.
-
Method Details
-
create
- Returns:
- a new instance of
EmptyDirVolume.Builder
.
-
name
The name of this volume.The name must be a valid DNS subdomain name.
- Parameters:
name
- The name of this volume. This parameter is required.- Returns:
this
- See Also:
-
mountPath
The path on the container where the volume is mounted.Default: - the volume is not mounted
- Parameters:
mountPath
- The path on the container where the volume is mounted. This parameter is required.- Returns:
this
-
readonly
If specified, the container has readonly access to the volume.Otherwise, the container has read/write access.
Default: false
- Parameters:
readonly
- If specified, the container has readonly access to the volume. This parameter is required.- Returns:
this
-
medium
The storage type to use for this Volume.Default: `EmptyDirMediumType.DISK`
- Parameters:
medium
- The storage type to use for this Volume. This parameter is required.- Returns:
this
-
sizeLimit
The maximum size for this Volume.Default: - no size limit
- Parameters:
sizeLimit
- The maximum size for this Volume. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<EmptyDirVolume>
- Returns:
- a newly built instance of
EmptyDirVolume
.
-