AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
GetTableResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/s3tables/S3Tables_EXPORTS.h>
12#include <aws/s3tables/model/ManagedTableInformation.h>
13#include <aws/s3tables/model/OpenTableFormat.h>
14#include <aws/s3tables/model/TableType.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace S3Tables {
28namespace Model {
30 public:
31 AWS_S3TABLES_API GetTableResult() = default;
34
36
39 inline const Aws::String& GetName() const { return m_name; }
40 template <typename NameT = Aws::String>
41 void SetName(NameT&& value) {
42 m_nameHasBeenSet = true;
43 m_name = std::forward<NameT>(value);
44 }
45 template <typename NameT = Aws::String>
46 GetTableResult& WithName(NameT&& value) {
47 SetName(std::forward<NameT>(value));
48 return *this;
49 }
51
53
56 inline TableType GetType() const { return m_type; }
57 inline void SetType(TableType value) {
58 m_typeHasBeenSet = true;
59 m_type = value;
60 }
62 SetType(value);
63 return *this;
64 }
66
68
71 inline const Aws::String& GetTableARN() const { return m_tableARN; }
72 template <typename TableARNT = Aws::String>
73 void SetTableARN(TableARNT&& value) {
74 m_tableARNHasBeenSet = true;
75 m_tableARN = std::forward<TableARNT>(value);
76 }
77 template <typename TableARNT = Aws::String>
78 GetTableResult& WithTableARN(TableARNT&& value) {
79 SetTableARN(std::forward<TableARNT>(value));
80 return *this;
81 }
83
85
88 inline const Aws::Vector<Aws::String>& GetNamespace() const { return m_namespace; }
89 template <typename NamespaceT = Aws::Vector<Aws::String>>
90 void SetNamespace(NamespaceT&& value) {
91 m_namespaceHasBeenSet = true;
92 m_namespace = std::forward<NamespaceT>(value);
93 }
94 template <typename NamespaceT = Aws::Vector<Aws::String>>
95 GetTableResult& WithNamespace(NamespaceT&& value) {
96 SetNamespace(std::forward<NamespaceT>(value));
97 return *this;
98 }
99 template <typename NamespaceT = Aws::String>
100 GetTableResult& AddNamespace(NamespaceT&& value) {
101 m_namespaceHasBeenSet = true;
102 m_namespace.emplace_back(std::forward<NamespaceT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::String& GetNamespaceId() const { return m_namespaceId; }
112 template <typename NamespaceIdT = Aws::String>
113 void SetNamespaceId(NamespaceIdT&& value) {
114 m_namespaceIdHasBeenSet = true;
115 m_namespaceId = std::forward<NamespaceIdT>(value);
116 }
117 template <typename NamespaceIdT = Aws::String>
118 GetTableResult& WithNamespaceId(NamespaceIdT&& value) {
119 SetNamespaceId(std::forward<NamespaceIdT>(value));
120 return *this;
121 }
123
125
128 inline const Aws::String& GetVersionToken() const { return m_versionToken; }
129 template <typename VersionTokenT = Aws::String>
130 void SetVersionToken(VersionTokenT&& value) {
131 m_versionTokenHasBeenSet = true;
132 m_versionToken = std::forward<VersionTokenT>(value);
133 }
134 template <typename VersionTokenT = Aws::String>
135 GetTableResult& WithVersionToken(VersionTokenT&& value) {
136 SetVersionToken(std::forward<VersionTokenT>(value));
137 return *this;
138 }
140
142
145 inline const Aws::String& GetMetadataLocation() const { return m_metadataLocation; }
146 template <typename MetadataLocationT = Aws::String>
147 void SetMetadataLocation(MetadataLocationT&& value) {
148 m_metadataLocationHasBeenSet = true;
149 m_metadataLocation = std::forward<MetadataLocationT>(value);
150 }
151 template <typename MetadataLocationT = Aws::String>
152 GetTableResult& WithMetadataLocation(MetadataLocationT&& value) {
153 SetMetadataLocation(std::forward<MetadataLocationT>(value));
154 return *this;
155 }
157
159
162 inline const Aws::String& GetWarehouseLocation() const { return m_warehouseLocation; }
163 template <typename WarehouseLocationT = Aws::String>
164 void SetWarehouseLocation(WarehouseLocationT&& value) {
165 m_warehouseLocationHasBeenSet = true;
166 m_warehouseLocation = std::forward<WarehouseLocationT>(value);
167 }
168 template <typename WarehouseLocationT = Aws::String>
169 GetTableResult& WithWarehouseLocation(WarehouseLocationT&& value) {
170 SetWarehouseLocation(std::forward<WarehouseLocationT>(value));
171 return *this;
172 }
174
176
179 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
180 template <typename CreatedAtT = Aws::Utils::DateTime>
181 void SetCreatedAt(CreatedAtT&& value) {
182 m_createdAtHasBeenSet = true;
183 m_createdAt = std::forward<CreatedAtT>(value);
184 }
185 template <typename CreatedAtT = Aws::Utils::DateTime>
186 GetTableResult& WithCreatedAt(CreatedAtT&& value) {
187 SetCreatedAt(std::forward<CreatedAtT>(value));
188 return *this;
189 }
191
193
196 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
197 template <typename CreatedByT = Aws::String>
198 void SetCreatedBy(CreatedByT&& value) {
199 m_createdByHasBeenSet = true;
200 m_createdBy = std::forward<CreatedByT>(value);
201 }
202 template <typename CreatedByT = Aws::String>
203 GetTableResult& WithCreatedBy(CreatedByT&& value) {
204 SetCreatedBy(std::forward<CreatedByT>(value));
205 return *this;
206 }
208
210
213 inline const Aws::String& GetManagedByService() const { return m_managedByService; }
214 template <typename ManagedByServiceT = Aws::String>
215 void SetManagedByService(ManagedByServiceT&& value) {
216 m_managedByServiceHasBeenSet = true;
217 m_managedByService = std::forward<ManagedByServiceT>(value);
218 }
219 template <typename ManagedByServiceT = Aws::String>
220 GetTableResult& WithManagedByService(ManagedByServiceT&& value) {
221 SetManagedByService(std::forward<ManagedByServiceT>(value));
222 return *this;
223 }
225
227
230 inline const Aws::Utils::DateTime& GetModifiedAt() const { return m_modifiedAt; }
231 template <typename ModifiedAtT = Aws::Utils::DateTime>
232 void SetModifiedAt(ModifiedAtT&& value) {
233 m_modifiedAtHasBeenSet = true;
234 m_modifiedAt = std::forward<ModifiedAtT>(value);
235 }
236 template <typename ModifiedAtT = Aws::Utils::DateTime>
237 GetTableResult& WithModifiedAt(ModifiedAtT&& value) {
238 SetModifiedAt(std::forward<ModifiedAtT>(value));
239 return *this;
240 }
242
244
247 inline const Aws::String& GetModifiedBy() const { return m_modifiedBy; }
248 template <typename ModifiedByT = Aws::String>
249 void SetModifiedBy(ModifiedByT&& value) {
250 m_modifiedByHasBeenSet = true;
251 m_modifiedBy = std::forward<ModifiedByT>(value);
252 }
253 template <typename ModifiedByT = Aws::String>
254 GetTableResult& WithModifiedBy(ModifiedByT&& value) {
255 SetModifiedBy(std::forward<ModifiedByT>(value));
256 return *this;
257 }
259
261
264 inline const Aws::String& GetOwnerAccountId() const { return m_ownerAccountId; }
265 template <typename OwnerAccountIdT = Aws::String>
266 void SetOwnerAccountId(OwnerAccountIdT&& value) {
267 m_ownerAccountIdHasBeenSet = true;
268 m_ownerAccountId = std::forward<OwnerAccountIdT>(value);
269 }
270 template <typename OwnerAccountIdT = Aws::String>
271 GetTableResult& WithOwnerAccountId(OwnerAccountIdT&& value) {
272 SetOwnerAccountId(std::forward<OwnerAccountIdT>(value));
273 return *this;
274 }
276
278
281 inline OpenTableFormat GetFormat() const { return m_format; }
282 inline void SetFormat(OpenTableFormat value) {
283 m_formatHasBeenSet = true;
284 m_format = value;
285 }
287 SetFormat(value);
288 return *this;
289 }
291
293
296 inline const Aws::String& GetTableBucketId() const { return m_tableBucketId; }
297 template <typename TableBucketIdT = Aws::String>
298 void SetTableBucketId(TableBucketIdT&& value) {
299 m_tableBucketIdHasBeenSet = true;
300 m_tableBucketId = std::forward<TableBucketIdT>(value);
301 }
302 template <typename TableBucketIdT = Aws::String>
303 GetTableResult& WithTableBucketId(TableBucketIdT&& value) {
304 SetTableBucketId(std::forward<TableBucketIdT>(value));
305 return *this;
306 }
308
310
314 inline const ManagedTableInformation& GetManagedTableInformation() const { return m_managedTableInformation; }
315 template <typename ManagedTableInformationT = ManagedTableInformation>
316 void SetManagedTableInformation(ManagedTableInformationT&& value) {
317 m_managedTableInformationHasBeenSet = true;
318 m_managedTableInformation = std::forward<ManagedTableInformationT>(value);
319 }
320 template <typename ManagedTableInformationT = ManagedTableInformation>
321 GetTableResult& WithManagedTableInformation(ManagedTableInformationT&& value) {
322 SetManagedTableInformation(std::forward<ManagedTableInformationT>(value));
323 return *this;
324 }
326
328
329 inline const Aws::String& GetRequestId() const { return m_requestId; }
330 template <typename RequestIdT = Aws::String>
331 void SetRequestId(RequestIdT&& value) {
332 m_requestIdHasBeenSet = true;
333 m_requestId = std::forward<RequestIdT>(value);
334 }
335 template <typename RequestIdT = Aws::String>
336 GetTableResult& WithRequestId(RequestIdT&& value) {
337 SetRequestId(std::forward<RequestIdT>(value));
338 return *this;
339 }
341 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
342
343 private:
344 Aws::String m_name;
345
347
348 Aws::String m_tableARN;
349
350 Aws::Vector<Aws::String> m_namespace;
351
352 Aws::String m_namespaceId;
353
354 Aws::String m_versionToken;
355
356 Aws::String m_metadataLocation;
357
358 Aws::String m_warehouseLocation;
359
360 Aws::Utils::DateTime m_createdAt{};
361
362 Aws::String m_createdBy;
363
364 Aws::String m_managedByService;
365
366 Aws::Utils::DateTime m_modifiedAt{};
367
368 Aws::String m_modifiedBy;
369
370 Aws::String m_ownerAccountId;
371
373
374 Aws::String m_tableBucketId;
375
376 ManagedTableInformation m_managedTableInformation;
377
378 Aws::String m_requestId;
379 Aws::Http::HttpResponseCode m_HttpResponseCode;
380 bool m_nameHasBeenSet = false;
381 bool m_typeHasBeenSet = false;
382 bool m_tableARNHasBeenSet = false;
383 bool m_namespaceHasBeenSet = false;
384 bool m_namespaceIdHasBeenSet = false;
385 bool m_versionTokenHasBeenSet = false;
386 bool m_metadataLocationHasBeenSet = false;
387 bool m_warehouseLocationHasBeenSet = false;
388 bool m_createdAtHasBeenSet = false;
389 bool m_createdByHasBeenSet = false;
390 bool m_managedByServiceHasBeenSet = false;
391 bool m_modifiedAtHasBeenSet = false;
392 bool m_modifiedByHasBeenSet = false;
393 bool m_ownerAccountIdHasBeenSet = false;
394 bool m_formatHasBeenSet = false;
395 bool m_tableBucketIdHasBeenSet = false;
396 bool m_managedTableInformationHasBeenSet = false;
397 bool m_requestIdHasBeenSet = false;
398};
399
400} // namespace Model
401} // namespace S3Tables
402} // namespace Aws
const Aws::Utils::DateTime & GetCreatedAt() const
void SetNamespaceId(NamespaceIdT &&value)
const Aws::String & GetName() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetTableResult & WithModifiedBy(ModifiedByT &&value)
void SetManagedTableInformation(ManagedTableInformationT &&value)
GetTableResult & WithWarehouseLocation(WarehouseLocationT &&value)
AWS_S3TABLES_API GetTableResult()=default
const Aws::String & GetVersionToken() const
GetTableResult & WithNamespaceId(NamespaceIdT &&value)
const Aws::String & GetNamespaceId() const
void SetMetadataLocation(MetadataLocationT &&value)
GetTableResult & WithOwnerAccountId(OwnerAccountIdT &&value)
GetTableResult & WithType(TableType value)
void SetManagedByService(ManagedByServiceT &&value)
GetTableResult & AddNamespace(NamespaceT &&value)
void SetVersionToken(VersionTokenT &&value)
const Aws::String & GetMetadataLocation() const
const Aws::Vector< Aws::String > & GetNamespace() const
GetTableResult & WithVersionToken(VersionTokenT &&value)
const Aws::String & GetRequestId() const
GetTableResult & WithNamespace(NamespaceT &&value)
void SetCreatedBy(CreatedByT &&value)
const Aws::Utils::DateTime & GetModifiedAt() const
const Aws::String & GetCreatedBy() const
GetTableResult & WithModifiedAt(ModifiedAtT &&value)
GetTableResult & WithManagedByService(ManagedByServiceT &&value)
GetTableResult & WithMetadataLocation(MetadataLocationT &&value)
void SetFormat(OpenTableFormat value)
GetTableResult & WithCreatedBy(CreatedByT &&value)
void SetTableBucketId(TableBucketIdT &&value)
GetTableResult & WithFormat(OpenTableFormat value)
void SetWarehouseLocation(WarehouseLocationT &&value)
const Aws::String & GetTableBucketId() const
void SetOwnerAccountId(OwnerAccountIdT &&value)
void SetCreatedAt(CreatedAtT &&value)
const Aws::String & GetTableARN() const
const ManagedTableInformation & GetManagedTableInformation() const
GetTableResult & WithManagedTableInformation(ManagedTableInformationT &&value)
const Aws::String & GetWarehouseLocation() const
AWS_S3TABLES_API GetTableResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_S3TABLES_API GetTableResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetTableResult & WithCreatedAt(CreatedAtT &&value)
const Aws::String & GetManagedByService() const
const Aws::String & GetOwnerAccountId() const
void SetRequestId(RequestIdT &&value)
GetTableResult & WithTableBucketId(TableBucketIdT &&value)
void SetTableARN(TableARNT &&value)
void SetNamespace(NamespaceT &&value)
void SetModifiedAt(ModifiedAtT &&value)
GetTableResult & WithRequestId(RequestIdT &&value)
GetTableResult & WithName(NameT &&value)
GetTableResult & WithTableARN(TableARNT &&value)
const Aws::String & GetModifiedBy() const
void SetModifiedBy(ModifiedByT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue