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
Constructors -
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 thehostparameter is used, specify asourcePathto 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 thehostparameter contains asourcePathfile location, then the data volume persists at the specified location on the host container instance until you delete it manually. If thesourcePathvalue 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
sourcePathparameter is not supported.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTaskDefinition.HostVolumePropertiesProperty>- Returns:
- a new instance of
CfnTaskDefinition.HostVolumePropertiesProperty - Throws:
NullPointerException- if any required attribute was not provided
-