AWS SDK for C++  1.9.106
AWS SDK for C++
QueryResult.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 template<typename RESULT_TYPE>
18 class AmazonWebServiceResult;
19 
20 namespace Utils
21 {
22 namespace Json
23 {
24  class JsonValue;
25 } // namespace Json
26 } // namespace Utils
27 namespace TimestreamQuery
28 {
29 namespace Model
30 {
32  {
33  public:
37 
38 
42  inline const Aws::String& GetQueryId() const{ return m_queryId; }
43 
47  inline void SetQueryId(const Aws::String& value) { m_queryId = value; }
48 
52  inline void SetQueryId(Aws::String&& value) { m_queryId = std::move(value); }
53 
57  inline void SetQueryId(const char* value) { m_queryId.assign(value); }
58 
62  inline QueryResult& WithQueryId(const Aws::String& value) { SetQueryId(value); return *this;}
63 
67  inline QueryResult& WithQueryId(Aws::String&& value) { SetQueryId(std::move(value)); return *this;}
68 
72  inline QueryResult& WithQueryId(const char* value) { SetQueryId(value); return *this;}
73 
74 
79  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
80 
85  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
86 
91  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
92 
97  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
98 
103  inline QueryResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
104 
109  inline QueryResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
110 
115  inline QueryResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
116 
117 
121  inline const Aws::Vector<Row>& GetRows() const{ return m_rows; }
122 
126  inline void SetRows(const Aws::Vector<Row>& value) { m_rows = value; }
127 
131  inline void SetRows(Aws::Vector<Row>&& value) { m_rows = std::move(value); }
132 
136  inline QueryResult& WithRows(const Aws::Vector<Row>& value) { SetRows(value); return *this;}
137 
141  inline QueryResult& WithRows(Aws::Vector<Row>&& value) { SetRows(std::move(value)); return *this;}
142 
146  inline QueryResult& AddRows(const Row& value) { m_rows.push_back(value); return *this; }
147 
151  inline QueryResult& AddRows(Row&& value) { m_rows.push_back(std::move(value)); return *this; }
152 
153 
157  inline const Aws::Vector<ColumnInfo>& GetColumnInfo() const{ return m_columnInfo; }
158 
162  inline void SetColumnInfo(const Aws::Vector<ColumnInfo>& value) { m_columnInfo = value; }
163 
167  inline void SetColumnInfo(Aws::Vector<ColumnInfo>&& value) { m_columnInfo = std::move(value); }
168 
172  inline QueryResult& WithColumnInfo(const Aws::Vector<ColumnInfo>& value) { SetColumnInfo(value); return *this;}
173 
177  inline QueryResult& WithColumnInfo(Aws::Vector<ColumnInfo>&& value) { SetColumnInfo(std::move(value)); return *this;}
178 
182  inline QueryResult& AddColumnInfo(const ColumnInfo& value) { m_columnInfo.push_back(value); return *this; }
183 
187  inline QueryResult& AddColumnInfo(ColumnInfo&& value) { m_columnInfo.push_back(std::move(value)); return *this; }
188 
189 
194  inline const QueryStatus& GetQueryStatus() const{ return m_queryStatus; }
195 
200  inline void SetQueryStatus(const QueryStatus& value) { m_queryStatus = value; }
201 
206  inline void SetQueryStatus(QueryStatus&& value) { m_queryStatus = std::move(value); }
207 
212  inline QueryResult& WithQueryStatus(const QueryStatus& value) { SetQueryStatus(value); return *this;}
213 
218  inline QueryResult& WithQueryStatus(QueryStatus&& value) { SetQueryStatus(std::move(value)); return *this;}
219 
220  private:
221 
222  Aws::String m_queryId;
223 
224  Aws::String m_nextToken;
225 
226  Aws::Vector<Row> m_rows;
227 
228  Aws::Vector<ColumnInfo> m_columnInfo;
229 
230  QueryStatus m_queryStatus;
231  };
232 
233 } // namespace Model
234 } // namespace TimestreamQuery
235 } // namespace Aws
Aws::TimestreamQuery::Model::QueryResult::GetQueryId
const Aws::String & GetQueryId() const
Definition: QueryResult.h:42
AWS_TIMESTREAMQUERY_API
#define AWS_TIMESTREAMQUERY_API
Definition: TimestreamQuery_EXPORTS.h:28
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::TimestreamQuery::Model::QueryResult::WithNextToken
QueryResult & WithNextToken(const Aws::String &value)
Definition: QueryResult.h:103
Aws::TimestreamQuery::Model::QueryResult::SetQueryId
void SetQueryId(Aws::String &&value)
Definition: QueryResult.h:52
Aws::TimestreamQuery::Model::QueryResult::SetColumnInfo
void SetColumnInfo(Aws::Vector< ColumnInfo > &&value)
Definition: QueryResult.h:167
Aws::TimestreamQuery::Model::QueryResult::SetColumnInfo
void SetColumnInfo(const Aws::Vector< ColumnInfo > &value)
Definition: QueryResult.h:162
Aws::TimestreamQuery::Model::QueryResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: QueryResult.h:79
Aws::TimestreamQuery::Model::ColumnInfo
Definition: ColumnInfo.h:35
Aws::TimestreamQuery::Model::QueryResult
Definition: QueryResult.h:32
Aws::TimestreamQuery::Model::QueryResult::QueryResult
QueryResult()
Aws::TimestreamQuery::Model::QueryResult::WithQueryId
QueryResult & WithQueryId(const Aws::String &value)
Definition: QueryResult.h:62
Aws::TimestreamQuery::Model::QueryResult::SetQueryId
void SetQueryId(const Aws::String &value)
Definition: QueryResult.h:47
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::TimestreamQuery::Model::QueryResult::SetRows
void SetRows(const Aws::Vector< Row > &value)
Definition: QueryResult.h:126
Aws::TimestreamQuery::Model::QueryResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: QueryResult.h:91
AWSVector.h
Aws::TimestreamQuery::Model::QueryResult::SetQueryStatus
void SetQueryStatus(const QueryStatus &value)
Definition: QueryResult.h:200
TimestreamQuery_EXPORTS.h
Row.h
Aws::TimestreamQuery::Model::QueryResult::SetQueryStatus
void SetQueryStatus(QueryStatus &&value)
Definition: QueryResult.h:206
Aws::TimestreamQuery::Model::QueryResult::SetNextToken
void SetNextToken(const char *value)
Definition: QueryResult.h:97
ColumnInfo.h
Aws::TimestreamQuery::Model::QueryResult::WithNextToken
QueryResult & WithNextToken(const char *value)
Definition: QueryResult.h:115
Aws::TimestreamQuery::Model::QueryResult::operator=
QueryResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::TimestreamQuery::Model::QueryResult::WithColumnInfo
QueryResult & WithColumnInfo(const Aws::Vector< ColumnInfo > &value)
Definition: QueryResult.h:172
Aws::TimestreamQuery::Model::QueryResult::WithRows
QueryResult & WithRows(Aws::Vector< Row > &&value)
Definition: QueryResult.h:141
Aws::TimestreamQuery::Model::QueryResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: QueryResult.h:85
Aws::TimestreamQuery::Model::QueryResult::QueryResult
QueryResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::TimestreamQuery::Model::QueryResult::GetQueryStatus
const QueryStatus & GetQueryStatus() const
Definition: QueryResult.h:194
AWSString.h
Aws::TimestreamQuery::Model::QueryResult::WithQueryId
QueryResult & WithQueryId(Aws::String &&value)
Definition: QueryResult.h:67
Aws::TimestreamQuery::Model::QueryResult::SetQueryId
void SetQueryId(const char *value)
Definition: QueryResult.h:57
Aws::TimestreamQuery::Model::QueryStatus
Definition: QueryStatus.h:31
Aws::TimestreamQuery::Model::QueryResult::AddRows
QueryResult & AddRows(Row &&value)
Definition: QueryResult.h:151
Aws::TimestreamQuery::Model::QueryResult::WithQueryStatus
QueryResult & WithQueryStatus(QueryStatus &&value)
Definition: QueryResult.h:218
Aws::TimestreamQuery::Model::Row
Definition: Row.h:33
QueryStatus.h
Aws
Definition: AccessManagementClient.h:15
Aws::TimestreamQuery::Model::QueryResult::GetColumnInfo
const Aws::Vector< ColumnInfo > & GetColumnInfo() const
Definition: QueryResult.h:157
Aws::TimestreamQuery::Model::QueryResult::WithColumnInfo
QueryResult & WithColumnInfo(Aws::Vector< ColumnInfo > &&value)
Definition: QueryResult.h:177
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::TimestreamQuery::Model::QueryResult::SetRows
void SetRows(Aws::Vector< Row > &&value)
Definition: QueryResult.h:131
Aws::TimestreamQuery::Model::QueryResult::AddColumnInfo
QueryResult & AddColumnInfo(ColumnInfo &&value)
Definition: QueryResult.h:187
Aws::TimestreamQuery::Model::QueryResult::WithQueryId
QueryResult & WithQueryId(const char *value)
Definition: QueryResult.h:72
Aws::TimestreamQuery::Model::QueryResult::AddRows
QueryResult & AddRows(const Row &value)
Definition: QueryResult.h:146
Aws::TimestreamQuery::Model::QueryResult::WithRows
QueryResult & WithRows(const Aws::Vector< Row > &value)
Definition: QueryResult.h:136
Aws::TimestreamQuery::Model::QueryResult::GetRows
const Aws::Vector< Row > & GetRows() const
Definition: QueryResult.h:121
Aws::TimestreamQuery::Model::QueryResult::AddColumnInfo
QueryResult & AddColumnInfo(const ColumnInfo &value)
Definition: QueryResult.h:182
Aws::TimestreamQuery::Model::QueryResult::WithQueryStatus
QueryResult & WithQueryStatus(const QueryStatus &value)
Definition: QueryResult.h:212
Aws::TimestreamQuery::Model::QueryResult::WithNextToken
QueryResult & WithNextToken(Aws::String &&value)
Definition: QueryResult.h:109