/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace TimestreamQuery { namespace Model { class QueryResult { public: AWS_TIMESTREAMQUERY_API QueryResult(); AWS_TIMESTREAMQUERY_API QueryResult(const Aws::AmazonWebServiceResult& result); AWS_TIMESTREAMQUERY_API QueryResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

A unique ID for the given query.

*/ inline const Aws::String& GetQueryId() const{ return m_queryId; } /** *

A unique ID for the given query.

*/ inline void SetQueryId(const Aws::String& value) { m_queryId = value; } /** *

A unique ID for the given query.

*/ inline void SetQueryId(Aws::String&& value) { m_queryId = std::move(value); } /** *

A unique ID for the given query.

*/ inline void SetQueryId(const char* value) { m_queryId.assign(value); } /** *

A unique ID for the given query.

*/ inline QueryResult& WithQueryId(const Aws::String& value) { SetQueryId(value); return *this;} /** *

A unique ID for the given query.

*/ inline QueryResult& WithQueryId(Aws::String&& value) { SetQueryId(std::move(value)); return *this;} /** *

A unique ID for the given query.

*/ inline QueryResult& WithQueryId(const char* value) { SetQueryId(value); return *this;} /** *

A pagination token that can be used again on a Query call to * get the next set of results.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

A pagination token that can be used again on a Query call to * get the next set of results.

*/ inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } /** *

A pagination token that can be used again on a Query call to * get the next set of results.

*/ inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } /** *

A pagination token that can be used again on a Query call to * get the next set of results.

*/ inline void SetNextToken(const char* value) { m_nextToken.assign(value); } /** *

A pagination token that can be used again on a Query call to * get the next set of results.

*/ inline QueryResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

A pagination token that can be used again on a Query call to * get the next set of results.

*/ inline QueryResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

A pagination token that can be used again on a Query call to * get the next set of results.

*/ inline QueryResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

The result set rows returned by the query.

*/ inline const Aws::Vector& GetRows() const{ return m_rows; } /** *

The result set rows returned by the query.

*/ inline void SetRows(const Aws::Vector& value) { m_rows = value; } /** *

The result set rows returned by the query.

*/ inline void SetRows(Aws::Vector&& value) { m_rows = std::move(value); } /** *

The result set rows returned by the query.

*/ inline QueryResult& WithRows(const Aws::Vector& value) { SetRows(value); return *this;} /** *

The result set rows returned by the query.

*/ inline QueryResult& WithRows(Aws::Vector&& value) { SetRows(std::move(value)); return *this;} /** *

The result set rows returned by the query.

*/ inline QueryResult& AddRows(const Row& value) { m_rows.push_back(value); return *this; } /** *

The result set rows returned by the query.

*/ inline QueryResult& AddRows(Row&& value) { m_rows.push_back(std::move(value)); return *this; } /** *

The column data types of the returned result set.

*/ inline const Aws::Vector& GetColumnInfo() const{ return m_columnInfo; } /** *

The column data types of the returned result set.

*/ inline void SetColumnInfo(const Aws::Vector& value) { m_columnInfo = value; } /** *

The column data types of the returned result set.

*/ inline void SetColumnInfo(Aws::Vector&& value) { m_columnInfo = std::move(value); } /** *

The column data types of the returned result set.

*/ inline QueryResult& WithColumnInfo(const Aws::Vector& value) { SetColumnInfo(value); return *this;} /** *

The column data types of the returned result set.

*/ inline QueryResult& WithColumnInfo(Aws::Vector&& value) { SetColumnInfo(std::move(value)); return *this;} /** *

The column data types of the returned result set.

*/ inline QueryResult& AddColumnInfo(const ColumnInfo& value) { m_columnInfo.push_back(value); return *this; } /** *

The column data types of the returned result set.

*/ inline QueryResult& AddColumnInfo(ColumnInfo&& value) { m_columnInfo.push_back(std::move(value)); return *this; } /** *

Information about the status of the query, including progress and bytes * scanned.

*/ inline const QueryStatus& GetQueryStatus() const{ return m_queryStatus; } /** *

Information about the status of the query, including progress and bytes * scanned.

*/ inline void SetQueryStatus(const QueryStatus& value) { m_queryStatus = value; } /** *

Information about the status of the query, including progress and bytes * scanned.

*/ inline void SetQueryStatus(QueryStatus&& value) { m_queryStatus = std::move(value); } /** *

Information about the status of the query, including progress and bytes * scanned.

*/ inline QueryResult& WithQueryStatus(const QueryStatus& value) { SetQueryStatus(value); return *this;} /** *

Information about the status of the query, including progress and bytes * scanned.

*/ inline QueryResult& WithQueryStatus(QueryStatus&& value) { SetQueryStatus(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline QueryResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline QueryResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline QueryResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_queryId; Aws::String m_nextToken; Aws::Vector m_rows; Aws::Vector m_columnInfo; QueryStatus m_queryStatus; Aws::String m_requestId; }; } // namespace Model } // namespace TimestreamQuery } // namespace Aws