AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
GetPartitionsRequest.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/glue/GlueRequest.h>
10#include <aws/glue/Glue_EXPORTS.h>
11#include <aws/glue/model/Segment.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Glue {
17namespace Model {
18
22 public:
23 AWS_GLUE_API GetPartitionsRequest() = 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 "GetPartitions"; }
30
31 AWS_GLUE_API Aws::String SerializePayload() const override;
32
34
36
40 inline const Aws::String& GetCatalogId() const { return m_catalogId; }
41 inline bool CatalogIdHasBeenSet() const { return m_catalogIdHasBeenSet; }
42 template <typename CatalogIdT = Aws::String>
43 void SetCatalogId(CatalogIdT&& value) {
44 m_catalogIdHasBeenSet = true;
45 m_catalogId = std::forward<CatalogIdT>(value);
46 }
47 template <typename CatalogIdT = Aws::String>
48 GetPartitionsRequest& WithCatalogId(CatalogIdT&& value) {
49 SetCatalogId(std::forward<CatalogIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetDatabaseName() const { return m_databaseName; }
59 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
60 template <typename DatabaseNameT = Aws::String>
61 void SetDatabaseName(DatabaseNameT&& value) {
62 m_databaseNameHasBeenSet = true;
63 m_databaseName = std::forward<DatabaseNameT>(value);
64 }
65 template <typename DatabaseNameT = Aws::String>
66 GetPartitionsRequest& WithDatabaseName(DatabaseNameT&& value) {
67 SetDatabaseName(std::forward<DatabaseNameT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetTableName() const { return m_tableName; }
77 inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; }
78 template <typename TableNameT = Aws::String>
79 void SetTableName(TableNameT&& value) {
80 m_tableNameHasBeenSet = true;
81 m_tableName = std::forward<TableNameT>(value);
82 }
83 template <typename TableNameT = Aws::String>
84 GetPartitionsRequest& WithTableName(TableNameT&& value) {
85 SetTableName(std::forward<TableNameT>(value));
86 return *this;
87 }
89
91
127 inline const Aws::String& GetExpression() const { return m_expression; }
128 inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; }
129 template <typename ExpressionT = Aws::String>
130 void SetExpression(ExpressionT&& value) {
131 m_expressionHasBeenSet = true;
132 m_expression = std::forward<ExpressionT>(value);
133 }
134 template <typename ExpressionT = Aws::String>
135 GetPartitionsRequest& WithExpression(ExpressionT&& value) {
136 SetExpression(std::forward<ExpressionT>(value));
137 return *this;
138 }
140
142
146 inline const Aws::String& GetNextToken() const { return m_nextToken; }
147 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
148 template <typename NextTokenT = Aws::String>
149 void SetNextToken(NextTokenT&& value) {
150 m_nextTokenHasBeenSet = true;
151 m_nextToken = std::forward<NextTokenT>(value);
152 }
153 template <typename NextTokenT = Aws::String>
154 GetPartitionsRequest& WithNextToken(NextTokenT&& value) {
155 SetNextToken(std::forward<NextTokenT>(value));
156 return *this;
157 }
159
161
164 inline const Segment& GetSegment() const { return m_segment; }
165 inline bool SegmentHasBeenSet() const { return m_segmentHasBeenSet; }
166 template <typename SegmentT = Segment>
167 void SetSegment(SegmentT&& value) {
168 m_segmentHasBeenSet = true;
169 m_segment = std::forward<SegmentT>(value);
170 }
171 template <typename SegmentT = Segment>
173 SetSegment(std::forward<SegmentT>(value));
174 return *this;
175 }
177
179
182 inline int GetMaxResults() const { return m_maxResults; }
183 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
184 inline void SetMaxResults(int value) {
185 m_maxResultsHasBeenSet = true;
186 m_maxResults = value;
187 }
189 SetMaxResults(value);
190 return *this;
191 }
193
195
201 inline bool GetExcludeColumnSchema() const { return m_excludeColumnSchema; }
202 inline bool ExcludeColumnSchemaHasBeenSet() const { return m_excludeColumnSchemaHasBeenSet; }
203 inline void SetExcludeColumnSchema(bool value) {
204 m_excludeColumnSchemaHasBeenSet = true;
205 m_excludeColumnSchema = value;
206 }
209 return *this;
210 }
212
214
217 inline const Aws::String& GetTransactionId() const { return m_transactionId; }
218 inline bool TransactionIdHasBeenSet() const { return m_transactionIdHasBeenSet; }
219 template <typename TransactionIdT = Aws::String>
220 void SetTransactionId(TransactionIdT&& value) {
221 m_transactionIdHasBeenSet = true;
222 m_transactionId = std::forward<TransactionIdT>(value);
223 }
224 template <typename TransactionIdT = Aws::String>
225 GetPartitionsRequest& WithTransactionId(TransactionIdT&& value) {
226 SetTransactionId(std::forward<TransactionIdT>(value));
227 return *this;
228 }
230
232
237 inline const Aws::Utils::DateTime& GetQueryAsOfTime() const { return m_queryAsOfTime; }
238 inline bool QueryAsOfTimeHasBeenSet() const { return m_queryAsOfTimeHasBeenSet; }
239 template <typename QueryAsOfTimeT = Aws::Utils::DateTime>
240 void SetQueryAsOfTime(QueryAsOfTimeT&& value) {
241 m_queryAsOfTimeHasBeenSet = true;
242 m_queryAsOfTime = std::forward<QueryAsOfTimeT>(value);
243 }
244 template <typename QueryAsOfTimeT = Aws::Utils::DateTime>
245 GetPartitionsRequest& WithQueryAsOfTime(QueryAsOfTimeT&& value) {
246 SetQueryAsOfTime(std::forward<QueryAsOfTimeT>(value));
247 return *this;
248 }
250 private:
251 Aws::String m_catalogId;
252
253 Aws::String m_databaseName;
254
255 Aws::String m_tableName;
256
257 Aws::String m_expression;
258
259 Aws::String m_nextToken;
260
261 Segment m_segment;
262
263 int m_maxResults{0};
264
265 bool m_excludeColumnSchema{false};
266
267 Aws::String m_transactionId;
268
269 Aws::Utils::DateTime m_queryAsOfTime{};
270 bool m_catalogIdHasBeenSet = false;
271 bool m_databaseNameHasBeenSet = false;
272 bool m_tableNameHasBeenSet = false;
273 bool m_expressionHasBeenSet = false;
274 bool m_nextTokenHasBeenSet = false;
275 bool m_segmentHasBeenSet = false;
276 bool m_maxResultsHasBeenSet = false;
277 bool m_excludeColumnSchemaHasBeenSet = false;
278 bool m_transactionIdHasBeenSet = false;
279 bool m_queryAsOfTimeHasBeenSet = false;
280};
281
282} // namespace Model
283} // namespace Glue
284} // namespace Aws
void SetDatabaseName(DatabaseNameT &&value)
virtual const char * GetServiceRequestName() const override
void SetQueryAsOfTime(QueryAsOfTimeT &&value)
const Aws::String & GetDatabaseName() const
AWS_GLUE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetPartitionsRequest & WithMaxResults(int value)
const Aws::Utils::DateTime & GetQueryAsOfTime() const
AWS_GLUE_API Aws::String SerializePayload() const override
AWS_GLUE_API GetPartitionsRequest()=default
void SetTransactionId(TransactionIdT &&value)
GetPartitionsRequest & WithDatabaseName(DatabaseNameT &&value)
GetPartitionsRequest & WithTransactionId(TransactionIdT &&value)
GetPartitionsRequest & WithNextToken(NextTokenT &&value)
const Aws::String & GetTransactionId() const
GetPartitionsRequest & WithSegment(SegmentT &&value)
GetPartitionsRequest & WithExcludeColumnSchema(bool value)
GetPartitionsRequest & WithQueryAsOfTime(QueryAsOfTimeT &&value)
GetPartitionsRequest & WithCatalogId(CatalogIdT &&value)
GetPartitionsRequest & WithTableName(TableNameT &&value)
GetPartitionsRequest & WithExpression(ExpressionT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String