Class CfnTaskDefinitionPropsMixin.HostVolumePropertiesProperty.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.ecs.mixins.CfnTaskDefinitionPropsMixin.HostVolumePropertiesProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTaskDefinitionPropsMixin.HostVolumePropertiesProperty>
- Enclosing interface:
CfnTaskDefinitionPropsMixin.HostVolumePropertiesProperty
@Stability(Stable)
public static final class CfnTaskDefinitionPropsMixin.HostVolumePropertiesProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTaskDefinitionPropsMixin.HostVolumePropertiesProperty>
A builder for
CfnTaskDefinitionPropsMixin.HostVolumePropertiesProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.sourcePath(String sourcePath) Sets the value ofCfnTaskDefinitionPropsMixin.HostVolumePropertiesProperty.getSourcePath()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
sourcePath
@Stability(Stable) public CfnTaskDefinitionPropsMixin.HostVolumePropertiesProperty.Builder sourcePath(String sourcePath) Sets the value ofCfnTaskDefinitionPropsMixin.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<CfnTaskDefinitionPropsMixin.HostVolumePropertiesProperty>- Returns:
- a new instance of
CfnTaskDefinitionPropsMixin.HostVolumePropertiesProperty - Throws:
NullPointerException- if any required attribute was not provided
-