AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename QueryStringT = Aws::String>
46 void SetQueryString(QueryStringT&& value) { m_queryStringHasBeenSet = true; m_queryString = std::forward<QueryStringT>(value); }
47 template<typename QueryStringT = Aws::String>
48 QueryRequest& WithQueryString(QueryStringT&& value) { SetQueryString(std::forward<QueryStringT>(value)); return *this;}
50
52
70 inline const Aws::String& GetClientToken() const { return m_clientToken; }
71 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
72 template<typename ClientTokenT = Aws::String>
73 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
74 template<typename ClientTokenT = Aws::String>
75 QueryRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
77
79
104 inline const Aws::String& GetNextToken() const { return m_nextToken; }
105 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
106 template<typename NextTokenT = Aws::String>
107 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
108 template<typename NextTokenT = Aws::String>
109 QueryRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
111
113
128 inline int GetMaxRows() const { return m_maxRows; }
129 inline bool MaxRowsHasBeenSet() const { return m_maxRowsHasBeenSet; }
130 inline void SetMaxRows(int value) { m_maxRowsHasBeenSet = true; m_maxRows = value; }
131 inline QueryRequest& WithMaxRows(int value) { SetMaxRows(value); return *this;}
133
135
141 inline const QueryInsights& GetQueryInsights() const { return m_queryInsights; }
142 inline bool QueryInsightsHasBeenSet() const { return m_queryInsightsHasBeenSet; }
143 template<typename QueryInsightsT = QueryInsights>
144 void SetQueryInsights(QueryInsightsT&& value) { m_queryInsightsHasBeenSet = true; m_queryInsights = std::forward<QueryInsightsT>(value); }
145 template<typename QueryInsightsT = QueryInsights>
146 QueryRequest& WithQueryInsights(QueryInsightsT&& value) { SetQueryInsights(std::forward<QueryInsightsT>(value)); return *this;}
148 private:
149
150 Aws::String m_queryString;
151 bool m_queryStringHasBeenSet = false;
152
154 bool m_clientTokenHasBeenSet = true;
155
156 Aws::String m_nextToken;
157 bool m_nextTokenHasBeenSet = false;
158
159 int m_maxRows{0};
160 bool m_maxRowsHasBeenSet = false;
161
162 QueryInsights m_queryInsights;
163 bool m_queryInsightsHasBeenSet = false;
164 };
165
166} // namespace Model
167} // namespace TimestreamQuery
168} // 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