/** * 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 an Amazon Redshift source.

See Also:

AWS * API Reference

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

The name of the Amazon Redshift source.

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

The name of the Amazon Redshift source.

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

The name of the Amazon Redshift source.

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

The name of the Amazon Redshift source.

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

The name of the Amazon Redshift source.

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

The name of the Amazon Redshift source.

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

The name of the Amazon Redshift source.

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

The name of the Amazon Redshift source.

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

Specifies the data of the Amazon Reshift source node.

*/ inline const AmazonRedshiftNodeData& GetData() const{ return m_data; } /** *

Specifies the data of the Amazon Reshift source node.

*/ inline bool DataHasBeenSet() const { return m_dataHasBeenSet; } /** *

Specifies the data of the Amazon Reshift source node.

*/ inline void SetData(const AmazonRedshiftNodeData& value) { m_dataHasBeenSet = true; m_data = value; } /** *

Specifies the data of the Amazon Reshift source node.

*/ inline void SetData(AmazonRedshiftNodeData&& value) { m_dataHasBeenSet = true; m_data = std::move(value); } /** *

Specifies the data of the Amazon Reshift source node.

*/ inline AmazonRedshiftSource& WithData(const AmazonRedshiftNodeData& value) { SetData(value); return *this;} /** *

Specifies the data of the Amazon Reshift source node.

*/ inline AmazonRedshiftSource& WithData(AmazonRedshiftNodeData&& value) { SetData(std::move(value)); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; AmazonRedshiftNodeData m_data; bool m_dataHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws