/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.transfer.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CreateWorkflowRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* A textual description for the workflow. *
*/ private String description; /** ** Specifies the details for the steps that are in the specified workflow. *
*
* The TYPE
specifies 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. *
*/ private java.util.List* Specifies the steps (actions) to take if errors are encountered during execution of the workflow. *
*
* For custom steps, the Lambda function needs to send FAILURE
to the call back API to kick off the
* exception steps. Additionally, if the Lambda does not send SUCCESS
before it times out, the
* exception steps are executed.
*
* Key-value pairs that can be used to group and search for workflows. Tags are metadata attached to workflows for * any purpose. *
*/ private java.util.List* A textual description for the workflow. *
* * @param description * A textual description for the workflow. */ public void setDescription(String description) { this.description = description; } /** ** A textual description for the workflow. *
* * @return A textual description for the workflow. */ public String getDescription() { return this.description; } /** ** A textual description for the workflow. *
* * @param description * A textual description for the workflow. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateWorkflowRequest withDescription(String description) { setDescription(description); return this; } /** ** Specifies the details for the steps that are in the specified workflow. *
*
* The TYPE
specifies 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. *
* * @return Specifies the details for the steps that are in the specified workflow. *
* The TYPE
specifies 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.
*/
public java.util.List
* Specifies the details for the steps that are in the specified workflow.
*
* The
*
*
*
*
*
* 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.
* TYPE
specifies 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.
*
* The TYPE
specifies 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.
*/
public void setSteps(java.util.Collection
* Specifies the details for the steps that are in the specified workflow.
*
* The
*
*
*
*
*
* 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.
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setSteps(java.util.Collection)} or {@link #withSteps(java.util.Collection)} if you want to override the
* existing values.
* TYPE
specifies 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.
*
* The TYPE
specifies 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.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateWorkflowRequest withSteps(WorkflowStep... steps) {
if (this.steps == null) {
setSteps(new java.util.ArrayList
* Specifies the details for the steps that are in the specified workflow.
*
* The
*
*
*
*
*
* 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.
* TYPE
specifies 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.
*
* The TYPE
specifies 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.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateWorkflowRequest withSteps(java.util.Collection
* Specifies the steps (actions) to take if errors are encountered during execution of the workflow.
*
* For custom steps, the Lambda function needs to send FAILURE
to the call back API to kick off the
* exception steps. Additionally, if the Lambda does not send SUCCESS
before it times out, the
* exception steps are executed.
*
* For custom steps, the Lambda function needs to send FAILURE
to the call back API to kick off
* the exception steps. Additionally, if the Lambda does not send SUCCESS
before it times out,
* the exception steps are executed.
*
* Specifies the steps (actions) to take if errors are encountered during execution of the workflow. *
*
* For custom steps, the Lambda function needs to send FAILURE
to the call back API to kick off the
* exception steps. Additionally, if the Lambda does not send SUCCESS
before it times out, the
* exception steps are executed.
*
* For custom steps, the Lambda function needs to send FAILURE
to the call back API to kick off
* the exception steps. Additionally, if the Lambda does not send SUCCESS
before it times out,
* the exception steps are executed.
*
* Specifies the steps (actions) to take if errors are encountered during execution of the workflow. *
*
* For custom steps, the Lambda function needs to send FAILURE
to the call back API to kick off the
* exception steps. Additionally, if the Lambda does not send SUCCESS
before it times out, the
* exception steps are executed.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setOnExceptionSteps(java.util.Collection)} or {@link #withOnExceptionSteps(java.util.Collection)} if you * want to override the existing values. *
* * @param 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 FAILURE
to the call back API to kick off
* the exception steps. Additionally, if the Lambda does not send SUCCESS
before it times out,
* the exception steps are executed.
*
* Specifies the steps (actions) to take if errors are encountered during execution of the workflow. *
*
* For custom steps, the Lambda function needs to send FAILURE
to the call back API to kick off the
* exception steps. Additionally, if the Lambda does not send SUCCESS
before it times out, the
* exception steps are executed.
*
* For custom steps, the Lambda function needs to send FAILURE
to the call back API to kick off
* the exception steps. Additionally, if the Lambda does not send SUCCESS
before it times out,
* the exception steps are executed.
*
* Key-value pairs that can be used to group and search for workflows. Tags are metadata attached to workflows for * any purpose. *
* * @return Key-value pairs that can be used to group and search for workflows. Tags are metadata attached to * workflows for any purpose. */ public java.util.List* Key-value pairs that can be used to group and search for workflows. Tags are metadata attached to workflows for * any purpose. *
* * @param tags * Key-value pairs that can be used to group and search for workflows. Tags are metadata attached to * workflows for any purpose. */ public void setTags(java.util.Collection* Key-value pairs that can be used to group and search for workflows. Tags are metadata attached to workflows for * any purpose. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the * existing values. *
* * @param tags * Key-value pairs that can be used to group and search for workflows. Tags are metadata attached to * workflows for any purpose. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateWorkflowRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList* Key-value pairs that can be used to group and search for workflows. Tags are metadata attached to workflows for * any purpose. *
* * @param tags * Key-value pairs that can be used to group and search for workflows. Tags are metadata attached to * workflows for any purpose. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateWorkflowRequest withTags(java.util.Collection