AWS SDK for C++  1.9.68
AWS SDK for C++
QueryRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 #include <aws/core/utils/UUID.h>
12 
13 namespace Aws
14 {
15 namespace TimestreamQuery
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "Query"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
41  inline const Aws::String& GetQueryString() const{ return m_queryString; }
42 
46  inline bool QueryStringHasBeenSet() const { return m_queryStringHasBeenSet; }
47 
51  inline void SetQueryString(const Aws::String& value) { m_queryStringHasBeenSet = true; m_queryString = value; }
52 
56  inline void SetQueryString(Aws::String&& value) { m_queryStringHasBeenSet = true; m_queryString = std::move(value); }
57 
61  inline void SetQueryString(const char* value) { m_queryStringHasBeenSet = true; m_queryString.assign(value); }
62 
66  inline QueryRequest& WithQueryString(const Aws::String& value) { SetQueryString(value); return *this;}
67 
71  inline QueryRequest& WithQueryString(Aws::String&& value) { SetQueryString(std::move(value)); return *this;}
72 
76  inline QueryRequest& WithQueryString(const char* value) { SetQueryString(value); return *this;}
77 
78 
90  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
91 
103  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
104 
116  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
117 
129  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
130 
142  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
143 
155  inline QueryRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
156 
168  inline QueryRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
169 
181  inline QueryRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
182 
183 
187  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
188 
192  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
193 
197  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
198 
202  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
203 
207  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
208 
212  inline QueryRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
213 
217  inline QueryRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
218 
222  inline QueryRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
223 
224 
231  inline int GetMaxRows() const{ return m_maxRows; }
232 
239  inline bool MaxRowsHasBeenSet() const { return m_maxRowsHasBeenSet; }
240 
247  inline void SetMaxRows(int value) { m_maxRowsHasBeenSet = true; m_maxRows = value; }
248 
255  inline QueryRequest& WithMaxRows(int value) { SetMaxRows(value); return *this;}
256 
257  private:
258 
259  Aws::String m_queryString;
260  bool m_queryStringHasBeenSet;
261 
262  Aws::String m_clientToken;
263  bool m_clientTokenHasBeenSet;
264 
265  Aws::String m_nextToken;
266  bool m_nextTokenHasBeenSet;
267 
268  int m_maxRows;
269  bool m_maxRowsHasBeenSet;
270  };
271 
272 } // namespace Model
273 } // namespace TimestreamQuery
274 } // namespace Aws
Aws::TimestreamQuery::Model::QueryRequest::WithMaxRows
QueryRequest & WithMaxRows(int value)
Definition: QueryRequest.h:255
Aws::TimestreamQuery::Model::QueryRequest::WithNextToken
QueryRequest & WithNextToken(const char *value)
Definition: QueryRequest.h:222
Aws::TimestreamQuery::Model::QueryRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: QueryRequest.h:187
AWS_TIMESTREAMQUERY_API
#define AWS_TIMESTREAMQUERY_API
Definition: TimestreamQuery_EXPORTS.h:28
Aws::TimestreamQuery::Model::QueryRequest::GetMaxRows
int GetMaxRows() const
Definition: QueryRequest.h:231
Aws::TimestreamQuery::Model::QueryRequest::WithClientToken
QueryRequest & WithClientToken(const char *value)
Definition: QueryRequest.h:181
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::TimestreamQuery::Model::QueryRequest::QueryRequest
QueryRequest()
Aws::TimestreamQuery::Model::QueryRequest
Definition: QueryRequest.h:23
Aws::TimestreamQuery::Model::QueryRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::TimestreamQuery::Model::QueryRequest::GetQueryString
const Aws::String & GetQueryString() const
Definition: QueryRequest.h:41
Aws::TimestreamQuery::Model::QueryRequest::WithQueryString
QueryRequest & WithQueryString(Aws::String &&value)
Definition: QueryRequest.h:71
Aws::TimestreamQuery::Model::QueryRequest::SetNextToken
void SetNextToken(const char *value)
Definition: QueryRequest.h:207
Aws::TimestreamQuery::Model::QueryRequest::WithQueryString
QueryRequest & WithQueryString(const char *value)
Definition: QueryRequest.h:76
Aws::TimestreamQuery::Model::QueryRequest::WithQueryString
QueryRequest & WithQueryString(const Aws::String &value)
Definition: QueryRequest.h:66
Aws::TimestreamQuery::Model::QueryRequest::SetQueryString
void SetQueryString(Aws::String &&value)
Definition: QueryRequest.h:56
Aws::TimestreamQuery::Model::QueryRequest::WithClientToken
QueryRequest & WithClientToken(const Aws::String &value)
Definition: QueryRequest.h:155
TimestreamQuery_EXPORTS.h
TimestreamQueryRequest.h
Aws::TimestreamQuery::Model::QueryRequest::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: QueryRequest.h:116
Aws::TimestreamQuery::Model::QueryRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: QueryRequest.h:31
Aws::TimestreamQuery::Model::QueryRequest::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: QueryRequest.h:129
Aws::TimestreamQuery::Model::QueryRequest::WithClientToken
QueryRequest & WithClientToken(Aws::String &&value)
Definition: QueryRequest.h:168
Aws::TimestreamQuery::Model::QueryRequest::SetMaxRows
void SetMaxRows(int value)
Definition: QueryRequest.h:247
Aws::TimestreamQuery::Model::QueryRequest::SetQueryString
void SetQueryString(const Aws::String &value)
Definition: QueryRequest.h:51
AWSString.h
Aws::TimestreamQuery::Model::QueryRequest::GetClientToken
const Aws::String & GetClientToken() const
Definition: QueryRequest.h:90
Aws::TimestreamQuery::Model::QueryRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: QueryRequest.h:202
Aws::TimestreamQuery::Model::QueryRequest::WithNextToken
QueryRequest & WithNextToken(const Aws::String &value)
Definition: QueryRequest.h:212
Aws::TimestreamQuery::Model::QueryRequest::ClientTokenHasBeenSet
bool ClientTokenHasBeenSet() const
Definition: QueryRequest.h:103
Aws::TimestreamQuery::Model::QueryRequest::SerializePayload
Aws::String SerializePayload() const override
Aws
Definition: AccessManagementClient.h:15
Aws::TimestreamQuery::Model::QueryRequest::MaxRowsHasBeenSet
bool MaxRowsHasBeenSet() const
Definition: QueryRequest.h:239
Aws::TimestreamQuery::Model::QueryRequest::SetQueryString
void SetQueryString(const char *value)
Definition: QueryRequest.h:61
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::TimestreamQuery::Model::QueryRequest::SetClientToken
void SetClientToken(const char *value)
Definition: QueryRequest.h:142
Aws::TimestreamQuery::Model::QueryRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: QueryRequest.h:197
UUID.h
Aws::TimestreamQuery::Model::QueryRequest::WithNextToken
QueryRequest & WithNextToken(Aws::String &&value)
Definition: QueryRequest.h:217
Aws::TimestreamQuery::Model::QueryRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: QueryRequest.h:192
Aws::TimestreamQuery::Model::QueryRequest::QueryStringHasBeenSet
bool QueryStringHasBeenSet() const
Definition: QueryRequest.h:46
Aws::TimestreamQuery::TimestreamQueryRequest
Definition: TimestreamQueryRequest.h:17