AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
QueryResult.h
1
6#pragma once
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>
14#include <utility>
15
16namespace Aws
17{
18template<typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace TimestreamQuery
29{
30namespace Model
31{
33 {
34 public:
35 AWS_TIMESTREAMQUERY_API QueryResult();
38
39
41
44 inline const Aws::String& GetQueryId() const{ return m_queryId; }
45 inline void SetQueryId(const Aws::String& value) { m_queryId = value; }
46 inline void SetQueryId(Aws::String&& value) { m_queryId = std::move(value); }
47 inline void SetQueryId(const char* value) { m_queryId.assign(value); }
48 inline QueryResult& WithQueryId(const Aws::String& value) { SetQueryId(value); return *this;}
49 inline QueryResult& WithQueryId(Aws::String&& value) { SetQueryId(std::move(value)); return *this;}
50 inline QueryResult& WithQueryId(const char* value) { SetQueryId(value); return *this;}
52
54
58 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
59 inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
60 inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
61 inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
62 inline QueryResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
63 inline QueryResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
64 inline QueryResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
66
68
71 inline const Aws::Vector<Row>& GetRows() const{ return m_rows; }
72 inline void SetRows(const Aws::Vector<Row>& value) { m_rows = value; }
73 inline void SetRows(Aws::Vector<Row>&& value) { m_rows = std::move(value); }
74 inline QueryResult& WithRows(const Aws::Vector<Row>& value) { SetRows(value); return *this;}
75 inline QueryResult& WithRows(Aws::Vector<Row>&& value) { SetRows(std::move(value)); return *this;}
76 inline QueryResult& AddRows(const Row& value) { m_rows.push_back(value); return *this; }
77 inline QueryResult& AddRows(Row&& value) { m_rows.push_back(std::move(value)); return *this; }
79
81
84 inline const Aws::Vector<ColumnInfo>& GetColumnInfo() const{ return m_columnInfo; }
85 inline void SetColumnInfo(const Aws::Vector<ColumnInfo>& value) { m_columnInfo = value; }
86 inline void SetColumnInfo(Aws::Vector<ColumnInfo>&& value) { m_columnInfo = std::move(value); }
87 inline QueryResult& WithColumnInfo(const Aws::Vector<ColumnInfo>& value) { SetColumnInfo(value); return *this;}
88 inline QueryResult& WithColumnInfo(Aws::Vector<ColumnInfo>&& value) { SetColumnInfo(std::move(value)); return *this;}
89 inline QueryResult& AddColumnInfo(const ColumnInfo& value) { m_columnInfo.push_back(value); return *this; }
90 inline QueryResult& AddColumnInfo(ColumnInfo&& value) { m_columnInfo.push_back(std::move(value)); return *this; }
92
94
98 inline const QueryStatus& GetQueryStatus() const{ return m_queryStatus; }
99 inline void SetQueryStatus(const QueryStatus& value) { m_queryStatus = value; }
100 inline void SetQueryStatus(QueryStatus&& value) { m_queryStatus = std::move(value); }
101 inline QueryResult& WithQueryStatus(const QueryStatus& value) { SetQueryStatus(value); return *this;}
102 inline QueryResult& WithQueryStatus(QueryStatus&& value) { SetQueryStatus(std::move(value)); return *this;}
104
106
110 inline const QueryInsightsResponse& GetQueryInsightsResponse() const{ return m_queryInsightsResponse; }
111 inline void SetQueryInsightsResponse(const QueryInsightsResponse& value) { m_queryInsightsResponse = value; }
112 inline void SetQueryInsightsResponse(QueryInsightsResponse&& value) { m_queryInsightsResponse = std::move(value); }
114 inline QueryResult& WithQueryInsightsResponse(QueryInsightsResponse&& value) { SetQueryInsightsResponse(std::move(value)); return *this;}
116
118
119 inline const Aws::String& GetRequestId() const{ return m_requestId; }
120 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
121 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
122 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
123 inline QueryResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
124 inline QueryResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
125 inline QueryResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
127 private:
128
129 Aws::String m_queryId;
130
131 Aws::String m_nextToken;
132
133 Aws::Vector<Row> m_rows;
134
135 Aws::Vector<ColumnInfo> m_columnInfo;
136
137 QueryStatus m_queryStatus;
138
139 QueryInsightsResponse m_queryInsightsResponse;
140
141 Aws::String m_requestId;
142 };
143
144} // namespace Model
145} // namespace TimestreamQuery
146} // namespace Aws
QueryResult & WithRequestId(const Aws::String &value)
QueryResult & AddColumnInfo(const ColumnInfo &value)
Definition QueryResult.h:89
void SetNextToken(const char *value)
Definition QueryResult.h:61
void SetQueryStatus(QueryStatus &&value)
QueryResult & AddRows(Row &&value)
Definition QueryResult.h:77
QueryResult & WithQueryInsightsResponse(const QueryInsightsResponse &value)
const Aws::String & GetRequestId() const
const QueryStatus & GetQueryStatus() const
Definition QueryResult.h:98
QueryResult & WithRequestId(Aws::String &&value)
QueryResult & WithQueryId(const Aws::String &value)
Definition QueryResult.h:48
void SetRequestId(Aws::String &&value)
void SetRows(const Aws::Vector< Row > &value)
Definition QueryResult.h:72
void SetQueryId(Aws::String &&value)
Definition QueryResult.h:46
AWS_TIMESTREAMQUERY_API QueryResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_TIMESTREAMQUERY_API QueryResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
QueryResult & WithQueryId(Aws::String &&value)
Definition QueryResult.h:49
AWS_TIMESTREAMQUERY_API QueryResult()
const Aws::String & GetNextToken() const
Definition QueryResult.h:58
QueryResult & WithNextToken(const char *value)
Definition QueryResult.h:64
QueryResult & AddColumnInfo(ColumnInfo &&value)
Definition QueryResult.h:90
void SetRows(Aws::Vector< Row > &&value)
Definition QueryResult.h:73
QueryResult & AddRows(const Row &value)
Definition QueryResult.h:76
void SetRequestId(const Aws::String &value)
QueryResult & WithQueryStatus(QueryStatus &&value)
void SetNextToken(Aws::String &&value)
Definition QueryResult.h:60
const Aws::String & GetQueryId() const
Definition QueryResult.h:44
void SetQueryStatus(const QueryStatus &value)
Definition QueryResult.h:99
const QueryInsightsResponse & GetQueryInsightsResponse() const
void SetColumnInfo(const Aws::Vector< ColumnInfo > &value)
Definition QueryResult.h:85
QueryResult & WithQueryStatus(const QueryStatus &value)
QueryResult & WithColumnInfo(Aws::Vector< ColumnInfo > &&value)
Definition QueryResult.h:88
void SetNextToken(const Aws::String &value)
Definition QueryResult.h:59
void SetQueryId(const Aws::String &value)
Definition QueryResult.h:45
QueryResult & WithRequestId(const char *value)
QueryResult & WithRows(Aws::Vector< Row > &&value)
Definition QueryResult.h:75
QueryResult & WithRows(const Aws::Vector< Row > &value)
Definition QueryResult.h:74
void SetQueryInsightsResponse(const QueryInsightsResponse &value)
QueryResult & WithQueryInsightsResponse(QueryInsightsResponse &&value)
void SetQueryInsightsResponse(QueryInsightsResponse &&value)
const Aws::Vector< Row > & GetRows() const
Definition QueryResult.h:71
QueryResult & WithQueryId(const char *value)
Definition QueryResult.h:50
QueryResult & WithNextToken(Aws::String &&value)
Definition QueryResult.h:63
QueryResult & WithNextToken(const Aws::String &value)
Definition QueryResult.h:62
void SetColumnInfo(Aws::Vector< ColumnInfo > &&value)
Definition QueryResult.h:86
QueryResult & WithColumnInfo(const Aws::Vector< ColumnInfo > &value)
Definition QueryResult.h:87
const Aws::Vector< ColumnInfo > & GetColumnInfo() const
Definition QueryResult.h:84
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue