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 Details

    • Builder

      public Builder()
  • Method Details

    • containerPath

      @Stability(Stable) public ScratchSpace.Builder containerPath(String containerPath)
      Parameters:
      containerPath - The path on the container to mount the scratch volume at. This parameter is required.
      Returns:
      this
    • name

      @Stability(Stable) public ScratchSpace.Builder name(String name)
      Sets the value of ScratchSpace.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

      @Stability(Stable) public ScratchSpace.Builder readOnly(Boolean readOnly)
      Sets the value of ScratchSpace.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

      @Stability(Stable) public ScratchSpace.Builder sourcePath(String sourcePath)
      Parameters:
      sourcePath - the value to be set. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public ScratchSpace build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<ScratchSpace>
      Returns:
      a new instance of ScratchSpace
      Throws:
      NullPointerException - if any required attribute was not provided