Class MountPoint.Builder

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

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

    • Builder

      public Builder()
  • Method Details

    • containerPath

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

      @Stability(Stable) public MountPoint.Builder sourceVolume(String sourceVolume)
      Parameters:
      sourceVolume - The name of the volume to mount. This parameter is required. Must be a volume name referenced in the name parameter of task definition volume.
      Returns:
      this
    • build

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