Class EcsVolumeOptions.Builder
java.lang.Object
software.amazon.awscdk.services.batch.EcsVolumeOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<EcsVolumeOptions>
- Enclosing interface:
EcsVolumeOptions
@Stability(Stable)
public static final class EcsVolumeOptions.Builder
extends Object
implements software.amazon.jsii.Builder<EcsVolumeOptions>
A builder for
EcsVolumeOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.containerPath
(String containerPath) Sets the value ofEcsVolumeOptions.getContainerPath()
Sets the value ofEcsVolumeOptions.getName()
Sets the value ofEcsVolumeOptions.getReadonly()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
containerPath
Sets the value ofEcsVolumeOptions.getContainerPath()
- Parameters:
containerPath
- the path on the container where this volume is mounted. This parameter is required.- Returns:
this
-
name
Sets the value ofEcsVolumeOptions.getName()
- Parameters:
name
- the name of this volume. This parameter is required.- Returns:
this
-
readonly
Sets the value ofEcsVolumeOptions.getReadonly()
- Parameters:
readonly
- if set, the container will have readonly access to the volume.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<EcsVolumeOptions>
- Returns:
- a new instance of
EcsVolumeOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-