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

Represents a transformation and associated parameters that are used to apply * a change to a DataBrew dataset. For more information, see Recipe * actions reference.

See Also:

AWS * API Reference

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

The name of a valid DataBrew transformation to be performed on the data.

*/ inline const Aws::String& GetOperation() const{ return m_operation; } /** *

The name of a valid DataBrew transformation to be performed on the data.

*/ inline bool OperationHasBeenSet() const { return m_operationHasBeenSet; } /** *

The name of a valid DataBrew transformation to be performed on the data.

*/ inline void SetOperation(const Aws::String& value) { m_operationHasBeenSet = true; m_operation = value; } /** *

The name of a valid DataBrew transformation to be performed on the data.

*/ inline void SetOperation(Aws::String&& value) { m_operationHasBeenSet = true; m_operation = std::move(value); } /** *

The name of a valid DataBrew transformation to be performed on the data.

*/ inline void SetOperation(const char* value) { m_operationHasBeenSet = true; m_operation.assign(value); } /** *

The name of a valid DataBrew transformation to be performed on the data.

*/ inline RecipeAction& WithOperation(const Aws::String& value) { SetOperation(value); return *this;} /** *

The name of a valid DataBrew transformation to be performed on the data.

*/ inline RecipeAction& WithOperation(Aws::String&& value) { SetOperation(std::move(value)); return *this;} /** *

The name of a valid DataBrew transformation to be performed on the data.

*/ inline RecipeAction& WithOperation(const char* value) { SetOperation(value); return *this;} /** *

Contextual parameters for the transformation.

*/ inline const Aws::Map& GetParameters() const{ return m_parameters; } /** *

Contextual parameters for the transformation.

*/ inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; } /** *

Contextual parameters for the transformation.

*/ inline void SetParameters(const Aws::Map& value) { m_parametersHasBeenSet = true; m_parameters = value; } /** *

Contextual parameters for the transformation.

*/ inline void SetParameters(Aws::Map&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); } /** *

Contextual parameters for the transformation.

*/ inline RecipeAction& WithParameters(const Aws::Map& value) { SetParameters(value); return *this;} /** *

Contextual parameters for the transformation.

*/ inline RecipeAction& WithParameters(Aws::Map&& value) { SetParameters(std::move(value)); return *this;} /** *

Contextual parameters for the transformation.

*/ inline RecipeAction& AddParameters(const Aws::String& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; } /** *

Contextual parameters for the transformation.

*/ inline RecipeAction& AddParameters(Aws::String&& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; } /** *

Contextual parameters for the transformation.

*/ inline RecipeAction& AddParameters(const Aws::String& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; } /** *

Contextual parameters for the transformation.

*/ inline RecipeAction& AddParameters(Aws::String&& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), std::move(value)); return *this; } /** *

Contextual parameters for the transformation.

*/ inline RecipeAction& AddParameters(const char* key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; } /** *

Contextual parameters for the transformation.

*/ inline RecipeAction& AddParameters(Aws::String&& key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; } /** *

Contextual parameters for the transformation.

*/ inline RecipeAction& AddParameters(const char* key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; } private: Aws::String m_operation; bool m_operationHasBeenSet = false; Aws::Map m_parameters; bool m_parametersHasBeenSet = false; }; } // namespace Model } // namespace GlueDataBrew } // namespace Aws