/* * 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.gluedatabrew.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Represents a single step from a DataBrew recipe to be performed. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class RecipeStep implements Serializable, Cloneable, StructuredPojo { /** ** The particular action to be performed in the recipe step. *
*/ private RecipeAction action; /** ** One or more conditions that must be met for the recipe step to succeed. *
** All of the conditions in the array must be met. In other words, all of the conditions must be combined using a * logical AND operation. *
** The particular action to be performed in the recipe step. *
* * @param action * The particular action to be performed in the recipe step. */ public void setAction(RecipeAction action) { this.action = action; } /** ** The particular action to be performed in the recipe step. *
* * @return The particular action to be performed in the recipe step. */ public RecipeAction getAction() { return this.action; } /** ** The particular action to be performed in the recipe step. *
* * @param action * The particular action to be performed in the recipe step. * @return Returns a reference to this object so that method calls can be chained together. */ public RecipeStep withAction(RecipeAction action) { setAction(action); return this; } /** ** One or more conditions that must be met for the recipe step to succeed. *
** All of the conditions in the array must be met. In other words, all of the conditions must be combined using a * logical AND operation. *
** All of the conditions in the array must be met. In other words, all of the conditions must be combined * using a logical AND operation. *
*/ public java.util.List* One or more conditions that must be met for the recipe step to succeed. *
** All of the conditions in the array must be met. In other words, all of the conditions must be combined using a * logical AND operation. *
** All of the conditions in the array must be met. In other words, all of the conditions must be combined * using a logical AND operation. *
*/ public void setConditionExpressions(java.util.Collection* One or more conditions that must be met for the recipe step to succeed. *
** All of the conditions in the array must be met. In other words, all of the conditions must be combined using a * logical AND operation. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setConditionExpressions(java.util.Collection)} or {@link #withConditionExpressions(java.util.Collection)} * if you want to override the existing values. *
* * @param conditionExpressions * One or more conditions that must be met for the recipe step to succeed.* All of the conditions in the array must be met. In other words, all of the conditions must be combined * using a logical AND operation. *
* @return Returns a reference to this object so that method calls can be chained together. */ public RecipeStep withConditionExpressions(ConditionExpression... conditionExpressions) { if (this.conditionExpressions == null) { setConditionExpressions(new java.util.ArrayList* One or more conditions that must be met for the recipe step to succeed. *
** All of the conditions in the array must be met. In other words, all of the conditions must be combined using a * logical AND operation. *
** All of the conditions in the array must be met. In other words, all of the conditions must be combined * using a logical AND operation. *
* @return Returns a reference to this object so that method calls can be chained together. */ public RecipeStep withConditionExpressions(java.util.Collection