/** * 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 merges a DynamicFrame with a staging * DynamicFrame based on the specified primary keys to identify * records. Duplicate records (records with the same primary keys) are not * de-duplicated.

See Also:

AWS API * Reference

*/ class Merge { public: AWS_GLUE_API Merge(); AWS_GLUE_API Merge(Aws::Utils::Json::JsonView jsonValue); AWS_GLUE_API Merge& 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 Merge& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the transform node.

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

The name of the transform node.

*/ inline Merge& 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 Merge& WithInputs(const Aws::Vector& value) { SetInputs(value); return *this;} /** *

The data inputs identified by their node names.

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

The data inputs identified by their node names.

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

The data inputs identified by their node names.

*/ inline Merge& 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 Merge& AddInputs(const char* value) { m_inputsHasBeenSet = true; m_inputs.push_back(value); return *this; } /** *

The source DynamicFrame that will be merged with a staging * DynamicFrame.

*/ inline const Aws::String& GetSource() const{ return m_source; } /** *

The source DynamicFrame that will be merged with a staging * DynamicFrame.

*/ inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; } /** *

The source DynamicFrame that will be merged with a staging * DynamicFrame.

*/ inline void SetSource(const Aws::String& value) { m_sourceHasBeenSet = true; m_source = value; } /** *

The source DynamicFrame that will be merged with a staging * DynamicFrame.

*/ inline void SetSource(Aws::String&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); } /** *

The source DynamicFrame that will be merged with a staging * DynamicFrame.

*/ inline void SetSource(const char* value) { m_sourceHasBeenSet = true; m_source.assign(value); } /** *

The source DynamicFrame that will be merged with a staging * DynamicFrame.

*/ inline Merge& WithSource(const Aws::String& value) { SetSource(value); return *this;} /** *

The source DynamicFrame that will be merged with a staging * DynamicFrame.

*/ inline Merge& WithSource(Aws::String&& value) { SetSource(std::move(value)); return *this;} /** *

The source DynamicFrame that will be merged with a staging * DynamicFrame.

*/ inline Merge& WithSource(const char* value) { SetSource(value); return *this;} /** *

The list of primary key fields to match records from the source and staging * dynamic frames.

*/ inline const Aws::Vector>& GetPrimaryKeys() const{ return m_primaryKeys; } /** *

The list of primary key fields to match records from the source and staging * dynamic frames.

*/ inline bool PrimaryKeysHasBeenSet() const { return m_primaryKeysHasBeenSet; } /** *

The list of primary key fields to match records from the source and staging * dynamic frames.

*/ inline void SetPrimaryKeys(const Aws::Vector>& value) { m_primaryKeysHasBeenSet = true; m_primaryKeys = value; } /** *

The list of primary key fields to match records from the source and staging * dynamic frames.

*/ inline void SetPrimaryKeys(Aws::Vector>&& value) { m_primaryKeysHasBeenSet = true; m_primaryKeys = std::move(value); } /** *

The list of primary key fields to match records from the source and staging * dynamic frames.

*/ inline Merge& WithPrimaryKeys(const Aws::Vector>& value) { SetPrimaryKeys(value); return *this;} /** *

The list of primary key fields to match records from the source and staging * dynamic frames.

*/ inline Merge& WithPrimaryKeys(Aws::Vector>&& value) { SetPrimaryKeys(std::move(value)); return *this;} /** *

The list of primary key fields to match records from the source and staging * dynamic frames.

*/ inline Merge& AddPrimaryKeys(const Aws::Vector& value) { m_primaryKeysHasBeenSet = true; m_primaryKeys.push_back(value); return *this; } /** *

The list of primary key fields to match records from the source and staging * dynamic frames.

*/ inline Merge& AddPrimaryKeys(Aws::Vector&& value) { m_primaryKeysHasBeenSet = true; m_primaryKeys.push_back(std::move(value)); return *this; } private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::Vector m_inputs; bool m_inputsHasBeenSet = false; Aws::String m_source; bool m_sourceHasBeenSet = false; Aws::Vector> m_primaryKeys; bool m_primaryKeysHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws