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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.sourcePath
(String sourcePath) Sets the value ofHost.getSourcePath()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
sourcePath
Sets the value ofHost.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
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<Host>
- Returns:
- a new instance of
Host
- Throws:
NullPointerException
- if any required attribute was not provided
-