AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
QueryRequest.h
1
6#pragma once
7#include <aws/timestream-query/TimestreamQuery_EXPORTS.h>
8#include <aws/timestream-query/TimestreamQueryRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/timestream-query/model/QueryInsights.h>
11#include <utility>
12#include <aws/core/utils/UUID.h>
13
14namespace Aws
15{
16namespace TimestreamQuery
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_TIMESTREAMQUERY_API QueryRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "Query"; }
33
34 AWS_TIMESTREAMQUERY_API Aws::String SerializePayload() const override;
35
36 AWS_TIMESTREAMQUERY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
43 inline const Aws::String& GetQueryString() const{ return m_queryString; }
44 inline bool QueryStringHasBeenSet() const { return m_queryStringHasBeenSet; }
45 inline void SetQueryString(const Aws::String& value) { m_queryStringHasBeenSet = true; m_queryString = value; }
46 inline void SetQueryString(Aws::String&& value) { m_queryStringHasBeenSet = true; m_queryString = std::move(value); }
47 inline void SetQueryString(const char* value) { m_queryStringHasBeenSet = true; m_queryString.assign(value); }
48 inline QueryRequest& WithQueryString(const Aws::String& value) { SetQueryString(value); return *this;}
49 inline QueryRequest& WithQueryString(Aws::String&& value) { SetQueryString(std::move(value)); return *this;}
50 inline QueryRequest& WithQueryString(const char* value) { SetQueryString(value); return *this;}
52
54
72 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
73 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
74 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
75 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
76 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
77 inline QueryRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
78 inline QueryRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
79 inline QueryRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
81
83
108 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
109 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
110 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
111 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
112 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
113 inline QueryRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
114 inline QueryRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
115 inline QueryRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
117
119
134 inline int GetMaxRows() const{ return m_maxRows; }
135 inline bool MaxRowsHasBeenSet() const { return m_maxRowsHasBeenSet; }
136 inline void SetMaxRows(int value) { m_maxRowsHasBeenSet = true; m_maxRows = value; }
137 inline QueryRequest& WithMaxRows(int value) { SetMaxRows(value); return *this;}
139
141
147 inline const QueryInsights& GetQueryInsights() const{ return m_queryInsights; }
148 inline bool QueryInsightsHasBeenSet() const { return m_queryInsightsHasBeenSet; }
149 inline void SetQueryInsights(const QueryInsights& value) { m_queryInsightsHasBeenSet = true; m_queryInsights = value; }
150 inline void SetQueryInsights(QueryInsights&& value) { m_queryInsightsHasBeenSet = true; m_queryInsights = std::move(value); }
151 inline QueryRequest& WithQueryInsights(const QueryInsights& value) { SetQueryInsights(value); return *this;}
152 inline QueryRequest& WithQueryInsights(QueryInsights&& value) { SetQueryInsights(std::move(value)); return *this;}
154 private:
155
156 Aws::String m_queryString;
157 bool m_queryStringHasBeenSet = false;
158
159 Aws::String m_clientToken;
160 bool m_clientTokenHasBeenSet = false;
161
162 Aws::String m_nextToken;
163 bool m_nextTokenHasBeenSet = false;
164
165 int m_maxRows;
166 bool m_maxRowsHasBeenSet = false;
167
168 QueryInsights m_queryInsights;
169 bool m_queryInsightsHasBeenSet = false;
170 };
171
172} // namespace Model
173} // namespace TimestreamQuery
174} // namespace Aws
QueryRequest & WithNextToken(Aws::String &&value)
AWS_TIMESTREAMQUERY_API QueryRequest()
const Aws::String & GetClientToken() const
QueryRequest & WithQueryInsights(const QueryInsights &value)
virtual const char * GetServiceRequestName() const override
QueryRequest & WithQueryInsights(QueryInsights &&value)
void SetQueryString(const Aws::String &value)
void SetNextToken(const Aws::String &value)
AWS_TIMESTREAMQUERY_API Aws::String SerializePayload() const override
void SetNextToken(Aws::String &&value)
void SetQueryInsights(const QueryInsights &value)
QueryRequest & WithNextToken(const Aws::String &value)
void SetQueryString(Aws::String &&value)
void SetClientToken(const Aws::String &value)
QueryRequest & WithClientToken(Aws::String &&value)
QueryRequest & WithClientToken(const char *value)
QueryRequest & WithQueryString(Aws::String &&value)
QueryRequest & WithQueryString(const Aws::String &value)
void SetQueryInsights(QueryInsights &&value)
QueryRequest & WithClientToken(const Aws::String &value)
const Aws::String & GetNextToken() const
void SetClientToken(Aws::String &&value)
QueryRequest & WithMaxRows(int value)
const QueryInsights & GetQueryInsights() const
QueryRequest & WithQueryString(const char *value)
AWS_TIMESTREAMQUERY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::String & GetQueryString() const
QueryRequest & WithNextToken(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String