/** * 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 column to be joined.

See Also:

AWS API * Reference

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

The column to be joined.

*/ inline const Aws::String& GetFrom() const{ return m_from; } /** *

The column to be joined.

*/ inline bool FromHasBeenSet() const { return m_fromHasBeenSet; } /** *

The column to be joined.

*/ inline void SetFrom(const Aws::String& value) { m_fromHasBeenSet = true; m_from = value; } /** *

The column to be joined.

*/ inline void SetFrom(Aws::String&& value) { m_fromHasBeenSet = true; m_from = std::move(value); } /** *

The column to be joined.

*/ inline void SetFrom(const char* value) { m_fromHasBeenSet = true; m_from.assign(value); } /** *

The column to be joined.

*/ inline JoinColumn& WithFrom(const Aws::String& value) { SetFrom(value); return *this;} /** *

The column to be joined.

*/ inline JoinColumn& WithFrom(Aws::String&& value) { SetFrom(std::move(value)); return *this;} /** *

The column to be joined.

*/ inline JoinColumn& WithFrom(const char* value) { SetFrom(value); return *this;} /** *

The key of the column to be joined.

*/ inline const Aws::Vector>& GetKeys() const{ return m_keys; } /** *

The key of the column to be joined.

*/ inline bool KeysHasBeenSet() const { return m_keysHasBeenSet; } /** *

The key of the column to be joined.

*/ inline void SetKeys(const Aws::Vector>& value) { m_keysHasBeenSet = true; m_keys = value; } /** *

The key of the column to be joined.

*/ inline void SetKeys(Aws::Vector>&& value) { m_keysHasBeenSet = true; m_keys = std::move(value); } /** *

The key of the column to be joined.

*/ inline JoinColumn& WithKeys(const Aws::Vector>& value) { SetKeys(value); return *this;} /** *

The key of the column to be joined.

*/ inline JoinColumn& WithKeys(Aws::Vector>&& value) { SetKeys(std::move(value)); return *this;} /** *

The key of the column to be joined.

*/ inline JoinColumn& AddKeys(const Aws::Vector& value) { m_keysHasBeenSet = true; m_keys.push_back(value); return *this; } /** *

The key of the column to be joined.

*/ inline JoinColumn& AddKeys(Aws::Vector&& value) { m_keysHasBeenSet = true; m_keys.push_back(std::move(value)); return *this; } private: Aws::String m_from; bool m_fromHasBeenSet = false; Aws::Vector> m_keys; bool m_keysHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws