Class VolumeFrom.Builder

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

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

    • Builder

      public Builder()
  • Method Details

    • readOnly

      @Stability(Stable) public VolumeFrom.Builder readOnly(Boolean readOnly)
      Sets the value of VolumeFrom.getReadOnly()
      Parameters:
      readOnly - Specifies whether the container has 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
    • sourceContainer

      @Stability(Stable) public VolumeFrom.Builder sourceContainer(String sourceContainer)
      Parameters:
      sourceContainer - The name of another container within the same task definition from which to mount volumes. This parameter is required.
      Returns:
      this
    • build

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