AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
QueryRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/timestream-query/TimestreamQueryRequest.h>
10#include <aws/timestream-query/TimestreamQuery_EXPORTS.h>
11#include <aws/timestream-query/model/QueryInsights.h>
12
13#include <utility>
14
15namespace Aws {
16namespace TimestreamQuery {
17namespace Model {
18
22 public:
23 AWS_TIMESTREAMQUERY_API QueryRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "Query"; }
30
31 AWS_TIMESTREAMQUERY_API Aws::String SerializePayload() const override;
32
33 AWS_TIMESTREAMQUERY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
39 inline const Aws::String& GetQueryString() const { return m_queryString; }
40 inline bool QueryStringHasBeenSet() const { return m_queryStringHasBeenSet; }
41 template <typename QueryStringT = Aws::String>
43 m_queryStringHasBeenSet = true;
44 m_queryString = std::forward<QueryStringT>(value);
45 }
46 template <typename QueryStringT = Aws::String>
48 SetQueryString(std::forward<QueryStringT>(value));
49 return *this;
50 }
52
54
72 inline const Aws::String& GetClientToken() const { return m_clientToken; }
73 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
74 template <typename ClientTokenT = Aws::String>
76 m_clientTokenHasBeenSet = true;
77 m_clientToken = std::forward<ClientTokenT>(value);
78 }
79 template <typename ClientTokenT = Aws::String>
81 SetClientToken(std::forward<ClientTokenT>(value));
82 return *this;
83 }
85
87
112 inline const Aws::String& GetNextToken() const { return m_nextToken; }
113 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
114 template <typename NextTokenT = Aws::String>
115 void SetNextToken(NextTokenT&& value) {
116 m_nextTokenHasBeenSet = true;
117 m_nextToken = std::forward<NextTokenT>(value);
118 }
119 template <typename NextTokenT = Aws::String>
121 SetNextToken(std::forward<NextTokenT>(value));
122 return *this;
123 }
125
127
142 inline int GetMaxRows() const { return m_maxRows; }
143 inline bool MaxRowsHasBeenSet() const { return m_maxRowsHasBeenSet; }
144 inline void SetMaxRows(int value) {
145 m_maxRowsHasBeenSet = true;
146 m_maxRows = value;
147 }
148 inline QueryRequest& WithMaxRows(int value) {
149 SetMaxRows(value);
150 return *this;
151 }
153
155
161 inline const QueryInsights& GetQueryInsights() const { return m_queryInsights; }
162 inline bool QueryInsightsHasBeenSet() const { return m_queryInsightsHasBeenSet; }
163 template <typename QueryInsightsT = QueryInsights>
165 m_queryInsightsHasBeenSet = true;
166 m_queryInsights = std::forward<QueryInsightsT>(value);
167 }
168 template <typename QueryInsightsT = QueryInsights>
170 SetQueryInsights(std::forward<QueryInsightsT>(value));
171 return *this;
172 }
174 private:
175 Aws::String m_queryString;
176
178
179 Aws::String m_nextToken;
180
181 int m_maxRows{0};
182
183 QueryInsights m_queryInsights;
184 bool m_queryStringHasBeenSet = false;
185 bool m_clientTokenHasBeenSet = true;
186 bool m_nextTokenHasBeenSet = false;
187 bool m_maxRowsHasBeenSet = false;
188 bool m_queryInsightsHasBeenSet = false;
189};
190
191} // namespace Model
192} // namespace TimestreamQuery
193} // namespace Aws
void SetQueryInsights(QueryInsightsT &&value)
QueryRequest & WithClientToken(ClientTokenT &&value)
QueryRequest & WithQueryString(QueryStringT &&value)
const Aws::String & GetClientToken() const
virtual const char * GetServiceRequestName() const override
QueryRequest & WithNextToken(NextTokenT &&value)
void SetClientToken(ClientTokenT &&value)
void SetQueryString(QueryStringT &&value)
AWS_TIMESTREAMQUERY_API Aws::String SerializePayload() const override
AWS_TIMESTREAMQUERY_API QueryRequest()=default
const Aws::String & GetNextToken() const
QueryRequest & WithMaxRows(int value)
const QueryInsights & GetQueryInsights() const
QueryRequest & WithQueryInsights(QueryInsightsT &&value)
AWS_TIMESTREAMQUERY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::String & GetQueryString() const
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String