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

Details of the column that is returned by the query.

See * Also:

AWS * API Reference

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

Name of the column.

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

Name of the column.

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

Name of the column.

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

Name of the column.

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

Name of the column.

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

Name of the column.

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

Name of the column.

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

Name of the column.

*/ inline SelectColumn& WithName(const char* value) { SetName(value); return *this;} inline const Type& GetType() const{ return m_type; } inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } inline void SetType(const Type& value) { m_typeHasBeenSet = true; m_type = value; } inline void SetType(Type&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } inline SelectColumn& WithType(const Type& value) { SetType(value); return *this;} inline SelectColumn& WithType(Type&& value) { SetType(std::move(value)); return *this;} /** *

Database that has this column.

*/ inline const Aws::String& GetDatabaseName() const{ return m_databaseName; } /** *

Database that has this column.

*/ inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; } /** *

Database that has this column.

*/ inline void SetDatabaseName(const Aws::String& value) { m_databaseNameHasBeenSet = true; m_databaseName = value; } /** *

Database that has this column.

*/ inline void SetDatabaseName(Aws::String&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::move(value); } /** *

Database that has this column.

*/ inline void SetDatabaseName(const char* value) { m_databaseNameHasBeenSet = true; m_databaseName.assign(value); } /** *

Database that has this column.

*/ inline SelectColumn& WithDatabaseName(const Aws::String& value) { SetDatabaseName(value); return *this;} /** *

Database that has this column.

*/ inline SelectColumn& WithDatabaseName(Aws::String&& value) { SetDatabaseName(std::move(value)); return *this;} /** *

Database that has this column.

*/ inline SelectColumn& WithDatabaseName(const char* value) { SetDatabaseName(value); return *this;} /** *

Table within the database that has this column.

*/ inline const Aws::String& GetTableName() const{ return m_tableName; } /** *

Table within the database that has this column.

*/ inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; } /** *

Table within the database that has this column.

*/ inline void SetTableName(const Aws::String& value) { m_tableNameHasBeenSet = true; m_tableName = value; } /** *

Table within the database that has this column.

*/ inline void SetTableName(Aws::String&& value) { m_tableNameHasBeenSet = true; m_tableName = std::move(value); } /** *

Table within the database that has this column.

*/ inline void SetTableName(const char* value) { m_tableNameHasBeenSet = true; m_tableName.assign(value); } /** *

Table within the database that has this column.

*/ inline SelectColumn& WithTableName(const Aws::String& value) { SetTableName(value); return *this;} /** *

Table within the database that has this column.

*/ inline SelectColumn& WithTableName(Aws::String&& value) { SetTableName(std::move(value)); return *this;} /** *

Table within the database that has this column.

*/ inline SelectColumn& WithTableName(const char* value) { SetTableName(value); return *this;} /** *

True, if the column name was aliased by the query. False otherwise.

*/ inline bool GetAliased() const{ return m_aliased; } /** *

True, if the column name was aliased by the query. False otherwise.

*/ inline bool AliasedHasBeenSet() const { return m_aliasedHasBeenSet; } /** *

True, if the column name was aliased by the query. False otherwise.

*/ inline void SetAliased(bool value) { m_aliasedHasBeenSet = true; m_aliased = value; } /** *

True, if the column name was aliased by the query. False otherwise.

*/ inline SelectColumn& WithAliased(bool value) { SetAliased(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Type m_type; bool m_typeHasBeenSet = false; Aws::String m_databaseName; bool m_databaseNameHasBeenSet = false; Aws::String m_tableName; bool m_tableNameHasBeenSet = false; bool m_aliased; bool m_aliasedHasBeenSet = false; }; } // namespace Model } // namespace TimestreamQuery } // namespace Aws