AWS SDK for C++

AWS SDK for C++ Version 1.11.809

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/AuditContext.h>
12#include <aws/glue/model/Segment.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Glue {
18namespace Model {
19
23 public:
24 AWS_GLUE_API GetPartitionsRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "GetPartitions"; }
31
32 AWS_GLUE_API Aws::String SerializePayload() const override;
33
35
37
41 inline const Aws::String& GetCatalogId() const { return m_catalogId; }
42 inline bool CatalogIdHasBeenSet() const { return m_catalogIdHasBeenSet; }
43 template <typename CatalogIdT = Aws::String>
44 void SetCatalogId(CatalogIdT&& value) {
45 m_catalogIdHasBeenSet = true;
46 m_catalogId = std::forward<CatalogIdT>(value);
47 }
48 template <typename CatalogIdT = Aws::String>
49 GetPartitionsRequest& WithCatalogId(CatalogIdT&& value) {
50 SetCatalogId(std::forward<CatalogIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetDatabaseName() const { return m_databaseName; }
60 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
61 template <typename DatabaseNameT = Aws::String>
62 void SetDatabaseName(DatabaseNameT&& value) {
63 m_databaseNameHasBeenSet = true;
64 m_databaseName = std::forward<DatabaseNameT>(value);
65 }
66 template <typename DatabaseNameT = Aws::String>
67 GetPartitionsRequest& WithDatabaseName(DatabaseNameT&& value) {
68 SetDatabaseName(std::forward<DatabaseNameT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetTableName() const { return m_tableName; }
78 inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; }
79 template <typename TableNameT = Aws::String>
80 void SetTableName(TableNameT&& value) {
81 m_tableNameHasBeenSet = true;
82 m_tableName = std::forward<TableNameT>(value);
83 }
84 template <typename TableNameT = Aws::String>
85 GetPartitionsRequest& WithTableName(TableNameT&& value) {
86 SetTableName(std::forward<TableNameT>(value));
87 return *this;
88 }
90
92
128 inline const Aws::String& GetExpression() const { return m_expression; }
129 inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; }
130 template <typename ExpressionT = Aws::String>
131 void SetExpression(ExpressionT&& value) {
132 m_expressionHasBeenSet = true;
133 m_expression = std::forward<ExpressionT>(value);
134 }
135 template <typename ExpressionT = Aws::String>
136 GetPartitionsRequest& WithExpression(ExpressionT&& value) {
137 SetExpression(std::forward<ExpressionT>(value));
138 return *this;
139 }
141
143
147 inline const Aws::String& GetNextToken() const { return m_nextToken; }
148 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
149 template <typename NextTokenT = Aws::String>
150 void SetNextToken(NextTokenT&& value) {
151 m_nextTokenHasBeenSet = true;
152 m_nextToken = std::forward<NextTokenT>(value);
153 }
154 template <typename NextTokenT = Aws::String>
155 GetPartitionsRequest& WithNextToken(NextTokenT&& value) {
156 SetNextToken(std::forward<NextTokenT>(value));
157 return *this;
158 }
160
162
165 inline const Segment& GetSegment() const { return m_segment; }
166 inline bool SegmentHasBeenSet() const { return m_segmentHasBeenSet; }
167 template <typename SegmentT = Segment>
168 void SetSegment(SegmentT&& value) {
169 m_segmentHasBeenSet = true;
170 m_segment = std::forward<SegmentT>(value);
171 }
172 template <typename SegmentT = Segment>
174 SetSegment(std::forward<SegmentT>(value));
175 return *this;
176 }
178
180
183 inline int GetMaxResults() const { return m_maxResults; }
184 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
185 inline void SetMaxResults(int value) {
186 m_maxResultsHasBeenSet = true;
187 m_maxResults = value;
188 }
190 SetMaxResults(value);
191 return *this;
192 }
194
196
202 inline bool GetExcludeColumnSchema() const { return m_excludeColumnSchema; }
203 inline bool ExcludeColumnSchemaHasBeenSet() const { return m_excludeColumnSchemaHasBeenSet; }
204 inline void SetExcludeColumnSchema(bool value) {
205 m_excludeColumnSchemaHasBeenSet = true;
206 m_excludeColumnSchema = value;
207 }
210 return *this;
211 }
213
215
218 inline const Aws::String& GetTransactionId() const { return m_transactionId; }
219 inline bool TransactionIdHasBeenSet() const { return m_transactionIdHasBeenSet; }
220 template <typename TransactionIdT = Aws::String>
221 void SetTransactionId(TransactionIdT&& value) {
222 m_transactionIdHasBeenSet = true;
223 m_transactionId = std::forward<TransactionIdT>(value);
224 }
225 template <typename TransactionIdT = Aws::String>
226 GetPartitionsRequest& WithTransactionId(TransactionIdT&& value) {
227 SetTransactionId(std::forward<TransactionIdT>(value));
228 return *this;
229 }
231
233
238 inline const Aws::Utils::DateTime& GetQueryAsOfTime() const { return m_queryAsOfTime; }
239 inline bool QueryAsOfTimeHasBeenSet() const { return m_queryAsOfTimeHasBeenSet; }
240 template <typename QueryAsOfTimeT = Aws::Utils::DateTime>
241 void SetQueryAsOfTime(QueryAsOfTimeT&& value) {
242 m_queryAsOfTimeHasBeenSet = true;
243 m_queryAsOfTime = std::forward<QueryAsOfTimeT>(value);
244 }
245 template <typename QueryAsOfTimeT = Aws::Utils::DateTime>
246 GetPartitionsRequest& WithQueryAsOfTime(QueryAsOfTimeT&& value) {
247 SetQueryAsOfTime(std::forward<QueryAsOfTimeT>(value));
248 return *this;
249 }
251
253
254 inline const AuditContext& GetAuditContext() const { return m_auditContext; }
255 inline bool AuditContextHasBeenSet() const { return m_auditContextHasBeenSet; }
256 template <typename AuditContextT = AuditContext>
257 void SetAuditContext(AuditContextT&& value) {
258 m_auditContextHasBeenSet = true;
259 m_auditContext = std::forward<AuditContextT>(value);
260 }
261 template <typename AuditContextT = AuditContext>
262 GetPartitionsRequest& WithAuditContext(AuditContextT&& value) {
263 SetAuditContext(std::forward<AuditContextT>(value));
264 return *this;
265 }
267 private:
268 Aws::String m_catalogId;
269
270 Aws::String m_databaseName;
271
272 Aws::String m_tableName;
273
274 Aws::String m_expression;
275
276 Aws::String m_nextToken;
277
278 Segment m_segment;
279
280 int m_maxResults{0};
281
282 bool m_excludeColumnSchema{false};
283
284 Aws::String m_transactionId;
285
286 Aws::Utils::DateTime m_queryAsOfTime{};
287
288 AuditContext m_auditContext;
289 bool m_catalogIdHasBeenSet = false;
290 bool m_databaseNameHasBeenSet = false;
291 bool m_tableNameHasBeenSet = false;
292 bool m_expressionHasBeenSet = false;
293 bool m_nextTokenHasBeenSet = false;
294 bool m_segmentHasBeenSet = false;
295 bool m_maxResultsHasBeenSet = false;
296 bool m_excludeColumnSchemaHasBeenSet = false;
297 bool m_transactionIdHasBeenSet = false;
298 bool m_queryAsOfTimeHasBeenSet = false;
299 bool m_auditContextHasBeenSet = false;
300};
301
302} // namespace Model
303} // namespace Glue
304} // 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
GetPartitionsRequest & WithAuditContext(AuditContextT &&value)
AWS_GLUE_API GetPartitionsRequest()=default
void SetTransactionId(TransactionIdT &&value)
GetPartitionsRequest & WithDatabaseName(DatabaseNameT &&value)
const AuditContext & GetAuditContext() const
GetPartitionsRequest & WithTransactionId(TransactionIdT &&value)
GetPartitionsRequest & WithNextToken(NextTokenT &&value)
const Aws::String & GetTransactionId() const
GetPartitionsRequest & WithSegment(SegmentT &&value)
GetPartitionsRequest & WithExcludeColumnSchema(bool value)
void SetAuditContext(AuditContextT &&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