Class BaseMountPoint.Builder

java.lang.Object
software.amazon.awscdk.services.ecs.BaseMountPoint.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<BaseMountPoint>
Enclosing interface:
BaseMountPoint

@Stability(Stable) public static final class BaseMountPoint.Builder extends Object implements software.amazon.jsii.Builder<BaseMountPoint>
A builder for BaseMountPoint
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • containerPath

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

      @Stability(Stable) public BaseMountPoint.Builder readOnly(Boolean readOnly)
      Parameters:
      readOnly - Specifies whether to give the container read-only access to the volume. This parameter is required. If this value is true, the container has read-only access to the volume. If this value is false, then the container can write to the volume.
      Returns:
      this
    • build

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