/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace GlueDataBrew { namespace Model { /** *

Represents a single step from a DataBrew recipe to be * performed.

See Also:

AWS * API Reference

*/ class RecipeStep { public: AWS_GLUEDATABREW_API RecipeStep(); AWS_GLUEDATABREW_API RecipeStep(Aws::Utils::Json::JsonView jsonValue); AWS_GLUEDATABREW_API RecipeStep& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_GLUEDATABREW_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The particular action to be performed in the recipe step.

*/ inline const RecipeAction& GetAction() const{ return m_action; } /** *

The particular action to be performed in the recipe step.

*/ inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; } /** *

The particular action to be performed in the recipe step.

*/ inline void SetAction(const RecipeAction& value) { m_actionHasBeenSet = true; m_action = value; } /** *

The particular action to be performed in the recipe step.

*/ inline void SetAction(RecipeAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); } /** *

The particular action to be performed in the recipe step.

*/ inline RecipeStep& WithAction(const RecipeAction& value) { SetAction(value); return *this;} /** *

The particular action to be performed in the recipe step.

*/ inline RecipeStep& WithAction(RecipeAction&& value) { SetAction(std::move(value)); 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.

*/ inline const Aws::Vector& GetConditionExpressions() const{ return m_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.

*/ inline bool ConditionExpressionsHasBeenSet() const { return m_conditionExpressionsHasBeenSet; } /** *

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.

*/ inline void SetConditionExpressions(const Aws::Vector& value) { m_conditionExpressionsHasBeenSet = true; m_conditionExpressions = value; } /** *

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.

*/ inline void SetConditionExpressions(Aws::Vector&& value) { m_conditionExpressionsHasBeenSet = true; m_conditionExpressions = std::move(value); } /** *

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.

*/ inline RecipeStep& WithConditionExpressions(const Aws::Vector& value) { SetConditionExpressions(value); 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.

*/ inline RecipeStep& WithConditionExpressions(Aws::Vector&& value) { SetConditionExpressions(std::move(value)); 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.

*/ inline RecipeStep& AddConditionExpressions(const ConditionExpression& value) { m_conditionExpressionsHasBeenSet = true; m_conditionExpressions.push_back(value); 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.

*/ inline RecipeStep& AddConditionExpressions(ConditionExpression&& value) { m_conditionExpressionsHasBeenSet = true; m_conditionExpressions.push_back(std::move(value)); return *this; } private: RecipeAction m_action; bool m_actionHasBeenSet = false; Aws::Vector m_conditionExpressions; bool m_conditionExpressionsHasBeenSet = false; }; } // namespace Model } // namespace GlueDataBrew } // namespace Aws