AWS SDK for C++

AWS SDK for C++ Version 1.11.838

Loading...
Searching...
No Matches
GetTableRequest.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 GetTableRequest() = 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 "GetTable"; }
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 GetTableRequest& 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 GetTableRequest& WithDatabaseName(DatabaseNameT&& value) {
70 SetDatabaseName(std::forward<DatabaseNameT>(value));
71 return *this;
72 }
74
76
80 inline const Aws::String& GetName() const { return m_name; }
81 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
82 template <typename NameT = Aws::String>
83 void SetName(NameT&& value) {
84 m_nameHasBeenSet = true;
85 m_name = std::forward<NameT>(value);
86 }
87 template <typename NameT = Aws::String>
88 GetTableRequest& WithName(NameT&& value) {
89 SetName(std::forward<NameT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetTransactionId() const { return m_transactionId; }
99 inline bool TransactionIdHasBeenSet() const { return m_transactionIdHasBeenSet; }
100 template <typename TransactionIdT = Aws::String>
101 void SetTransactionId(TransactionIdT&& value) {
102 m_transactionIdHasBeenSet = true;
103 m_transactionId = std::forward<TransactionIdT>(value);
104 }
105 template <typename TransactionIdT = Aws::String>
106 GetTableRequest& WithTransactionId(TransactionIdT&& value) {
107 SetTransactionId(std::forward<TransactionIdT>(value));
108 return *this;
109 }
111
113
118 inline const Aws::Utils::DateTime& GetQueryAsOfTime() const { return m_queryAsOfTime; }
119 inline bool QueryAsOfTimeHasBeenSet() const { return m_queryAsOfTimeHasBeenSet; }
120 template <typename QueryAsOfTimeT = Aws::Utils::DateTime>
121 void SetQueryAsOfTime(QueryAsOfTimeT&& value) {
122 m_queryAsOfTimeHasBeenSet = true;
123 m_queryAsOfTime = std::forward<QueryAsOfTimeT>(value);
124 }
125 template <typename QueryAsOfTimeT = Aws::Utils::DateTime>
126 GetTableRequest& WithQueryAsOfTime(QueryAsOfTimeT&& value) {
127 SetQueryAsOfTime(std::forward<QueryAsOfTimeT>(value));
128 return *this;
129 }
131
133
138 inline const AuditContext& GetAuditContext() const { return m_auditContext; }
139 inline bool AuditContextHasBeenSet() const { return m_auditContextHasBeenSet; }
140 template <typename AuditContextT = AuditContext>
141 void SetAuditContext(AuditContextT&& value) {
142 m_auditContextHasBeenSet = true;
143 m_auditContext = std::forward<AuditContextT>(value);
144 }
145 template <typename AuditContextT = AuditContext>
146 GetTableRequest& WithAuditContext(AuditContextT&& value) {
147 SetAuditContext(std::forward<AuditContextT>(value));
148 return *this;
149 }
151
153
157 inline bool GetIncludeStatusDetails() const { return m_includeStatusDetails; }
158 inline bool IncludeStatusDetailsHasBeenSet() const { return m_includeStatusDetailsHasBeenSet; }
159 inline void SetIncludeStatusDetails(bool value) {
160 m_includeStatusDetailsHasBeenSet = true;
161 m_includeStatusDetails = value;
162 }
165 return *this;
166 }
168
170
180 inline const Aws::Vector<TableAttributes>& GetAttributesToGet() const { return m_attributesToGet; }
181 inline bool AttributesToGetHasBeenSet() const { return m_attributesToGetHasBeenSet; }
182 template <typename AttributesToGetT = Aws::Vector<TableAttributes>>
183 void SetAttributesToGet(AttributesToGetT&& value) {
184 m_attributesToGetHasBeenSet = true;
185 m_attributesToGet = std::forward<AttributesToGetT>(value);
186 }
187 template <typename AttributesToGetT = Aws::Vector<TableAttributes>>
188 GetTableRequest& WithAttributesToGet(AttributesToGetT&& value) {
189 SetAttributesToGet(std::forward<AttributesToGetT>(value));
190 return *this;
191 }
193 m_attributesToGetHasBeenSet = true;
194 m_attributesToGet.push_back(value);
195 return *this;
196 }
198 private:
199 Aws::String m_catalogId;
200
201 Aws::String m_databaseName;
202
203 Aws::String m_name;
204
205 Aws::String m_transactionId;
206
207 Aws::Utils::DateTime m_queryAsOfTime{};
208
209 AuditContext m_auditContext;
210
211 bool m_includeStatusDetails{false};
212
213 Aws::Vector<TableAttributes> m_attributesToGet;
214 bool m_catalogIdHasBeenSet = false;
215 bool m_databaseNameHasBeenSet = false;
216 bool m_nameHasBeenSet = false;
217 bool m_transactionIdHasBeenSet = false;
218 bool m_queryAsOfTimeHasBeenSet = false;
219 bool m_auditContextHasBeenSet = false;
220 bool m_includeStatusDetailsHasBeenSet = false;
221 bool m_attributesToGetHasBeenSet = false;
222};
223
224} // namespace Model
225} // namespace Glue
226} // namespace Aws
GetTableRequest & WithDatabaseName(DatabaseNameT &&value)
const Aws::String & GetName() const
GetTableRequest & WithQueryAsOfTime(QueryAsOfTimeT &&value)
const AuditContext & GetAuditContext() const
const Aws::Vector< TableAttributes > & GetAttributesToGet() const
void SetTransactionId(TransactionIdT &&value)
void SetCatalogId(CatalogIdT &&value)
GetTableRequest & WithIncludeStatusDetails(bool value)
AWS_GLUE_API GetTableRequest()=default
GetTableRequest & WithAuditContext(AuditContextT &&value)
GetTableRequest & WithCatalogId(CatalogIdT &&value)
GetTableRequest & WithAttributesToGet(AttributesToGetT &&value)
void SetAuditContext(AuditContextT &&value)
virtual const char * GetServiceRequestName() const override
AWS_GLUE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetTableRequest & WithName(NameT &&value)
const Aws::Utils::DateTime & GetQueryAsOfTime() const
void SetDatabaseName(DatabaseNameT &&value)
const Aws::String & GetTransactionId() const
const Aws::String & GetCatalogId() const
const Aws::String & GetDatabaseName() const
AWS_GLUE_API Aws::String SerializePayload() const override
GetTableRequest & WithTransactionId(TransactionIdT &&value)
void SetQueryAsOfTime(QueryAsOfTimeT &&value)
void SetAttributesToGet(AttributesToGetT &&value)
GetTableRequest & AddAttributesToGet(TableAttributes value)
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