/* * 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.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Describes the properties of the specified workflow *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class DescribedWorkflow implements Serializable, Cloneable, StructuredPojo { /** ** Specifies the unique Amazon Resource Name (ARN) for the workflow. *
*/ private String arn; /** ** Specifies the text description for the workflow. *
*/ private String description; /** ** Specifies the details for the steps that are in the specified workflow. *
*/ private java.util.List* Specifies the steps (actions) to take if errors are encountered during execution of the workflow. *
*/ private java.util.List* A unique identifier for the workflow. *
*/ private String workflowId; /** ** 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* Specifies the unique Amazon Resource Name (ARN) for the workflow. *
* * @param arn * Specifies the unique Amazon Resource Name (ARN) for the workflow. */ public void setArn(String arn) { this.arn = arn; } /** ** Specifies the unique Amazon Resource Name (ARN) for the workflow. *
* * @return Specifies the unique Amazon Resource Name (ARN) for the workflow. */ public String getArn() { return this.arn; } /** ** Specifies the unique Amazon Resource Name (ARN) for the workflow. *
* * @param arn * Specifies the unique Amazon Resource Name (ARN) for the workflow. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribedWorkflow withArn(String arn) { setArn(arn); return this; } /** ** Specifies the text description for the workflow. *
* * @param description * Specifies the text description for the workflow. */ public void setDescription(String description) { this.description = description; } /** ** Specifies the text description for the workflow. *
* * @return Specifies the text description for the workflow. */ public String getDescription() { return this.description; } /** ** Specifies the text description for the workflow. *
* * @param description * Specifies the text description for the workflow. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribedWorkflow withDescription(String description) { setDescription(description); return this; } /** ** Specifies the details for the steps that are in the specified workflow. *
* * @return Specifies the details for the steps that are in the specified workflow. */ public java.util.List* Specifies the details for the steps that are in the specified workflow. *
* * @param steps * Specifies the details for the steps that are in the specified workflow. */ public void setSteps(java.util.Collection* Specifies the details for the steps that are in the specified workflow. *
** 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. *
* * @param steps * Specifies the details for the steps that are in the specified workflow. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribedWorkflow withSteps(WorkflowStep... steps) { if (this.steps == null) { setSteps(new java.util.ArrayList* Specifies the details for the steps that are in the specified workflow. *
* * @param steps * Specifies the details for the steps that are in the specified workflow. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribedWorkflow withSteps(java.util.Collection* Specifies the steps (actions) to take if errors are encountered during execution of the workflow. *
* * @return Specifies the steps (actions) to take if errors are encountered during execution of the workflow. */ public java.util.List* Specifies the steps (actions) to take if errors are encountered during execution of the workflow. *
* * @param onExceptionSteps * Specifies the steps (actions) to take if errors are encountered during execution of the workflow. */ public void setOnExceptionSteps(java.util.Collection* Specifies the steps (actions) to take if errors are encountered during execution of the workflow. *
** 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. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribedWorkflow withOnExceptionSteps(WorkflowStep... onExceptionSteps) { if (this.onExceptionSteps == null) { setOnExceptionSteps(new java.util.ArrayList* Specifies the steps (actions) to take if errors are encountered during execution of the workflow. *
* * @param onExceptionSteps * Specifies the steps (actions) to take if errors are encountered during execution of the workflow. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribedWorkflow withOnExceptionSteps(java.util.Collection* A unique identifier for the workflow. *
* * @param workflowId * A unique identifier for the workflow. */ public void setWorkflowId(String workflowId) { this.workflowId = workflowId; } /** ** A unique identifier for the workflow. *
* * @return A unique identifier for the workflow. */ public String getWorkflowId() { return this.workflowId; } /** ** A unique identifier for the workflow. *
* * @param workflowId * A unique identifier for the workflow. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribedWorkflow withWorkflowId(String workflowId) { setWorkflowId(workflowId); return this; } /** ** 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 DescribedWorkflow 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 DescribedWorkflow withTags(java.util.Collection