AWS SDK for C++

AWS SDK for C++ Version 1.11.689

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
15#include <utility>
16
17namespace Aws {
18namespace Glue {
19namespace Model {
20
24 public:
25 AWS_GLUE_API GetTablesRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "GetTables"; }
32
33 AWS_GLUE_API Aws::String SerializePayload() const override;
34
36
38
42 inline const Aws::String& GetCatalogId() const { return m_catalogId; }
43 inline bool CatalogIdHasBeenSet() const { return m_catalogIdHasBeenSet; }
44 template <typename CatalogIdT = Aws::String>
45 void SetCatalogId(CatalogIdT&& value) {
46 m_catalogIdHasBeenSet = true;
47 m_catalogId = std::forward<CatalogIdT>(value);
48 }
49 template <typename CatalogIdT = Aws::String>
50 GetTablesRequest& WithCatalogId(CatalogIdT&& value) {
51 SetCatalogId(std::forward<CatalogIdT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetDatabaseName() const { return m_databaseName; }
62 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
63 template <typename DatabaseNameT = Aws::String>
64 void SetDatabaseName(DatabaseNameT&& value) {
65 m_databaseNameHasBeenSet = true;
66 m_databaseName = std::forward<DatabaseNameT>(value);
67 }
68 template <typename DatabaseNameT = Aws::String>
69 GetTablesRequest& WithDatabaseName(DatabaseNameT&& value) {
70 SetDatabaseName(std::forward<DatabaseNameT>(value));
71 return *this;
72 }
74
76
80 inline const Aws::String& GetExpression() const { return m_expression; }
81 inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; }
82 template <typename ExpressionT = Aws::String>
83 void SetExpression(ExpressionT&& value) {
84 m_expressionHasBeenSet = true;
85 m_expression = std::forward<ExpressionT>(value);
86 }
87 template <typename ExpressionT = Aws::String>
88 GetTablesRequest& WithExpression(ExpressionT&& value) {
89 SetExpression(std::forward<ExpressionT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetNextToken() const { return m_nextToken; }
99 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
100 template <typename NextTokenT = Aws::String>
101 void SetNextToken(NextTokenT&& value) {
102 m_nextTokenHasBeenSet = true;
103 m_nextToken = std::forward<NextTokenT>(value);
104 }
105 template <typename NextTokenT = Aws::String>
106 GetTablesRequest& WithNextToken(NextTokenT&& value) {
107 SetNextToken(std::forward<NextTokenT>(value));
108 return *this;
109 }
111
113
116 inline int GetMaxResults() const { return m_maxResults; }
117 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
118 inline void SetMaxResults(int value) {
119 m_maxResultsHasBeenSet = true;
120 m_maxResults = value;
121 }
122 inline GetTablesRequest& WithMaxResults(int value) {
123 SetMaxResults(value);
124 return *this;
125 }
127
129
132 inline const Aws::String& GetTransactionId() const { return m_transactionId; }
133 inline bool TransactionIdHasBeenSet() const { return m_transactionIdHasBeenSet; }
134 template <typename TransactionIdT = Aws::String>
135 void SetTransactionId(TransactionIdT&& value) {
136 m_transactionIdHasBeenSet = true;
137 m_transactionId = std::forward<TransactionIdT>(value);
138 }
139 template <typename TransactionIdT = Aws::String>
140 GetTablesRequest& WithTransactionId(TransactionIdT&& value) {
141 SetTransactionId(std::forward<TransactionIdT>(value));
142 return *this;
143 }
145
147
152 inline const Aws::Utils::DateTime& GetQueryAsOfTime() const { return m_queryAsOfTime; }
153 inline bool QueryAsOfTimeHasBeenSet() const { return m_queryAsOfTimeHasBeenSet; }
154 template <typename QueryAsOfTimeT = Aws::Utils::DateTime>
155 void SetQueryAsOfTime(QueryAsOfTimeT&& value) {
156 m_queryAsOfTimeHasBeenSet = true;
157 m_queryAsOfTime = std::forward<QueryAsOfTimeT>(value);
158 }
159 template <typename QueryAsOfTimeT = Aws::Utils::DateTime>
160 GetTablesRequest& WithQueryAsOfTime(QueryAsOfTimeT&& value) {
161 SetQueryAsOfTime(std::forward<QueryAsOfTimeT>(value));
162 return *this;
163 }
165
167
172 inline const AuditContext& GetAuditContext() const { return m_auditContext; }
173 inline bool AuditContextHasBeenSet() const { return m_auditContextHasBeenSet; }
174 template <typename AuditContextT = AuditContext>
175 void SetAuditContext(AuditContextT&& value) {
176 m_auditContextHasBeenSet = true;
177 m_auditContext = std::forward<AuditContextT>(value);
178 }
179 template <typename AuditContextT = AuditContext>
180 GetTablesRequest& WithAuditContext(AuditContextT&& value) {
181 SetAuditContext(std::forward<AuditContextT>(value));
182 return *this;
183 }
185
187
191 inline bool GetIncludeStatusDetails() const { return m_includeStatusDetails; }
192 inline bool IncludeStatusDetailsHasBeenSet() const { return m_includeStatusDetailsHasBeenSet; }
193 inline void SetIncludeStatusDetails(bool value) {
194 m_includeStatusDetailsHasBeenSet = true;
195 m_includeStatusDetails = value;
196 }
199 return *this;
200 }
202
204
212 inline const Aws::Vector<TableAttributes>& GetAttributesToGet() const { return m_attributesToGet; }
213 inline bool AttributesToGetHasBeenSet() const { return m_attributesToGetHasBeenSet; }
214 template <typename AttributesToGetT = Aws::Vector<TableAttributes>>
215 void SetAttributesToGet(AttributesToGetT&& value) {
216 m_attributesToGetHasBeenSet = true;
217 m_attributesToGet = std::forward<AttributesToGetT>(value);
218 }
219 template <typename AttributesToGetT = Aws::Vector<TableAttributes>>
220 GetTablesRequest& WithAttributesToGet(AttributesToGetT&& value) {
221 SetAttributesToGet(std::forward<AttributesToGetT>(value));
222 return *this;
223 }
225 m_attributesToGetHasBeenSet = true;
226 m_attributesToGet.push_back(value);
227 return *this;
228 }
230 private:
231 Aws::String m_catalogId;
232 bool m_catalogIdHasBeenSet = false;
233
234 Aws::String m_databaseName;
235 bool m_databaseNameHasBeenSet = false;
236
237 Aws::String m_expression;
238 bool m_expressionHasBeenSet = false;
239
240 Aws::String m_nextToken;
241 bool m_nextTokenHasBeenSet = false;
242
243 int m_maxResults{0};
244 bool m_maxResultsHasBeenSet = false;
245
246 Aws::String m_transactionId;
247 bool m_transactionIdHasBeenSet = false;
248
249 Aws::Utils::DateTime m_queryAsOfTime{};
250 bool m_queryAsOfTimeHasBeenSet = false;
251
252 AuditContext m_auditContext;
253 bool m_auditContextHasBeenSet = false;
254
255 bool m_includeStatusDetails{false};
256 bool m_includeStatusDetailsHasBeenSet = false;
257
258 Aws::Vector<TableAttributes> m_attributesToGet;
259 bool m_attributesToGetHasBeenSet = false;
260};
261
262} // namespace Model
263} // namespace Glue
264} // namespace Aws
GetTablesRequest & WithAttributesToGet(AttributesToGetT &&value)
const Aws::String & GetCatalogId() const
void SetAuditContext(AuditContextT &&value)
AWS_GLUE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
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 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