AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
QueryResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/timestream-query/TimestreamQuery_EXPORTS.h>
10#include <aws/timestream-query/model/ColumnInfo.h>
11#include <aws/timestream-query/model/QueryInsightsResponse.h>
12#include <aws/timestream-query/model/QueryStatus.h>
13#include <aws/timestream-query/model/Row.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace TimestreamQuery {
27namespace Model {
29 public:
30 AWS_TIMESTREAMQUERY_API QueryResult() = default;
33
35
38 inline const Aws::String& GetQueryId() const { return m_queryId; }
39 template <typename QueryIdT = Aws::String>
40 void SetQueryId(QueryIdT&& value) {
41 m_queryIdHasBeenSet = true;
42 m_queryId = std::forward<QueryIdT>(value);
43 }
44 template <typename QueryIdT = Aws::String>
46 SetQueryId(std::forward<QueryIdT>(value));
47 return *this;
48 }
50
52
56 inline const Aws::String& GetNextToken() const { return m_nextToken; }
57 template <typename NextTokenT = Aws::String>
58 void SetNextToken(NextTokenT&& value) {
59 m_nextTokenHasBeenSet = true;
60 m_nextToken = std::forward<NextTokenT>(value);
61 }
62 template <typename NextTokenT = Aws::String>
64 SetNextToken(std::forward<NextTokenT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::Vector<Row>& GetRows() const { return m_rows; }
74 template <typename RowsT = Aws::Vector<Row>>
75 void SetRows(RowsT&& value) {
76 m_rowsHasBeenSet = true;
77 m_rows = std::forward<RowsT>(value);
78 }
79 template <typename RowsT = Aws::Vector<Row>>
81 SetRows(std::forward<RowsT>(value));
82 return *this;
83 }
84 template <typename RowsT = Row>
86 m_rowsHasBeenSet = true;
87 m_rows.emplace_back(std::forward<RowsT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::Vector<ColumnInfo>& GetColumnInfo() const { return m_columnInfo; }
97 template <typename ColumnInfoT = Aws::Vector<ColumnInfo>>
98 void SetColumnInfo(ColumnInfoT&& value) {
99 m_columnInfoHasBeenSet = true;
100 m_columnInfo = std::forward<ColumnInfoT>(value);
101 }
102 template <typename ColumnInfoT = Aws::Vector<ColumnInfo>>
104 SetColumnInfo(std::forward<ColumnInfoT>(value));
105 return *this;
106 }
107 template <typename ColumnInfoT = ColumnInfo>
109 m_columnInfoHasBeenSet = true;
110 m_columnInfo.emplace_back(std::forward<ColumnInfoT>(value));
111 return *this;
112 }
114
116
120 inline const QueryStatus& GetQueryStatus() const { return m_queryStatus; }
121 template <typename QueryStatusT = QueryStatus>
123 m_queryStatusHasBeenSet = true;
124 m_queryStatus = std::forward<QueryStatusT>(value);
125 }
126 template <typename QueryStatusT = QueryStatus>
128 SetQueryStatus(std::forward<QueryStatusT>(value));
129 return *this;
130 }
132
134
138 inline const QueryInsightsResponse& GetQueryInsightsResponse() const { return m_queryInsightsResponse; }
139 template <typename QueryInsightsResponseT = QueryInsightsResponse>
141 m_queryInsightsResponseHasBeenSet = true;
142 m_queryInsightsResponse = std::forward<QueryInsightsResponseT>(value);
143 }
144 template <typename QueryInsightsResponseT = QueryInsightsResponse>
146 SetQueryInsightsResponse(std::forward<QueryInsightsResponseT>(value));
147 return *this;
148 }
150
152
153 inline const Aws::String& GetRequestId() const { return m_requestId; }
154 template <typename RequestIdT = Aws::String>
155 void SetRequestId(RequestIdT&& value) {
156 m_requestIdHasBeenSet = true;
157 m_requestId = std::forward<RequestIdT>(value);
158 }
159 template <typename RequestIdT = Aws::String>
161 SetRequestId(std::forward<RequestIdT>(value));
162 return *this;
163 }
165 private:
166 Aws::String m_queryId;
167
168 Aws::String m_nextToken;
169
170 Aws::Vector<Row> m_rows;
171
172 Aws::Vector<ColumnInfo> m_columnInfo;
173
174 QueryStatus m_queryStatus;
175
176 QueryInsightsResponse m_queryInsightsResponse;
177
178 Aws::String m_requestId;
179 bool m_queryIdHasBeenSet = false;
180 bool m_nextTokenHasBeenSet = false;
181 bool m_rowsHasBeenSet = false;
182 bool m_columnInfoHasBeenSet = false;
183 bool m_queryStatusHasBeenSet = false;
184 bool m_queryInsightsResponseHasBeenSet = false;
185 bool m_requestIdHasBeenSet = false;
186};
187
188} // namespace Model
189} // namespace TimestreamQuery
190} // namespace Aws
const Aws::String & GetRequestId() const
const QueryStatus & GetQueryStatus() const
QueryResult & AddRows(RowsT &&value)
Definition QueryResult.h:85
QueryResult & WithQueryId(QueryIdT &&value)
Definition QueryResult.h:45
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
Definition QueryResult.h:56
void SetColumnInfo(ColumnInfoT &&value)
Definition QueryResult.h:98
QueryResult & WithQueryStatus(QueryStatusT &&value)
QueryResult & WithNextToken(NextTokenT &&value)
Definition QueryResult.h:63
const Aws::String & GetQueryId() const
Definition QueryResult.h:38
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)
Definition QueryResult.h:58
QueryResult & WithRows(RowsT &&value)
Definition QueryResult.h:80
QueryResult & WithRequestId(RequestIdT &&value)
const Aws::Vector< Row > & GetRows() const
Definition QueryResult.h:73
const Aws::Vector< ColumnInfo > & GetColumnInfo() const
Definition QueryResult.h:96
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