Class EmptyDirVolumeOptions.Builder
java.lang.Object
software.amazon.awscdk.services.batch.EmptyDirVolumeOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<EmptyDirVolumeOptions>
- Enclosing interface:
EmptyDirVolumeOptions
@Stability(Stable)
public static final class EmptyDirVolumeOptions.Builder
extends Object
implements software.amazon.jsii.Builder<EmptyDirVolumeOptions>
A builder for
EmptyDirVolumeOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.medium
(EmptyDirMediumType medium) Sets the value ofEmptyDirVolumeOptions.getMedium()
Sets the value ofEksVolumeOptions.getMountPath()
Sets the value ofEksVolumeOptions.getName()
Sets the value ofEksVolumeOptions.getReadonly()
Sets the value ofEmptyDirVolumeOptions.getSizeLimit()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
medium
Sets the value ofEmptyDirVolumeOptions.getMedium()
- Parameters:
medium
- The storage type to use for this Volume.- Returns:
this
-
sizeLimit
Sets the value ofEmptyDirVolumeOptions.getSizeLimit()
- Parameters:
sizeLimit
- The maximum size for this Volume.- Returns:
this
-
name
Sets the value ofEksVolumeOptions.getName()
- Parameters:
name
- The name of this volume. This parameter is required. The name must be a valid DNS subdomain name.- Returns:
this
-
mountPath
Sets the value ofEksVolumeOptions.getMountPath()
- Parameters:
mountPath
- The path on the container where the volume is mounted.- Returns:
this
-
readonly
Sets the value ofEksVolumeOptions.getReadonly()
- Parameters:
readonly
- If specified, the container has readonly access to the volume. Otherwise, the container has read/write access.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<EmptyDirVolumeOptions>
- Returns:
- a new instance of
EmptyDirVolumeOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-