Class ScratchSpace.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.ScratchSpace.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ScratchSpace>
- Enclosing interface:
ScratchSpace
@Stability(Stable)
public static final class ScratchSpace.Builder
extends Object
implements software.amazon.jsii.Builder<ScratchSpace>
A builder for
ScratchSpace
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.containerPath
(String containerPath) Sets the value ofScratchSpace.getContainerPath()
Sets the value ofScratchSpace.getName()
Sets the value ofScratchSpace.getReadOnly()
sourcePath
(String sourcePath) Sets the value ofScratchSpace.getSourcePath()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
containerPath
Sets the value ofScratchSpace.getContainerPath()
- Parameters:
containerPath
- The path on the container to mount the scratch volume at. This parameter is required.- Returns:
this
-
name
Sets the value ofScratchSpace.getName()
- Parameters:
name
- The name of the scratch volume to mount. This parameter is required. Must be a volume name referenced in the name parameter of task definition volume.- Returns:
this
-
readOnly
Sets the value ofScratchSpace.getReadOnly()
- Parameters:
readOnly
- Specifies whether to give the container read-only access to the scratch volume. This parameter is required. If this value is true, the container has read-only access to the scratch volume. If this value is false, then the container can write to the scratch volume.- Returns:
this
-
sourcePath
Sets the value ofScratchSpace.getSourcePath()
- Parameters:
sourcePath
- the value to be set. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ScratchSpace>
- Returns:
- a new instance of
ScratchSpace
- Throws:
NullPointerException
- if any required attribute was not provided
-