Interface CreateWorkflowRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateWorkflowRequest.Builder,,CreateWorkflowRequest> SdkBuilder<CreateWorkflowRequest.Builder,,CreateWorkflowRequest> SdkPojo,SdkRequest.Builder,TransferRequest.Builder
- Enclosing class:
CreateWorkflowRequest
-
Method Summary
Modifier and TypeMethodDescriptiondescription(String description) A textual description for the workflow.onExceptionSteps(Collection<WorkflowStep> onExceptionSteps) Specifies the steps (actions) to take if errors are encountered during execution of the workflow.onExceptionSteps(Consumer<WorkflowStep.Builder>... onExceptionSteps) Specifies the steps (actions) to take if errors are encountered during execution of the workflow.onExceptionSteps(WorkflowStep... onExceptionSteps) Specifies the steps (actions) to take if errors are encountered during execution of the workflow.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.steps(Collection<WorkflowStep> steps) Specifies the details for the steps that are in the specified workflow.steps(Consumer<WorkflowStep.Builder>... steps) Specifies the details for the steps that are in the specified workflow.steps(WorkflowStep... steps) Specifies the details for the steps that are in the specified workflow.tags(Collection<Tag> tags) Key-value pairs that can be used to group and search for workflows.tags(Consumer<Tag.Builder>... tags) Key-value pairs that can be used to group and search for workflows.Key-value pairs that can be used to group and search for workflows.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.services.transfer.model.TransferRequest.Builder
build
-
Method Details
-
description
A textual description for the workflow.
- Parameters:
description- A textual description for the workflow.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
steps
Specifies the details for the steps that are in the specified workflow.
The
TYPEspecifies which of the following actions is being taken for this step.-
COPY- Copy the file to another location. -
CUSTOM- Perform a custom step with an Lambda function target. -
DECRYPT- Decrypt a file that was encrypted before it was uploaded. -
DELETE- Delete the file. -
TAG- Add a tag to the file.
Currently, copying and tagging are supported only on S3.
For file location, you specify either the Amazon S3 bucket and key, or the Amazon EFS file system ID and path.
- Parameters:
steps- Specifies the details for the steps that are in the specified workflow.The
TYPEspecifies which of the following actions is being taken for this step.-
COPY- Copy the file to another location. -
CUSTOM- Perform a custom step with an Lambda function target. -
DECRYPT- Decrypt a file that was encrypted before it was uploaded. -
DELETE- Delete the file. -
TAG- Add a tag to the file.
Currently, copying and tagging are supported only on S3.
For file location, you specify either the Amazon S3 bucket and key, or the Amazon EFS file system ID and path.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
steps
Specifies the details for the steps that are in the specified workflow.
The
TYPEspecifies which of the following actions is being taken for this step.-
COPY- Copy the file to another location. -
CUSTOM- Perform a custom step with an Lambda function target. -
DECRYPT- Decrypt a file that was encrypted before it was uploaded. -
DELETE- Delete the file. -
TAG- Add a tag to the file.
Currently, copying and tagging are supported only on S3.
For file location, you specify either the Amazon S3 bucket and key, or the Amazon EFS file system ID and path.
- Parameters:
steps- Specifies the details for the steps that are in the specified workflow.The
TYPEspecifies which of the following actions is being taken for this step.-
COPY- Copy the file to another location. -
CUSTOM- Perform a custom step with an Lambda function target. -
DECRYPT- Decrypt a file that was encrypted before it was uploaded. -
DELETE- Delete the file. -
TAG- Add a tag to the file.
Currently, copying and tagging are supported only on S3.
For file location, you specify either the Amazon S3 bucket and key, or the Amazon EFS file system ID and path.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
steps
Specifies the details for the steps that are in the specified workflow.
The
TYPEspecifies which of the following actions is being taken for this step.-
COPY- Copy the file to another location. -
CUSTOM- Perform a custom step with an Lambda function target. -
DECRYPT- Decrypt a file that was encrypted before it was uploaded. -
DELETE- Delete the file. -
TAG- Add a tag to the file.
Currently, copying and tagging are supported only on S3.
For file location, you specify either the Amazon S3 bucket and key, or the Amazon EFS file system ID and path.
This is a convenience method that creates an instance of theWorkflowStep.Builderavoiding the need to create one manually viaWorkflowStep.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosteps(List<WorkflowStep>).- Parameters:
steps- a consumer that will call methods onWorkflowStep.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
onExceptionSteps
Specifies the steps (actions) to take if errors are encountered during execution of the workflow.
For custom steps, the Lambda function needs to send
FAILUREto the call back API to kick off the exception steps. Additionally, if the Lambda does not sendSUCCESSbefore it times out, the exception steps are executed.- Parameters:
onExceptionSteps- Specifies the steps (actions) to take if errors are encountered during execution of the workflow.For custom steps, the Lambda function needs to send
FAILUREto the call back API to kick off the exception steps. Additionally, if the Lambda does not sendSUCCESSbefore it times out, the exception steps are executed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
onExceptionSteps
Specifies the steps (actions) to take if errors are encountered during execution of the workflow.
For custom steps, the Lambda function needs to send
FAILUREto the call back API to kick off the exception steps. Additionally, if the Lambda does not sendSUCCESSbefore it times out, the exception steps are executed.- Parameters:
onExceptionSteps- Specifies the steps (actions) to take if errors are encountered during execution of the workflow.For custom steps, the Lambda function needs to send
FAILUREto the call back API to kick off the exception steps. Additionally, if the Lambda does not sendSUCCESSbefore it times out, the exception steps are executed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
onExceptionSteps
Specifies the steps (actions) to take if errors are encountered during execution of the workflow.
This is a convenience method that creates an instance of theFor custom steps, the Lambda function needs to send
FAILUREto the call back API to kick off the exception steps. Additionally, if the Lambda does not sendSUCCESSbefore it times out, the exception steps are executed.WorkflowStep.Builderavoiding the need to create one manually viaWorkflowStep.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toonExceptionSteps(List<WorkflowStep>).- Parameters:
onExceptionSteps- a consumer that will call methods onWorkflowStep.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tags
Key-value pairs that can be used to group and search for workflows. Tags are metadata attached to workflows for any purpose.
- Parameters:
tags- Key-value pairs that can be used to group and search for workflows. Tags are metadata attached to workflows for any purpose.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Key-value pairs that can be used to group and search for workflows. Tags are metadata attached to workflows for any purpose.
- Parameters:
tags- Key-value pairs that can be used to group and search for workflows. Tags are metadata attached to workflows for any purpose.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Key-value pairs that can be used to group and search for workflows. Tags are metadata attached to workflows for any purpose.
This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totags(List<Tag>).- Parameters:
tags- a consumer that will call methods onTag.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreateWorkflowRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateWorkflowRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-