AWS SDK for C++

AWS SDK for C++ Version 1.11.907

Loading...
Searching...
No Matches
GetTablesRequest.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/glue/GlueRequest.h>
11#include <aws/glue/Glue_EXPORTS.h>
12#include <aws/glue/model/AuditContext.h>
13#include <aws/glue/model/TableAttributes.h>
14#include <aws/glue/model/TableResourceShareType.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Glue {
20namespace Model {
21
25 public:
26 AWS_GLUE_API GetTablesRequest() = 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 "GetTables"; }
33
34 AWS_GLUE_API Aws::String SerializePayload() const override;
35
37
39
43 inline const Aws::String& GetCatalogId() const { return m_catalogId; }
44 inline bool CatalogIdHasBeenSet() const { return m_catalogIdHasBeenSet; }
45 template <typename CatalogIdT = Aws::String>
46 void SetCatalogId(CatalogIdT&& value) {
47 m_catalogIdHasBeenSet = true;
48 m_catalogId = std::forward<CatalogIdT>(value);
49 }
50 template <typename CatalogIdT = Aws::String>
51 GetTablesRequest& WithCatalogId(CatalogIdT&& value) {
52 SetCatalogId(std::forward<CatalogIdT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::String& GetDatabaseName() const { return m_databaseName; }
63 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
64 template <typename DatabaseNameT = Aws::String>
65 void SetDatabaseName(DatabaseNameT&& value) {
66 m_databaseNameHasBeenSet = true;
67 m_databaseName = std::forward<DatabaseNameT>(value);
68 }
69 template <typename DatabaseNameT = Aws::String>
70 GetTablesRequest& WithDatabaseName(DatabaseNameT&& value) {
71 SetDatabaseName(std::forward<DatabaseNameT>(value));
72 return *this;
73 }
75
77
81 inline const Aws::String& GetExpression() const { return m_expression; }
82 inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; }
83 template <typename ExpressionT = Aws::String>
84 void SetExpression(ExpressionT&& value) {
85 m_expressionHasBeenSet = true;
86 m_expression = std::forward<ExpressionT>(value);
87 }
88 template <typename ExpressionT = Aws::String>
89 GetTablesRequest& WithExpression(ExpressionT&& value) {
90 SetExpression(std::forward<ExpressionT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::String& GetNextToken() const { return m_nextToken; }
100 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
101 template <typename NextTokenT = Aws::String>
102 void SetNextToken(NextTokenT&& value) {
103 m_nextTokenHasBeenSet = true;
104 m_nextToken = std::forward<NextTokenT>(value);
105 }
106 template <typename NextTokenT = Aws::String>
107 GetTablesRequest& WithNextToken(NextTokenT&& value) {
108 SetNextToken(std::forward<NextTokenT>(value));
109 return *this;
110 }
112
114
117 inline int GetMaxResults() const { return m_maxResults; }
118 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
119 inline void SetMaxResults(int value) {
120 m_maxResultsHasBeenSet = true;
121 m_maxResults = value;
122 }
123 inline GetTablesRequest& WithMaxResults(int value) {
124 SetMaxResults(value);
125 return *this;
126 }
128
130
133 inline const Aws::String& GetTransactionId() const { return m_transactionId; }
134 inline bool TransactionIdHasBeenSet() const { return m_transactionIdHasBeenSet; }
135 template <typename TransactionIdT = Aws::String>
136 void SetTransactionId(TransactionIdT&& value) {
137 m_transactionIdHasBeenSet = true;
138 m_transactionId = std::forward<TransactionIdT>(value);
139 }
140 template <typename TransactionIdT = Aws::String>
141 GetTablesRequest& WithTransactionId(TransactionIdT&& value) {
142 SetTransactionId(std::forward<TransactionIdT>(value));
143 return *this;
144 }
146
148
153 inline const Aws::Utils::DateTime& GetQueryAsOfTime() const { return m_queryAsOfTime; }
154 inline bool QueryAsOfTimeHasBeenSet() const { return m_queryAsOfTimeHasBeenSet; }
155 template <typename QueryAsOfTimeT = Aws::Utils::DateTime>
156 void SetQueryAsOfTime(QueryAsOfTimeT&& value) {
157 m_queryAsOfTimeHasBeenSet = true;
158 m_queryAsOfTime = std::forward<QueryAsOfTimeT>(value);
159 }
160 template <typename QueryAsOfTimeT = Aws::Utils::DateTime>
161 GetTablesRequest& WithQueryAsOfTime(QueryAsOfTimeT&& value) {
162 SetQueryAsOfTime(std::forward<QueryAsOfTimeT>(value));
163 return *this;
164 }
166
168
173 inline const AuditContext& GetAuditContext() const { return m_auditContext; }
174 inline bool AuditContextHasBeenSet() const { return m_auditContextHasBeenSet; }
175 template <typename AuditContextT = AuditContext>
176 void SetAuditContext(AuditContextT&& value) {
177 m_auditContextHasBeenSet = true;
178 m_auditContext = std::forward<AuditContextT>(value);
179 }
180 template <typename AuditContextT = AuditContext>
181 GetTablesRequest& WithAuditContext(AuditContextT&& value) {
182 SetAuditContext(std::forward<AuditContextT>(value));
183 return *this;
184 }
186
188
196 inline TableResourceShareType GetResourceShareType() const { return m_resourceShareType; }
197 inline bool ResourceShareTypeHasBeenSet() const { return m_resourceShareTypeHasBeenSet; }
199 m_resourceShareTypeHasBeenSet = true;
200 m_resourceShareType = value;
201 }
204 return *this;
205 }
207
209
213 inline bool GetIncludeStatusDetails() const { return m_includeStatusDetails; }
214 inline bool IncludeStatusDetailsHasBeenSet() const { return m_includeStatusDetailsHasBeenSet; }
215 inline void SetIncludeStatusDetails(bool value) {
216 m_includeStatusDetailsHasBeenSet = true;
217 m_includeStatusDetails = value;
218 }
221 return *this;
222 }
224
226
234 inline const Aws::Vector<TableAttributes>& GetAttributesToGet() const { return m_attributesToGet; }
235 inline bool AttributesToGetHasBeenSet() const { return m_attributesToGetHasBeenSet; }
236 template <typename AttributesToGetT = Aws::Vector<TableAttributes>>
237 void SetAttributesToGet(AttributesToGetT&& value) {
238 m_attributesToGetHasBeenSet = true;
239 m_attributesToGet = std::forward<AttributesToGetT>(value);
240 }
241 template <typename AttributesToGetT = Aws::Vector<TableAttributes>>
242 GetTablesRequest& WithAttributesToGet(AttributesToGetT&& value) {
243 SetAttributesToGet(std::forward<AttributesToGetT>(value));
244 return *this;
245 }
247 m_attributesToGetHasBeenSet = true;
248 m_attributesToGet.push_back(value);
249 return *this;
250 }
252 private:
253 Aws::String m_catalogId;
254
255 Aws::String m_databaseName;
256
257 Aws::String m_expression;
258
259 Aws::String m_nextToken;
260
261 int m_maxResults{0};
262
263 Aws::String m_transactionId;
264
265 Aws::Utils::DateTime m_queryAsOfTime{};
266
267 AuditContext m_auditContext;
268
270
271 bool m_includeStatusDetails{false};
272
273 Aws::Vector<TableAttributes> m_attributesToGet;
274 bool m_catalogIdHasBeenSet = false;
275 bool m_databaseNameHasBeenSet = false;
276 bool m_expressionHasBeenSet = false;
277 bool m_nextTokenHasBeenSet = false;
278 bool m_maxResultsHasBeenSet = false;
279 bool m_transactionIdHasBeenSet = false;
280 bool m_queryAsOfTimeHasBeenSet = false;
281 bool m_auditContextHasBeenSet = false;
282 bool m_resourceShareTypeHasBeenSet = false;
283 bool m_includeStatusDetailsHasBeenSet = false;
284 bool m_attributesToGetHasBeenSet = false;
285};
286
287} // namespace Model
288} // namespace Glue
289} // namespace Aws
GetTablesRequest & WithAttributesToGet(AttributesToGetT &&value)
const Aws::String & GetCatalogId() const
void SetAuditContext(AuditContextT &&value)
AWS_GLUE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
TableResourceShareType GetResourceShareType() const
GetTablesRequest & WithResourceShareType(TableResourceShareType value)
void SetDatabaseName(DatabaseNameT &&value)
GetTablesRequest & WithQueryAsOfTime(QueryAsOfTimeT &&value)
void SetQueryAsOfTime(QueryAsOfTimeT &&value)
GetTablesRequest & WithIncludeStatusDetails(bool value)
void SetAttributesToGet(AttributesToGetT &&value)
GetTablesRequest & AddAttributesToGet(TableAttributes value)
void SetExpression(ExpressionT &&value)
const Aws::Utils::DateTime & GetQueryAsOfTime() const
AWS_GLUE_API GetTablesRequest()=default
GetTablesRequest & WithTransactionId(TransactionIdT &&value)
void SetResourceShareType(TableResourceShareType value)
void SetTransactionId(TransactionIdT &&value)
GetTablesRequest & WithExpression(ExpressionT &&value)
GetTablesRequest & WithDatabaseName(DatabaseNameT &&value)
GetTablesRequest & WithCatalogId(CatalogIdT &&value)
virtual const char * GetServiceRequestName() const override
GetTablesRequest & WithMaxResults(int value)
const Aws::Vector< TableAttributes > & GetAttributesToGet() const
const Aws::String & GetExpression() const
GetTablesRequest & WithNextToken(NextTokenT &&value)
void SetCatalogId(CatalogIdT &&value)
GetTablesRequest & WithAuditContext(AuditContextT &&value)
const Aws::String & GetNextToken() const
AWS_GLUE_API Aws::String SerializePayload() const override
void SetNextToken(NextTokenT &&value)
const Aws::String & GetDatabaseName() const
const AuditContext & GetAuditContext() const
const Aws::String & GetTransactionId() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector