7#include <aws/timestream-query/TimestreamQuery_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/timestream-query/model/QueryStatus.h>
11#include <aws/timestream-query/model/QueryInsightsResponse.h>
12#include <aws/timestream-query/model/Row.h>
13#include <aws/timestream-query/model/ColumnInfo.h>
18template<
typename RESULT_TYPE>
19class AmazonWebServiceResult;
28namespace TimestreamQuery
45 template<
typename QueryIdT = Aws::String>
46 void SetQueryId(
QueryIdT&& value) { m_queryIdHasBeenSet =
true; m_queryId = std::forward<QueryIdT>(value); }
47 template<
typename QueryIdT = Aws::String>
57 template<
typename NextTokenT = Aws::String>
58 void SetNextToken(
NextTokenT&& value) { m_nextTokenHasBeenSet =
true; m_nextToken = std::forward<NextTokenT>(value); }
59 template<
typename NextTokenT = Aws::String>
68 template<
typename RowsT = Aws::Vector<Row>>
69 void SetRows(
RowsT&& value) { m_rowsHasBeenSet =
true; m_rows = std::forward<RowsT>(value); }
70 template<
typename RowsT = Aws::Vector<Row>>
72 template<
typename RowsT = Row>
73 QueryResult&
AddRows(
RowsT&& value) { m_rowsHasBeenSet =
true; m_rows.emplace_back(std::forward<RowsT>(value));
return *
this; }
81 template<
typename ColumnInfoT = Aws::Vector<ColumnInfo>>
83 template<
typename ColumnInfoT = Aws::Vector<ColumnInfo>>
85 template<
typename ColumnInfoT = ColumnInfo>
95 template<
typename QueryStatusT = QueryStatus>
97 template<
typename QueryStatusT = QueryStatus>
107 template<
typename QueryInsightsResponseT = QueryInsightsResponse>
109 template<
typename QueryInsightsResponseT = QueryInsightsResponse>
116 template<
typename RequestIdT = Aws::String>
118 template<
typename RequestIdT = Aws::String>
124 bool m_queryIdHasBeenSet =
false;
127 bool m_nextTokenHasBeenSet =
false;
130 bool m_rowsHasBeenSet =
false;
133 bool m_columnInfoHasBeenSet =
false;
136 bool m_queryStatusHasBeenSet =
false;
139 bool m_queryInsightsResponseHasBeenSet =
false;
142 bool m_requestIdHasBeenSet =
false;
const Aws::String & GetRequestId() const
const QueryStatus & GetQueryStatus() const
void SetRows(RowsT &&value)
QueryResult & AddRows(RowsT &&value)
QueryResult & WithQueryId(QueryIdT &&value)
AWS_TIMESTREAMQUERY_API QueryResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
QueryResult & WithQueryInsightsResponse(QueryInsightsResponseT &&value)
AWS_TIMESTREAMQUERY_API QueryResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetQueryInsightsResponse(QueryInsightsResponseT &&value)
QueryResult & WithColumnInfo(ColumnInfoT &&value)
const Aws::String & GetNextToken() const
void SetColumnInfo(ColumnInfoT &&value)
QueryResult & WithQueryStatus(QueryStatusT &&value)
QueryResult & WithNextToken(NextTokenT &&value)
void SetQueryId(QueryIdT &&value)
const Aws::String & GetQueryId() const
void SetQueryStatus(QueryStatusT &&value)
const QueryInsightsResponse & GetQueryInsightsResponse() const
QueryResult & AddColumnInfo(ColumnInfoT &&value)
AWS_TIMESTREAMQUERY_API QueryResult()=default
void SetRequestId(RequestIdT &&value)
void SetNextToken(NextTokenT &&value)
QueryResult & WithRows(RowsT &&value)
QueryResult & WithRequestId(RequestIdT &&value)
const Aws::Vector< Row > & GetRows() const
const Aws::Vector< ColumnInfo > & GetColumnInfo() const
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue