/* * 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; /** *
* Specifies the steps in the workflow, as well as the steps to execute in case of any errors during workflow execution. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ExecutionResults implements Serializable, Cloneable, StructuredPojo { /** ** 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* 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 ExecutionResults withSteps(ExecutionStepResult... 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 ExecutionResults 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 ExecutionResults withOnExceptionSteps(ExecutionStepResult... 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 ExecutionResults withOnExceptionSteps(java.util.Collection