@Stability(value=Stable) public static final class ScratchSpace.Builder extends Object implements software.amazon.jsii.Builder<ScratchSpace>
ScratchSpace
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ScratchSpace |
build()
Builds the configured instance.
|
ScratchSpace.Builder |
containerPath(String containerPath)
Sets the value of
ScratchSpace.getContainerPath() |
ScratchSpace.Builder |
name(String name)
Sets the value of
ScratchSpace.getName() |
ScratchSpace.Builder |
readOnly(Boolean readOnly)
Sets the value of
ScratchSpace.getReadOnly() |
ScratchSpace.Builder |
sourcePath(String sourcePath)
Sets the value of
ScratchSpace.getSourcePath() |
@Stability(value=Stable) public ScratchSpace.Builder containerPath(String containerPath)
ScratchSpace.getContainerPath()
containerPath
- The path on the container to mount the scratch volume at. This parameter is required.this
@Stability(value=Stable) public ScratchSpace.Builder name(String name)
ScratchSpace.getName()
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.this
@Stability(value=Stable) public ScratchSpace.Builder readOnly(Boolean readOnly)
ScratchSpace.getReadOnly()
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.this
@Stability(value=Stable) public ScratchSpace.Builder sourcePath(String sourcePath)
ScratchSpace.getSourcePath()
sourcePath
- the value to be set. This parameter is required.this
@Stability(value=Stable) public ScratchSpace build()
build
in interface software.amazon.jsii.Builder<ScratchSpace>
ScratchSpace
NullPointerException
- if any required attribute was not providedCopyright © 2021. All rights reserved.