/** * 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 Glue { namespace Model { /** *

Specifies a transform that renames a single data property key.

See * Also:

AWS * API Reference

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

The name of the transform node.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the transform node.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the transform node.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the transform node.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the transform node.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the transform node.

*/ inline RenameField& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the transform node.

*/ inline RenameField& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the transform node.

*/ inline RenameField& WithName(const char* value) { SetName(value); return *this;} /** *

The data inputs identified by their node names.

*/ inline const Aws::Vector& GetInputs() const{ return m_inputs; } /** *

The data inputs identified by their node names.

*/ inline bool InputsHasBeenSet() const { return m_inputsHasBeenSet; } /** *

The data inputs identified by their node names.

*/ inline void SetInputs(const Aws::Vector& value) { m_inputsHasBeenSet = true; m_inputs = value; } /** *

The data inputs identified by their node names.

*/ inline void SetInputs(Aws::Vector&& value) { m_inputsHasBeenSet = true; m_inputs = std::move(value); } /** *

The data inputs identified by their node names.

*/ inline RenameField& WithInputs(const Aws::Vector& value) { SetInputs(value); return *this;} /** *

The data inputs identified by their node names.

*/ inline RenameField& WithInputs(Aws::Vector&& value) { SetInputs(std::move(value)); return *this;} /** *

The data inputs identified by their node names.

*/ inline RenameField& AddInputs(const Aws::String& value) { m_inputsHasBeenSet = true; m_inputs.push_back(value); return *this; } /** *

The data inputs identified by their node names.

*/ inline RenameField& AddInputs(Aws::String&& value) { m_inputsHasBeenSet = true; m_inputs.push_back(std::move(value)); return *this; } /** *

The data inputs identified by their node names.

*/ inline RenameField& AddInputs(const char* value) { m_inputsHasBeenSet = true; m_inputs.push_back(value); return *this; } /** *

A JSON path to a variable in the data structure for the source data.

*/ inline const Aws::Vector& GetSourcePath() const{ return m_sourcePath; } /** *

A JSON path to a variable in the data structure for the source data.

*/ inline bool SourcePathHasBeenSet() const { return m_sourcePathHasBeenSet; } /** *

A JSON path to a variable in the data structure for the source data.

*/ inline void SetSourcePath(const Aws::Vector& value) { m_sourcePathHasBeenSet = true; m_sourcePath = value; } /** *

A JSON path to a variable in the data structure for the source data.

*/ inline void SetSourcePath(Aws::Vector&& value) { m_sourcePathHasBeenSet = true; m_sourcePath = std::move(value); } /** *

A JSON path to a variable in the data structure for the source data.

*/ inline RenameField& WithSourcePath(const Aws::Vector& value) { SetSourcePath(value); return *this;} /** *

A JSON path to a variable in the data structure for the source data.

*/ inline RenameField& WithSourcePath(Aws::Vector&& value) { SetSourcePath(std::move(value)); return *this;} /** *

A JSON path to a variable in the data structure for the source data.

*/ inline RenameField& AddSourcePath(const Aws::String& value) { m_sourcePathHasBeenSet = true; m_sourcePath.push_back(value); return *this; } /** *

A JSON path to a variable in the data structure for the source data.

*/ inline RenameField& AddSourcePath(Aws::String&& value) { m_sourcePathHasBeenSet = true; m_sourcePath.push_back(std::move(value)); return *this; } /** *

A JSON path to a variable in the data structure for the source data.

*/ inline RenameField& AddSourcePath(const char* value) { m_sourcePathHasBeenSet = true; m_sourcePath.push_back(value); return *this; } /** *

A JSON path to a variable in the data structure for the target data.

*/ inline const Aws::Vector& GetTargetPath() const{ return m_targetPath; } /** *

A JSON path to a variable in the data structure for the target data.

*/ inline bool TargetPathHasBeenSet() const { return m_targetPathHasBeenSet; } /** *

A JSON path to a variable in the data structure for the target data.

*/ inline void SetTargetPath(const Aws::Vector& value) { m_targetPathHasBeenSet = true; m_targetPath = value; } /** *

A JSON path to a variable in the data structure for the target data.

*/ inline void SetTargetPath(Aws::Vector&& value) { m_targetPathHasBeenSet = true; m_targetPath = std::move(value); } /** *

A JSON path to a variable in the data structure for the target data.

*/ inline RenameField& WithTargetPath(const Aws::Vector& value) { SetTargetPath(value); return *this;} /** *

A JSON path to a variable in the data structure for the target data.

*/ inline RenameField& WithTargetPath(Aws::Vector&& value) { SetTargetPath(std::move(value)); return *this;} /** *

A JSON path to a variable in the data structure for the target data.

*/ inline RenameField& AddTargetPath(const Aws::String& value) { m_targetPathHasBeenSet = true; m_targetPath.push_back(value); return *this; } /** *

A JSON path to a variable in the data structure for the target data.

*/ inline RenameField& AddTargetPath(Aws::String&& value) { m_targetPathHasBeenSet = true; m_targetPath.push_back(std::move(value)); return *this; } /** *

A JSON path to a variable in the data structure for the target data.

*/ inline RenameField& AddTargetPath(const char* value) { m_targetPathHasBeenSet = true; m_targetPath.push_back(value); return *this; } private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::Vector m_inputs; bool m_inputsHasBeenSet = false; Aws::Vector m_sourcePath; bool m_sourcePathHasBeenSet = false; Aws::Vector m_targetPath; bool m_targetPathHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws