Class CfnTask.MountProperty.Builder
java.lang.Object
software.amazon.awscdk.services.iotsitewise.CfnTask.MountProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTask.MountProperty>
- Enclosing interface:
CfnTask.MountProperty
@Stability(Stable)
public static final class CfnTask.MountProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTask.MountProperty>
A builder for
CfnTask.MountProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnTask.MountProperty.getName()relativePath(String relativePath) Sets the value ofCfnTask.MountProperty.getRelativePath()source(IResolvable source) Sets the value ofCfnTask.MountProperty.getSource()source(CfnTask.MountSourceProperty source) Sets the value ofCfnTask.MountProperty.getSource()storageType(String storageType) Sets the value ofCfnTask.MountProperty.getStorageType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnTask.MountProperty.getName()- Parameters:
name- A unique name for the mount within the task. This parameter is required.- Returns:
this
-
relativePath
Sets the value ofCfnTask.MountProperty.getRelativePath()- Parameters:
relativePath- The relative path under the service-owned mount root where this mount is attached inside the container. This parameter is required.- Returns:
this
-
source
Sets the value ofCfnTask.MountProperty.getSource()- Parameters:
source- The data source configuration for a mount. This parameter is required.- Returns:
this
-
source
Sets the value ofCfnTask.MountProperty.getSource()- Parameters:
source- The data source configuration for a mount. This parameter is required.- Returns:
this
-
storageType
Sets the value ofCfnTask.MountProperty.getStorageType()- Parameters:
storageType- The type of storage used for the mount inside the container. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTask.MountProperty>- Returns:
- a new instance of
CfnTask.MountProperty - Throws:
NullPointerException- if any required attribute was not provided
-