/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #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 Snowflake data source.

See Also:

AWS * API Reference

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

The name of the Snowflake data source.

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

The name of the Snowflake data source.

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

The name of the Snowflake data source.

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

The name of the Snowflake data source.

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

The name of the Snowflake data source.

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

The name of the Snowflake data source.

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

The name of the Snowflake data source.

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

The name of the Snowflake data source.

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

Configuration for the Snowflake data source.

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

Configuration for the Snowflake data source.

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

Configuration for the Snowflake data source.

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

Configuration for the Snowflake data source.

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

Configuration for the Snowflake data source.

*/ inline SnowflakeSource& WithData(const SnowflakeNodeData& value) { SetData(value); return *this;} /** *

Configuration for the Snowflake data source.

*/ inline SnowflakeSource& WithData(SnowflakeNodeData&& value) { SetData(std::move(value)); return *this;} /** *

Specifies user-defined schemas for your output data.

*/ inline const Aws::Vector& GetOutputSchemas() const{ return m_outputSchemas; } /** *

Specifies user-defined schemas for your output data.

*/ inline bool OutputSchemasHasBeenSet() const { return m_outputSchemasHasBeenSet; } /** *

Specifies user-defined schemas for your output data.

*/ inline void SetOutputSchemas(const Aws::Vector& value) { m_outputSchemasHasBeenSet = true; m_outputSchemas = value; } /** *

Specifies user-defined schemas for your output data.

*/ inline void SetOutputSchemas(Aws::Vector&& value) { m_outputSchemasHasBeenSet = true; m_outputSchemas = std::move(value); } /** *

Specifies user-defined schemas for your output data.

*/ inline SnowflakeSource& WithOutputSchemas(const Aws::Vector& value) { SetOutputSchemas(value); return *this;} /** *

Specifies user-defined schemas for your output data.

*/ inline SnowflakeSource& WithOutputSchemas(Aws::Vector&& value) { SetOutputSchemas(std::move(value)); return *this;} /** *

Specifies user-defined schemas for your output data.

*/ inline SnowflakeSource& AddOutputSchemas(const GlueSchema& value) { m_outputSchemasHasBeenSet = true; m_outputSchemas.push_back(value); return *this; } /** *

Specifies user-defined schemas for your output data.

*/ inline SnowflakeSource& AddOutputSchemas(GlueSchema&& value) { m_outputSchemasHasBeenSet = true; m_outputSchemas.push_back(std::move(value)); return *this; } private: Aws::String m_name; bool m_nameHasBeenSet = false; SnowflakeNodeData m_data; bool m_dataHasBeenSet = false; Aws::Vector m_outputSchemas; bool m_outputSchemasHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws