Class HostVolumeOptions.Builder
java.lang.Object
software.amazon.awscdk.services.batch.HostVolumeOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<HostVolumeOptions>
- Enclosing interface:
HostVolumeOptions
@Stability(Stable)
public static final class HostVolumeOptions.Builder
extends Object
implements software.amazon.jsii.Builder<HostVolumeOptions>
A builder for
HostVolumeOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.containerPath
(String containerPath) Sets the value ofEcsVolumeOptions.getContainerPath()
Sets the value ofHostVolumeOptions.getHostPath()
Sets the value ofEcsVolumeOptions.getName()
Sets the value ofEcsVolumeOptions.getReadonly()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
hostPath
Sets the value ofHostVolumeOptions.getHostPath()
- Parameters:
hostPath
- The path on the host machine this container will have access to.- Returns:
this
-
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<HostVolumeOptions>
- Returns:
- a new instance of
HostVolumeOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-