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

Represents an individual condition that evaluates to true or false.

*

Conditions are used with recipe actions. The action is only performed for * column values where the condition evaluates to true.

If a recipe requires * more than one condition, then the recipe must specify multiple * ConditionExpression elements. Each condition is applied to the rows * in a dataset first, before the recipe action is performed.

See * Also:

AWS * API Reference

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

A specific condition to apply to a recipe action. For more information, see * Recipe * structure in the Glue DataBrew Developer Guide.

*/ inline const Aws::String& GetCondition() const{ return m_condition; } /** *

A specific condition to apply to a recipe action. For more information, see * Recipe * structure in the Glue DataBrew Developer Guide.

*/ inline bool ConditionHasBeenSet() const { return m_conditionHasBeenSet; } /** *

A specific condition to apply to a recipe action. For more information, see * Recipe * structure in the Glue DataBrew Developer Guide.

*/ inline void SetCondition(const Aws::String& value) { m_conditionHasBeenSet = true; m_condition = value; } /** *

A specific condition to apply to a recipe action. For more information, see * Recipe * structure in the Glue DataBrew Developer Guide.

*/ inline void SetCondition(Aws::String&& value) { m_conditionHasBeenSet = true; m_condition = std::move(value); } /** *

A specific condition to apply to a recipe action. For more information, see * Recipe * structure in the Glue DataBrew Developer Guide.

*/ inline void SetCondition(const char* value) { m_conditionHasBeenSet = true; m_condition.assign(value); } /** *

A specific condition to apply to a recipe action. For more information, see * Recipe * structure in the Glue DataBrew Developer Guide.

*/ inline ConditionExpression& WithCondition(const Aws::String& value) { SetCondition(value); return *this;} /** *

A specific condition to apply to a recipe action. For more information, see * Recipe * structure in the Glue DataBrew Developer Guide.

*/ inline ConditionExpression& WithCondition(Aws::String&& value) { SetCondition(std::move(value)); return *this;} /** *

A specific condition to apply to a recipe action. For more information, see * Recipe * structure in the Glue DataBrew Developer Guide.

*/ inline ConditionExpression& WithCondition(const char* value) { SetCondition(value); return *this;} /** *

A value that the condition must evaluate to for the condition to succeed.

*/ inline const Aws::String& GetValue() const{ return m_value; } /** *

A value that the condition must evaluate to for the condition to succeed.

*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *

A value that the condition must evaluate to for the condition to succeed.

*/ inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; } /** *

A value that the condition must evaluate to for the condition to succeed.

*/ inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } /** *

A value that the condition must evaluate to for the condition to succeed.

*/ inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); } /** *

A value that the condition must evaluate to for the condition to succeed.

*/ inline ConditionExpression& WithValue(const Aws::String& value) { SetValue(value); return *this;} /** *

A value that the condition must evaluate to for the condition to succeed.

*/ inline ConditionExpression& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;} /** *

A value that the condition must evaluate to for the condition to succeed.

*/ inline ConditionExpression& WithValue(const char* value) { SetValue(value); return *this;} /** *

A column to apply this condition to.

*/ inline const Aws::String& GetTargetColumn() const{ return m_targetColumn; } /** *

A column to apply this condition to.

*/ inline bool TargetColumnHasBeenSet() const { return m_targetColumnHasBeenSet; } /** *

A column to apply this condition to.

*/ inline void SetTargetColumn(const Aws::String& value) { m_targetColumnHasBeenSet = true; m_targetColumn = value; } /** *

A column to apply this condition to.

*/ inline void SetTargetColumn(Aws::String&& value) { m_targetColumnHasBeenSet = true; m_targetColumn = std::move(value); } /** *

A column to apply this condition to.

*/ inline void SetTargetColumn(const char* value) { m_targetColumnHasBeenSet = true; m_targetColumn.assign(value); } /** *

A column to apply this condition to.

*/ inline ConditionExpression& WithTargetColumn(const Aws::String& value) { SetTargetColumn(value); return *this;} /** *

A column to apply this condition to.

*/ inline ConditionExpression& WithTargetColumn(Aws::String&& value) { SetTargetColumn(std::move(value)); return *this;} /** *

A column to apply this condition to.

*/ inline ConditionExpression& WithTargetColumn(const char* value) { SetTargetColumn(value); return *this;} private: Aws::String m_condition; bool m_conditionHasBeenSet = false; Aws::String m_value; bool m_valueHasBeenSet = false; Aws::String m_targetColumn; bool m_targetColumnHasBeenSet = false; }; } // namespace Model } // namespace GlueDataBrew } // namespace Aws