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

A physical table type built from the results of the custom SQL * query.

See Also:

AWS * API Reference

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

The Amazon Resource Name (ARN) of the data source.

*/ inline const Aws::String& GetDataSourceArn() const{ return m_dataSourceArn; } /** *

The Amazon Resource Name (ARN) of the data source.

*/ inline bool DataSourceArnHasBeenSet() const { return m_dataSourceArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the data source.

*/ inline void SetDataSourceArn(const Aws::String& value) { m_dataSourceArnHasBeenSet = true; m_dataSourceArn = value; } /** *

The Amazon Resource Name (ARN) of the data source.

*/ inline void SetDataSourceArn(Aws::String&& value) { m_dataSourceArnHasBeenSet = true; m_dataSourceArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the data source.

*/ inline void SetDataSourceArn(const char* value) { m_dataSourceArnHasBeenSet = true; m_dataSourceArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the data source.

*/ inline CustomSql& WithDataSourceArn(const Aws::String& value) { SetDataSourceArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the data source.

*/ inline CustomSql& WithDataSourceArn(Aws::String&& value) { SetDataSourceArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the data source.

*/ inline CustomSql& WithDataSourceArn(const char* value) { SetDataSourceArn(value); return *this;} /** *

A display name for the SQL query result.

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

A display name for the SQL query result.

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

A display name for the SQL query result.

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

A display name for the SQL query result.

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

A display name for the SQL query result.

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

A display name for the SQL query result.

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

A display name for the SQL query result.

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

A display name for the SQL query result.

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

The SQL query.

*/ inline const Aws::String& GetSqlQuery() const{ return m_sqlQuery; } /** *

The SQL query.

*/ inline bool SqlQueryHasBeenSet() const { return m_sqlQueryHasBeenSet; } /** *

The SQL query.

*/ inline void SetSqlQuery(const Aws::String& value) { m_sqlQueryHasBeenSet = true; m_sqlQuery = value; } /** *

The SQL query.

*/ inline void SetSqlQuery(Aws::String&& value) { m_sqlQueryHasBeenSet = true; m_sqlQuery = std::move(value); } /** *

The SQL query.

*/ inline void SetSqlQuery(const char* value) { m_sqlQueryHasBeenSet = true; m_sqlQuery.assign(value); } /** *

The SQL query.

*/ inline CustomSql& WithSqlQuery(const Aws::String& value) { SetSqlQuery(value); return *this;} /** *

The SQL query.

*/ inline CustomSql& WithSqlQuery(Aws::String&& value) { SetSqlQuery(std::move(value)); return *this;} /** *

The SQL query.

*/ inline CustomSql& WithSqlQuery(const char* value) { SetSqlQuery(value); return *this;} /** *

The column schema from the SQL query result set.

*/ inline const Aws::Vector& GetColumns() const{ return m_columns; } /** *

The column schema from the SQL query result set.

*/ inline bool ColumnsHasBeenSet() const { return m_columnsHasBeenSet; } /** *

The column schema from the SQL query result set.

*/ inline void SetColumns(const Aws::Vector& value) { m_columnsHasBeenSet = true; m_columns = value; } /** *

The column schema from the SQL query result set.

*/ inline void SetColumns(Aws::Vector&& value) { m_columnsHasBeenSet = true; m_columns = std::move(value); } /** *

The column schema from the SQL query result set.

*/ inline CustomSql& WithColumns(const Aws::Vector& value) { SetColumns(value); return *this;} /** *

The column schema from the SQL query result set.

*/ inline CustomSql& WithColumns(Aws::Vector&& value) { SetColumns(std::move(value)); return *this;} /** *

The column schema from the SQL query result set.

*/ inline CustomSql& AddColumns(const InputColumn& value) { m_columnsHasBeenSet = true; m_columns.push_back(value); return *this; } /** *

The column schema from the SQL query result set.

*/ inline CustomSql& AddColumns(InputColumn&& value) { m_columnsHasBeenSet = true; m_columns.push_back(std::move(value)); return *this; } private: Aws::String m_dataSourceArn; bool m_dataSourceArnHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_sqlQuery; bool m_sqlQueryHasBeenSet = false; Aws::Vector m_columns; bool m_columnsHasBeenSet = false; }; } // namespace Model } // namespace QuickSight } // namespace Aws