Class Host.Builder

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

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

    • Builder

      public Builder()
  • Method Details

    • sourcePath

      @Stability(Stable) public Host.Builder sourcePath(String sourcePath)
      Sets the value of Host.getSourcePath()
      Parameters:
      sourcePath - Specifies the path on the host container instance that is presented to the container. If the sourcePath value does not exist on the host container instance, the Docker daemon creates it. If the location does exist, the contents of the source path folder are exported.

      This property is not supported for tasks that use the Fargate launch type.

      Returns:
      this
    • build

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