Class CfnWorkflow.CopyStepDetailsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.transfer.CfnWorkflow.CopyStepDetailsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWorkflow.CopyStepDetailsProperty>
- Enclosing interface:
CfnWorkflow.CopyStepDetailsProperty
@Stability(Stable)
public static final class CfnWorkflow.CopyStepDetailsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnWorkflow.CopyStepDetailsProperty>
A builder for
CfnWorkflow.CopyStepDetailsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.destinationFileLocation(IResolvable destinationFileLocation) Sets the value ofCfnWorkflow.CopyStepDetailsProperty.getDestinationFileLocation()destinationFileLocation(CfnWorkflow.S3FileLocationProperty destinationFileLocation) Sets the value ofCfnWorkflow.CopyStepDetailsProperty.getDestinationFileLocation()Sets the value ofCfnWorkflow.CopyStepDetailsProperty.getName()overwriteExisting(String overwriteExisting) Sets the value ofCfnWorkflow.CopyStepDetailsProperty.getOverwriteExisting()sourceFileLocation(String sourceFileLocation) Sets the value ofCfnWorkflow.CopyStepDetailsProperty.getSourceFileLocation()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
destinationFileLocation
@Stability(Stable) public CfnWorkflow.CopyStepDetailsProperty.Builder destinationFileLocation(IResolvable destinationFileLocation) Sets the value ofCfnWorkflow.CopyStepDetailsProperty.getDestinationFileLocation()- Parameters:
destinationFileLocation- Specifies the location for the file being copied. Use${Transfer:UserName}or${Transfer:UploadDate}in this field to parametrize the destination prefix by username or uploaded date.- Set the value of
DestinationFileLocationto${Transfer:UserName}to copy uploaded files to an Amazon S3 bucket that is prefixed with the name of the Transfer Family user that uploaded the file. - Set the value of
DestinationFileLocationto${Transfer:UploadDate}to copy uploaded files to an Amazon S3 bucket that is prefixed with the date of the upload.
The system resolves
UploadDateto a date format of YYYY-MM-DD , based on the date the file is uploaded in UTC.- Set the value of
- Returns:
this
-
destinationFileLocation
@Stability(Stable) public CfnWorkflow.CopyStepDetailsProperty.Builder destinationFileLocation(CfnWorkflow.S3FileLocationProperty destinationFileLocation) Sets the value ofCfnWorkflow.CopyStepDetailsProperty.getDestinationFileLocation()- Parameters:
destinationFileLocation- Specifies the location for the file being copied. Use${Transfer:UserName}or${Transfer:UploadDate}in this field to parametrize the destination prefix by username or uploaded date.- Set the value of
DestinationFileLocationto${Transfer:UserName}to copy uploaded files to an Amazon S3 bucket that is prefixed with the name of the Transfer Family user that uploaded the file. - Set the value of
DestinationFileLocationto${Transfer:UploadDate}to copy uploaded files to an Amazon S3 bucket that is prefixed with the date of the upload.
The system resolves
UploadDateto a date format of YYYY-MM-DD , based on the date the file is uploaded in UTC.- Set the value of
- Returns:
this
-
name
Sets the value ofCfnWorkflow.CopyStepDetailsProperty.getName()- Parameters:
name- The name of the step, used as an identifier.- Returns:
this
-
overwriteExisting
@Stability(Stable) public CfnWorkflow.CopyStepDetailsProperty.Builder overwriteExisting(String overwriteExisting) Sets the value ofCfnWorkflow.CopyStepDetailsProperty.getOverwriteExisting()- Parameters:
overwriteExisting- A flag that indicates whether to overwrite an existing file of the same name. The default isFALSE. If the workflow is processing a file that has the same name as an existing file, the behavior is as follows:- If
OverwriteExistingisTRUE, the existing file is replaced with the file being processed. - If
OverwriteExistingisFALSE, nothing happens, and the workflow processing stops.
- If
- Returns:
this
-
sourceFileLocation
@Stability(Stable) public CfnWorkflow.CopyStepDetailsProperty.Builder sourceFileLocation(String sourceFileLocation) Sets the value ofCfnWorkflow.CopyStepDetailsProperty.getSourceFileLocation()- Parameters:
sourceFileLocation- Specifies which file to use as input to the workflow step: either the output from the previous step, or the originally uploaded file for the workflow.- To use the previous file as the input, enter
${previous.file}. In this case, this workflow step uses the output file from the previous workflow step as input. This is the default value. - To use the originally uploaded file location as input for this step, enter
${original.file}.
- To use the previous file as the input, enter
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnWorkflow.CopyStepDetailsProperty>- Returns:
- a new instance of
CfnWorkflow.CopyStepDetailsProperty - Throws:
NullPointerException- if any required attribute was not provided
-