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

Specifies a transform that combines the rows from two or more datasets into a * single result.

See Also:

AWS API * Reference

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

The name of the transform node.

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

The name of the transform node.

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

The node ID inputs to the transform.

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

The node ID inputs to the transform.

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

The node ID inputs to the transform.

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

The node ID inputs to the transform.

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

The node ID inputs to the transform.

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

The node ID inputs to the transform.

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

The node ID inputs to the transform.

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

The node ID inputs to the transform.

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

The node ID inputs to the transform.

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

Indicates the type of Union transform.

Specify ALL to * join all rows from data sources to the resulting DynamicFrame. The resulting * union does not remove duplicate rows.

Specify DISTINCT to * remove duplicate rows in the resulting DynamicFrame.

*/ inline const UnionType& GetUnionType() const{ return m_unionType; } /** *

Indicates the type of Union transform.

Specify ALL to * join all rows from data sources to the resulting DynamicFrame. The resulting * union does not remove duplicate rows.

Specify DISTINCT to * remove duplicate rows in the resulting DynamicFrame.

*/ inline bool UnionTypeHasBeenSet() const { return m_unionTypeHasBeenSet; } /** *

Indicates the type of Union transform.

Specify ALL to * join all rows from data sources to the resulting DynamicFrame. The resulting * union does not remove duplicate rows.

Specify DISTINCT to * remove duplicate rows in the resulting DynamicFrame.

*/ inline void SetUnionType(const UnionType& value) { m_unionTypeHasBeenSet = true; m_unionType = value; } /** *

Indicates the type of Union transform.

Specify ALL to * join all rows from data sources to the resulting DynamicFrame. The resulting * union does not remove duplicate rows.

Specify DISTINCT to * remove duplicate rows in the resulting DynamicFrame.

*/ inline void SetUnionType(UnionType&& value) { m_unionTypeHasBeenSet = true; m_unionType = std::move(value); } /** *

Indicates the type of Union transform.

Specify ALL to * join all rows from data sources to the resulting DynamicFrame. The resulting * union does not remove duplicate rows.

Specify DISTINCT to * remove duplicate rows in the resulting DynamicFrame.

*/ inline Union& WithUnionType(const UnionType& value) { SetUnionType(value); return *this;} /** *

Indicates the type of Union transform.

Specify ALL to * join all rows from data sources to the resulting DynamicFrame. The resulting * union does not remove duplicate rows.

Specify DISTINCT to * remove duplicate rows in the resulting DynamicFrame.

*/ inline Union& WithUnionType(UnionType&& value) { SetUnionType(std::move(value)); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::Vector m_inputs; bool m_inputsHasBeenSet = false; UnionType m_unionType; bool m_unionTypeHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws