AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
QueryResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/timestream-query/TimestreamQuery_EXPORTS.h>
11#include <aws/timestream-query/model/ColumnInfo.h>
12#include <aws/timestream-query/model/QueryInsightsResponse.h>
13#include <aws/timestream-query/model/QueryStatus.h>
14#include <aws/timestream-query/model/Row.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace TimestreamQuery {
28namespace Model {
30 public:
31 AWS_TIMESTREAMQUERY_API QueryResult() = default;
34
36
39 inline const Aws::String& GetQueryId() const { return m_queryId; }
40 template <typename QueryIdT = Aws::String>
41 void SetQueryId(QueryIdT&& value) {
42 m_queryIdHasBeenSet = true;
43 m_queryId = std::forward<QueryIdT>(value);
44 }
45 template <typename QueryIdT = Aws::String>
47 SetQueryId(std::forward<QueryIdT>(value));
48 return *this;
49 }
51
53
57 inline const Aws::String& GetNextToken() const { return m_nextToken; }
58 template <typename NextTokenT = Aws::String>
59 void SetNextToken(NextTokenT&& value) {
60 m_nextTokenHasBeenSet = true;
61 m_nextToken = std::forward<NextTokenT>(value);
62 }
63 template <typename NextTokenT = Aws::String>
65 SetNextToken(std::forward<NextTokenT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::Vector<Row>& GetRows() const { return m_rows; }
75 template <typename RowsT = Aws::Vector<Row>>
76 void SetRows(RowsT&& value) {
77 m_rowsHasBeenSet = true;
78 m_rows = std::forward<RowsT>(value);
79 }
80 template <typename RowsT = Aws::Vector<Row>>
82 SetRows(std::forward<RowsT>(value));
83 return *this;
84 }
85 template <typename RowsT = Row>
87 m_rowsHasBeenSet = true;
88 m_rows.emplace_back(std::forward<RowsT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::Vector<ColumnInfo>& GetColumnInfo() const { return m_columnInfo; }
98 template <typename ColumnInfoT = Aws::Vector<ColumnInfo>>
99 void SetColumnInfo(ColumnInfoT&& value) {
100 m_columnInfoHasBeenSet = true;
101 m_columnInfo = std::forward<ColumnInfoT>(value);
102 }
103 template <typename ColumnInfoT = Aws::Vector<ColumnInfo>>
105 SetColumnInfo(std::forward<ColumnInfoT>(value));
106 return *this;
107 }
108 template <typename ColumnInfoT = ColumnInfo>
110 m_columnInfoHasBeenSet = true;
111 m_columnInfo.emplace_back(std::forward<ColumnInfoT>(value));
112 return *this;
113 }
115
117
121 inline const QueryStatus& GetQueryStatus() const { return m_queryStatus; }
122 template <typename QueryStatusT = QueryStatus>
124 m_queryStatusHasBeenSet = true;
125 m_queryStatus = std::forward<QueryStatusT>(value);
126 }
127 template <typename QueryStatusT = QueryStatus>
129 SetQueryStatus(std::forward<QueryStatusT>(value));
130 return *this;
131 }
133
135
139 inline const QueryInsightsResponse& GetQueryInsightsResponse() const { return m_queryInsightsResponse; }
140 template <typename QueryInsightsResponseT = QueryInsightsResponse>
142 m_queryInsightsResponseHasBeenSet = true;
143 m_queryInsightsResponse = std::forward<QueryInsightsResponseT>(value);
144 }
145 template <typename QueryInsightsResponseT = QueryInsightsResponse>
147 SetQueryInsightsResponse(std::forward<QueryInsightsResponseT>(value));
148 return *this;
149 }
151
153
154 inline const Aws::String& GetRequestId() const { return m_requestId; }
155 template <typename RequestIdT = Aws::String>
156 void SetRequestId(RequestIdT&& value) {
157 m_requestIdHasBeenSet = true;
158 m_requestId = std::forward<RequestIdT>(value);
159 }
160 template <typename RequestIdT = Aws::String>
162 SetRequestId(std::forward<RequestIdT>(value));
163 return *this;
164 }
166 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
167
168 private:
169 Aws::String m_queryId;
170
171 Aws::String m_nextToken;
172
173 Aws::Vector<Row> m_rows;
174
175 Aws::Vector<ColumnInfo> m_columnInfo;
176
177 QueryStatus m_queryStatus;
178
179 QueryInsightsResponse m_queryInsightsResponse;
180
181 Aws::String m_requestId;
182 Aws::Http::HttpResponseCode m_HttpResponseCode;
183 bool m_queryIdHasBeenSet = false;
184 bool m_nextTokenHasBeenSet = false;
185 bool m_rowsHasBeenSet = false;
186 bool m_columnInfoHasBeenSet = false;
187 bool m_queryStatusHasBeenSet = false;
188 bool m_queryInsightsResponseHasBeenSet = false;
189 bool m_requestIdHasBeenSet = false;
190};
191
192} // namespace Model
193} // namespace TimestreamQuery
194} // namespace Aws
const Aws::String & GetRequestId() const
const QueryStatus & GetQueryStatus() const
QueryResult & AddRows(RowsT &&value)
Definition QueryResult.h:86
QueryResult & WithQueryId(QueryIdT &&value)
Definition QueryResult.h:46
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:57
void SetColumnInfo(ColumnInfoT &&value)
Definition QueryResult.h:99
QueryResult & WithQueryStatus(QueryStatusT &&value)
QueryResult & WithNextToken(NextTokenT &&value)
Definition QueryResult.h:64
const Aws::String & GetQueryId() const
Definition QueryResult.h:39
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:59
QueryResult & WithRows(RowsT &&value)
Definition QueryResult.h:81
QueryResult & WithRequestId(RequestIdT &&value)
const Aws::Vector< Row > & GetRows() const
Definition QueryResult.h:74
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::Vector< ColumnInfo > & GetColumnInfo() const
Definition QueryResult.h:97
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