Class CfnTaskDefinition.HostVolumePropertiesProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.CfnTaskDefinition.HostVolumePropertiesProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTaskDefinition.HostVolumePropertiesProperty>
- Enclosing interface:
CfnTaskDefinition.HostVolumePropertiesProperty
@Stability(Stable)
public static final class CfnTaskDefinition.HostVolumePropertiesProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTaskDefinition.HostVolumePropertiesProperty>
A builder for
CfnTaskDefinition.HostVolumePropertiesProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.sourcePath
(String sourcePath) Sets the value ofCfnTaskDefinition.HostVolumePropertiesProperty.getSourcePath()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
sourcePath
@Stability(Stable) public CfnTaskDefinition.HostVolumePropertiesProperty.Builder sourcePath(String sourcePath) Sets the value ofCfnTaskDefinition.HostVolumePropertiesProperty.getSourcePath()
- Parameters:
sourcePath
- When thehost
parameter is used, specify asourcePath
to declare the path on the host container instance that's presented to the container. If this parameter is empty, then the Docker daemon has assigned a host path for you. If thehost
parameter contains asourcePath
file location, then the data volume persists at the specified location on the host container instance until you delete it manually. If thesourcePath
value doesn't 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.If you're using the Fargate launch type, the
sourcePath
parameter is not supported.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTaskDefinition.HostVolumePropertiesProperty>
- Returns:
- a new instance of
CfnTaskDefinition.HostVolumePropertiesProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-