AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
GetTableResult.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/s3tables/S3Tables_EXPORTS.h>
11#include <aws/s3tables/model/ManagedTableInformation.h>
12#include <aws/s3tables/model/OpenTableFormat.h>
13#include <aws/s3tables/model/TableType.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace S3Tables {
27namespace Model {
29 public:
30 AWS_S3TABLES_API GetTableResult() = default;
33
35
38 inline const Aws::String& GetName() const { return m_name; }
39 template <typename NameT = Aws::String>
40 void SetName(NameT&& value) {
41 m_nameHasBeenSet = true;
42 m_name = std::forward<NameT>(value);
43 }
44 template <typename NameT = Aws::String>
45 GetTableResult& WithName(NameT&& value) {
46 SetName(std::forward<NameT>(value));
47 return *this;
48 }
50
52
55 inline TableType GetType() const { return m_type; }
56 inline void SetType(TableType value) {
57 m_typeHasBeenSet = true;
58 m_type = value;
59 }
61 SetType(value);
62 return *this;
63 }
65
67
70 inline const Aws::String& GetTableARN() const { return m_tableARN; }
71 template <typename TableARNT = Aws::String>
72 void SetTableARN(TableARNT&& value) {
73 m_tableARNHasBeenSet = true;
74 m_tableARN = std::forward<TableARNT>(value);
75 }
76 template <typename TableARNT = Aws::String>
77 GetTableResult& WithTableARN(TableARNT&& value) {
78 SetTableARN(std::forward<TableARNT>(value));
79 return *this;
80 }
82
84
87 inline const Aws::Vector<Aws::String>& GetNamespace() const { return m_namespace; }
88 template <typename NamespaceT = Aws::Vector<Aws::String>>
89 void SetNamespace(NamespaceT&& value) {
90 m_namespaceHasBeenSet = true;
91 m_namespace = std::forward<NamespaceT>(value);
92 }
93 template <typename NamespaceT = Aws::Vector<Aws::String>>
94 GetTableResult& WithNamespace(NamespaceT&& value) {
95 SetNamespace(std::forward<NamespaceT>(value));
96 return *this;
97 }
98 template <typename NamespaceT = Aws::String>
99 GetTableResult& AddNamespace(NamespaceT&& value) {
100 m_namespaceHasBeenSet = true;
101 m_namespace.emplace_back(std::forward<NamespaceT>(value));
102 return *this;
103 }
105
107
110 inline const Aws::String& GetNamespaceId() const { return m_namespaceId; }
111 template <typename NamespaceIdT = Aws::String>
112 void SetNamespaceId(NamespaceIdT&& value) {
113 m_namespaceIdHasBeenSet = true;
114 m_namespaceId = std::forward<NamespaceIdT>(value);
115 }
116 template <typename NamespaceIdT = Aws::String>
117 GetTableResult& WithNamespaceId(NamespaceIdT&& value) {
118 SetNamespaceId(std::forward<NamespaceIdT>(value));
119 return *this;
120 }
122
124
127 inline const Aws::String& GetVersionToken() const { return m_versionToken; }
128 template <typename VersionTokenT = Aws::String>
129 void SetVersionToken(VersionTokenT&& value) {
130 m_versionTokenHasBeenSet = true;
131 m_versionToken = std::forward<VersionTokenT>(value);
132 }
133 template <typename VersionTokenT = Aws::String>
134 GetTableResult& WithVersionToken(VersionTokenT&& value) {
135 SetVersionToken(std::forward<VersionTokenT>(value));
136 return *this;
137 }
139
141
144 inline const Aws::String& GetMetadataLocation() const { return m_metadataLocation; }
145 template <typename MetadataLocationT = Aws::String>
146 void SetMetadataLocation(MetadataLocationT&& value) {
147 m_metadataLocationHasBeenSet = true;
148 m_metadataLocation = std::forward<MetadataLocationT>(value);
149 }
150 template <typename MetadataLocationT = Aws::String>
151 GetTableResult& WithMetadataLocation(MetadataLocationT&& value) {
152 SetMetadataLocation(std::forward<MetadataLocationT>(value));
153 return *this;
154 }
156
158
161 inline const Aws::String& GetWarehouseLocation() const { return m_warehouseLocation; }
162 template <typename WarehouseLocationT = Aws::String>
163 void SetWarehouseLocation(WarehouseLocationT&& value) {
164 m_warehouseLocationHasBeenSet = true;
165 m_warehouseLocation = std::forward<WarehouseLocationT>(value);
166 }
167 template <typename WarehouseLocationT = Aws::String>
168 GetTableResult& WithWarehouseLocation(WarehouseLocationT&& value) {
169 SetWarehouseLocation(std::forward<WarehouseLocationT>(value));
170 return *this;
171 }
173
175
178 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
179 template <typename CreatedAtT = Aws::Utils::DateTime>
180 void SetCreatedAt(CreatedAtT&& value) {
181 m_createdAtHasBeenSet = true;
182 m_createdAt = std::forward<CreatedAtT>(value);
183 }
184 template <typename CreatedAtT = Aws::Utils::DateTime>
185 GetTableResult& WithCreatedAt(CreatedAtT&& value) {
186 SetCreatedAt(std::forward<CreatedAtT>(value));
187 return *this;
188 }
190
192
195 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
196 template <typename CreatedByT = Aws::String>
197 void SetCreatedBy(CreatedByT&& value) {
198 m_createdByHasBeenSet = true;
199 m_createdBy = std::forward<CreatedByT>(value);
200 }
201 template <typename CreatedByT = Aws::String>
202 GetTableResult& WithCreatedBy(CreatedByT&& value) {
203 SetCreatedBy(std::forward<CreatedByT>(value));
204 return *this;
205 }
207
209
212 inline const Aws::String& GetManagedByService() const { return m_managedByService; }
213 template <typename ManagedByServiceT = Aws::String>
214 void SetManagedByService(ManagedByServiceT&& value) {
215 m_managedByServiceHasBeenSet = true;
216 m_managedByService = std::forward<ManagedByServiceT>(value);
217 }
218 template <typename ManagedByServiceT = Aws::String>
219 GetTableResult& WithManagedByService(ManagedByServiceT&& value) {
220 SetManagedByService(std::forward<ManagedByServiceT>(value));
221 return *this;
222 }
224
226
229 inline const Aws::Utils::DateTime& GetModifiedAt() const { return m_modifiedAt; }
230 template <typename ModifiedAtT = Aws::Utils::DateTime>
231 void SetModifiedAt(ModifiedAtT&& value) {
232 m_modifiedAtHasBeenSet = true;
233 m_modifiedAt = std::forward<ModifiedAtT>(value);
234 }
235 template <typename ModifiedAtT = Aws::Utils::DateTime>
236 GetTableResult& WithModifiedAt(ModifiedAtT&& value) {
237 SetModifiedAt(std::forward<ModifiedAtT>(value));
238 return *this;
239 }
241
243
246 inline const Aws::String& GetModifiedBy() const { return m_modifiedBy; }
247 template <typename ModifiedByT = Aws::String>
248 void SetModifiedBy(ModifiedByT&& value) {
249 m_modifiedByHasBeenSet = true;
250 m_modifiedBy = std::forward<ModifiedByT>(value);
251 }
252 template <typename ModifiedByT = Aws::String>
253 GetTableResult& WithModifiedBy(ModifiedByT&& value) {
254 SetModifiedBy(std::forward<ModifiedByT>(value));
255 return *this;
256 }
258
260
263 inline const Aws::String& GetOwnerAccountId() const { return m_ownerAccountId; }
264 template <typename OwnerAccountIdT = Aws::String>
265 void SetOwnerAccountId(OwnerAccountIdT&& value) {
266 m_ownerAccountIdHasBeenSet = true;
267 m_ownerAccountId = std::forward<OwnerAccountIdT>(value);
268 }
269 template <typename OwnerAccountIdT = Aws::String>
270 GetTableResult& WithOwnerAccountId(OwnerAccountIdT&& value) {
271 SetOwnerAccountId(std::forward<OwnerAccountIdT>(value));
272 return *this;
273 }
275
277
280 inline OpenTableFormat GetFormat() const { return m_format; }
281 inline void SetFormat(OpenTableFormat value) {
282 m_formatHasBeenSet = true;
283 m_format = value;
284 }
286 SetFormat(value);
287 return *this;
288 }
290
292
295 inline const Aws::String& GetTableBucketId() const { return m_tableBucketId; }
296 template <typename TableBucketIdT = Aws::String>
297 void SetTableBucketId(TableBucketIdT&& value) {
298 m_tableBucketIdHasBeenSet = true;
299 m_tableBucketId = std::forward<TableBucketIdT>(value);
300 }
301 template <typename TableBucketIdT = Aws::String>
302 GetTableResult& WithTableBucketId(TableBucketIdT&& value) {
303 SetTableBucketId(std::forward<TableBucketIdT>(value));
304 return *this;
305 }
307
309
313 inline const ManagedTableInformation& GetManagedTableInformation() const { return m_managedTableInformation; }
314 template <typename ManagedTableInformationT = ManagedTableInformation>
315 void SetManagedTableInformation(ManagedTableInformationT&& value) {
316 m_managedTableInformationHasBeenSet = true;
317 m_managedTableInformation = std::forward<ManagedTableInformationT>(value);
318 }
319 template <typename ManagedTableInformationT = ManagedTableInformation>
320 GetTableResult& WithManagedTableInformation(ManagedTableInformationT&& value) {
321 SetManagedTableInformation(std::forward<ManagedTableInformationT>(value));
322 return *this;
323 }
325
327
328 inline const Aws::String& GetRequestId() const { return m_requestId; }
329 template <typename RequestIdT = Aws::String>
330 void SetRequestId(RequestIdT&& value) {
331 m_requestIdHasBeenSet = true;
332 m_requestId = std::forward<RequestIdT>(value);
333 }
334 template <typename RequestIdT = Aws::String>
335 GetTableResult& WithRequestId(RequestIdT&& value) {
336 SetRequestId(std::forward<RequestIdT>(value));
337 return *this;
338 }
340 private:
341 Aws::String m_name;
342
344
345 Aws::String m_tableARN;
346
347 Aws::Vector<Aws::String> m_namespace;
348
349 Aws::String m_namespaceId;
350
351 Aws::String m_versionToken;
352
353 Aws::String m_metadataLocation;
354
355 Aws::String m_warehouseLocation;
356
357 Aws::Utils::DateTime m_createdAt{};
358
359 Aws::String m_createdBy;
360
361 Aws::String m_managedByService;
362
363 Aws::Utils::DateTime m_modifiedAt{};
364
365 Aws::String m_modifiedBy;
366
367 Aws::String m_ownerAccountId;
368
370
371 Aws::String m_tableBucketId;
372
373 ManagedTableInformation m_managedTableInformation;
374
375 Aws::String m_requestId;
376 bool m_nameHasBeenSet = false;
377 bool m_typeHasBeenSet = false;
378 bool m_tableARNHasBeenSet = false;
379 bool m_namespaceHasBeenSet = false;
380 bool m_namespaceIdHasBeenSet = false;
381 bool m_versionTokenHasBeenSet = false;
382 bool m_metadataLocationHasBeenSet = false;
383 bool m_warehouseLocationHasBeenSet = false;
384 bool m_createdAtHasBeenSet = false;
385 bool m_createdByHasBeenSet = false;
386 bool m_managedByServiceHasBeenSet = false;
387 bool m_modifiedAtHasBeenSet = false;
388 bool m_modifiedByHasBeenSet = false;
389 bool m_ownerAccountIdHasBeenSet = false;
390 bool m_formatHasBeenSet = false;
391 bool m_tableBucketIdHasBeenSet = false;
392 bool m_managedTableInformationHasBeenSet = false;
393 bool m_requestIdHasBeenSet = false;
394};
395
396} // namespace Model
397} // namespace S3Tables
398} // namespace Aws
const Aws::Utils::DateTime & GetCreatedAt() const
void SetNamespaceId(NamespaceIdT &&value)
const Aws::String & GetName() 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