AWS SDK for C++

AWS SDK for C++ Version 1.11.787

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/keyspaces/Keyspaces_EXPORTS.h>
12#include <aws/keyspaces/model/CapacitySpecificationSummary.h>
13#include <aws/keyspaces/model/CdcSpecificationSummary.h>
14#include <aws/keyspaces/model/ClientSideTimestamps.h>
15#include <aws/keyspaces/model/Comment.h>
16#include <aws/keyspaces/model/EncryptionSpecification.h>
17#include <aws/keyspaces/model/PointInTimeRecoverySummary.h>
18#include <aws/keyspaces/model/ReplicaSpecificationSummary.h>
19#include <aws/keyspaces/model/SchemaDefinition.h>
20#include <aws/keyspaces/model/TableStatus.h>
21#include <aws/keyspaces/model/TimeToLive.h>
22#include <aws/keyspaces/model/WarmThroughputSpecificationSummary.h>
23
24#include <utility>
25
26namespace Aws {
27template <typename RESULT_TYPE>
28class AmazonWebServiceResult;
29
30namespace Utils {
31namespace Json {
32class JsonValue;
33} // namespace Json
34} // namespace Utils
35namespace Keyspaces {
36namespace Model {
38 public:
39 AWS_KEYSPACES_API GetTableResult() = default;
42
44
47 inline const Aws::String& GetKeyspaceName() const { return m_keyspaceName; }
48 template <typename KeyspaceNameT = Aws::String>
49 void SetKeyspaceName(KeyspaceNameT&& value) {
50 m_keyspaceNameHasBeenSet = true;
51 m_keyspaceName = std::forward<KeyspaceNameT>(value);
52 }
53 template <typename KeyspaceNameT = Aws::String>
54 GetTableResult& WithKeyspaceName(KeyspaceNameT&& value) {
55 SetKeyspaceName(std::forward<KeyspaceNameT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetTableName() const { return m_tableName; }
65 template <typename TableNameT = Aws::String>
66 void SetTableName(TableNameT&& value) {
67 m_tableNameHasBeenSet = true;
68 m_tableName = std::forward<TableNameT>(value);
69 }
70 template <typename TableNameT = Aws::String>
71 GetTableResult& WithTableName(TableNameT&& value) {
72 SetTableName(std::forward<TableNameT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
82 template <typename ResourceArnT = Aws::String>
83 void SetResourceArn(ResourceArnT&& value) {
84 m_resourceArnHasBeenSet = true;
85 m_resourceArn = std::forward<ResourceArnT>(value);
86 }
87 template <typename ResourceArnT = Aws::String>
88 GetTableResult& WithResourceArn(ResourceArnT&& value) {
89 SetResourceArn(std::forward<ResourceArnT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::Utils::DateTime& GetCreationTimestamp() const { return m_creationTimestamp; }
99 template <typename CreationTimestampT = Aws::Utils::DateTime>
100 void SetCreationTimestamp(CreationTimestampT&& value) {
101 m_creationTimestampHasBeenSet = true;
102 m_creationTimestamp = std::forward<CreationTimestampT>(value);
103 }
104 template <typename CreationTimestampT = Aws::Utils::DateTime>
105 GetTableResult& WithCreationTimestamp(CreationTimestampT&& value) {
106 SetCreationTimestamp(std::forward<CreationTimestampT>(value));
107 return *this;
108 }
110
112
115 inline TableStatus GetStatus() const { return m_status; }
116 inline void SetStatus(TableStatus value) {
117 m_statusHasBeenSet = true;
118 m_status = value;
119 }
121 SetStatus(value);
122 return *this;
123 }
125
127
130 inline const SchemaDefinition& GetSchemaDefinition() const { return m_schemaDefinition; }
131 template <typename SchemaDefinitionT = SchemaDefinition>
132 void SetSchemaDefinition(SchemaDefinitionT&& value) {
133 m_schemaDefinitionHasBeenSet = true;
134 m_schemaDefinition = std::forward<SchemaDefinitionT>(value);
135 }
136 template <typename SchemaDefinitionT = SchemaDefinition>
137 GetTableResult& WithSchemaDefinition(SchemaDefinitionT&& value) {
138 SetSchemaDefinition(std::forward<SchemaDefinitionT>(value));
139 return *this;
140 }
142
144
149 inline const CapacitySpecificationSummary& GetCapacitySpecification() const { return m_capacitySpecification; }
150 template <typename CapacitySpecificationT = CapacitySpecificationSummary>
151 void SetCapacitySpecification(CapacitySpecificationT&& value) {
152 m_capacitySpecificationHasBeenSet = true;
153 m_capacitySpecification = std::forward<CapacitySpecificationT>(value);
154 }
155 template <typename CapacitySpecificationT = CapacitySpecificationSummary>
156 GetTableResult& WithCapacitySpecification(CapacitySpecificationT&& value) {
157 SetCapacitySpecification(std::forward<CapacitySpecificationT>(value));
158 return *this;
159 }
161
163
166 inline const EncryptionSpecification& GetEncryptionSpecification() const { return m_encryptionSpecification; }
167 template <typename EncryptionSpecificationT = EncryptionSpecification>
168 void SetEncryptionSpecification(EncryptionSpecificationT&& value) {
169 m_encryptionSpecificationHasBeenSet = true;
170 m_encryptionSpecification = std::forward<EncryptionSpecificationT>(value);
171 }
172 template <typename EncryptionSpecificationT = EncryptionSpecification>
173 GetTableResult& WithEncryptionSpecification(EncryptionSpecificationT&& value) {
174 SetEncryptionSpecification(std::forward<EncryptionSpecificationT>(value));
175 return *this;
176 }
178
180
183 inline const PointInTimeRecoverySummary& GetPointInTimeRecovery() const { return m_pointInTimeRecovery; }
184 template <typename PointInTimeRecoveryT = PointInTimeRecoverySummary>
185 void SetPointInTimeRecovery(PointInTimeRecoveryT&& value) {
186 m_pointInTimeRecoveryHasBeenSet = true;
187 m_pointInTimeRecovery = std::forward<PointInTimeRecoveryT>(value);
188 }
189 template <typename PointInTimeRecoveryT = PointInTimeRecoverySummary>
190 GetTableResult& WithPointInTimeRecovery(PointInTimeRecoveryT&& value) {
191 SetPointInTimeRecovery(std::forward<PointInTimeRecoveryT>(value));
192 return *this;
193 }
195
197
200 inline const TimeToLive& GetTtl() const { return m_ttl; }
201 template <typename TtlT = TimeToLive>
202 void SetTtl(TtlT&& value) {
203 m_ttlHasBeenSet = true;
204 m_ttl = std::forward<TtlT>(value);
205 }
206 template <typename TtlT = TimeToLive>
207 GetTableResult& WithTtl(TtlT&& value) {
208 SetTtl(std::forward<TtlT>(value));
209 return *this;
210 }
212
214
217 inline int GetDefaultTimeToLive() const { return m_defaultTimeToLive; }
218 inline void SetDefaultTimeToLive(int value) {
219 m_defaultTimeToLiveHasBeenSet = true;
220 m_defaultTimeToLive = value;
221 }
224 return *this;
225 }
227
229
232 inline const Comment& GetComment() const { return m_comment; }
233 template <typename CommentT = Comment>
234 void SetComment(CommentT&& value) {
235 m_commentHasBeenSet = true;
236 m_comment = std::forward<CommentT>(value);
237 }
238 template <typename CommentT = Comment>
239 GetTableResult& WithComment(CommentT&& value) {
240 SetComment(std::forward<CommentT>(value));
241 return *this;
242 }
244
246
249 inline const ClientSideTimestamps& GetClientSideTimestamps() const { return m_clientSideTimestamps; }
250 template <typename ClientSideTimestampsT = ClientSideTimestamps>
251 void SetClientSideTimestamps(ClientSideTimestampsT&& value) {
252 m_clientSideTimestampsHasBeenSet = true;
253 m_clientSideTimestamps = std::forward<ClientSideTimestampsT>(value);
254 }
255 template <typename ClientSideTimestampsT = ClientSideTimestamps>
256 GetTableResult& WithClientSideTimestamps(ClientSideTimestampsT&& value) {
257 SetClientSideTimestamps(std::forward<ClientSideTimestampsT>(value));
258 return *this;
259 }
261
263
267 inline const Aws::Vector<ReplicaSpecificationSummary>& GetReplicaSpecifications() const { return m_replicaSpecifications; }
268 template <typename ReplicaSpecificationsT = Aws::Vector<ReplicaSpecificationSummary>>
269 void SetReplicaSpecifications(ReplicaSpecificationsT&& value) {
270 m_replicaSpecificationsHasBeenSet = true;
271 m_replicaSpecifications = std::forward<ReplicaSpecificationsT>(value);
272 }
273 template <typename ReplicaSpecificationsT = Aws::Vector<ReplicaSpecificationSummary>>
274 GetTableResult& WithReplicaSpecifications(ReplicaSpecificationsT&& value) {
275 SetReplicaSpecifications(std::forward<ReplicaSpecificationsT>(value));
276 return *this;
277 }
278 template <typename ReplicaSpecificationsT = ReplicaSpecificationSummary>
279 GetTableResult& AddReplicaSpecifications(ReplicaSpecificationsT&& value) {
280 m_replicaSpecificationsHasBeenSet = true;
281 m_replicaSpecifications.emplace_back(std::forward<ReplicaSpecificationsT>(value));
282 return *this;
283 }
285
287
290 inline const Aws::String& GetLatestStreamArn() const { return m_latestStreamArn; }
291 template <typename LatestStreamArnT = Aws::String>
292 void SetLatestStreamArn(LatestStreamArnT&& value) {
293 m_latestStreamArnHasBeenSet = true;
294 m_latestStreamArn = std::forward<LatestStreamArnT>(value);
295 }
296 template <typename LatestStreamArnT = Aws::String>
297 GetTableResult& WithLatestStreamArn(LatestStreamArnT&& value) {
298 SetLatestStreamArn(std::forward<LatestStreamArnT>(value));
299 return *this;
300 }
302
304
307 inline const CdcSpecificationSummary& GetCdcSpecification() const { return m_cdcSpecification; }
308 template <typename CdcSpecificationT = CdcSpecificationSummary>
309 void SetCdcSpecification(CdcSpecificationT&& value) {
310 m_cdcSpecificationHasBeenSet = true;
311 m_cdcSpecification = std::forward<CdcSpecificationT>(value);
312 }
313 template <typename CdcSpecificationT = CdcSpecificationSummary>
314 GetTableResult& WithCdcSpecification(CdcSpecificationT&& value) {
315 SetCdcSpecification(std::forward<CdcSpecificationT>(value));
316 return *this;
317 }
319
321
325 inline const WarmThroughputSpecificationSummary& GetWarmThroughputSpecification() const { return m_warmThroughputSpecification; }
326 template <typename WarmThroughputSpecificationT = WarmThroughputSpecificationSummary>
327 void SetWarmThroughputSpecification(WarmThroughputSpecificationT&& value) {
328 m_warmThroughputSpecificationHasBeenSet = true;
329 m_warmThroughputSpecification = std::forward<WarmThroughputSpecificationT>(value);
330 }
331 template <typename WarmThroughputSpecificationT = WarmThroughputSpecificationSummary>
332 GetTableResult& WithWarmThroughputSpecification(WarmThroughputSpecificationT&& value) {
333 SetWarmThroughputSpecification(std::forward<WarmThroughputSpecificationT>(value));
334 return *this;
335 }
337
339
340 inline const Aws::String& GetRequestId() const { return m_requestId; }
341 template <typename RequestIdT = Aws::String>
342 void SetRequestId(RequestIdT&& value) {
343 m_requestIdHasBeenSet = true;
344 m_requestId = std::forward<RequestIdT>(value);
345 }
346 template <typename RequestIdT = Aws::String>
347 GetTableResult& WithRequestId(RequestIdT&& value) {
348 SetRequestId(std::forward<RequestIdT>(value));
349 return *this;
350 }
352 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
353
354 private:
355 Aws::String m_keyspaceName;
356
357 Aws::String m_tableName;
358
359 Aws::String m_resourceArn;
360
361 Aws::Utils::DateTime m_creationTimestamp{};
362
364
365 SchemaDefinition m_schemaDefinition;
366
367 CapacitySpecificationSummary m_capacitySpecification;
368
369 EncryptionSpecification m_encryptionSpecification;
370
371 PointInTimeRecoverySummary m_pointInTimeRecovery;
372
373 TimeToLive m_ttl;
374
375 int m_defaultTimeToLive{0};
376
377 Comment m_comment;
378
379 ClientSideTimestamps m_clientSideTimestamps;
380
381 Aws::Vector<ReplicaSpecificationSummary> m_replicaSpecifications;
382
383 Aws::String m_latestStreamArn;
384
385 CdcSpecificationSummary m_cdcSpecification;
386
387 WarmThroughputSpecificationSummary m_warmThroughputSpecification;
388
389 Aws::String m_requestId;
390 Aws::Http::HttpResponseCode m_HttpResponseCode;
391 bool m_keyspaceNameHasBeenSet = false;
392 bool m_tableNameHasBeenSet = false;
393 bool m_resourceArnHasBeenSet = false;
394 bool m_creationTimestampHasBeenSet = false;
395 bool m_statusHasBeenSet = false;
396 bool m_schemaDefinitionHasBeenSet = false;
397 bool m_capacitySpecificationHasBeenSet = false;
398 bool m_encryptionSpecificationHasBeenSet = false;
399 bool m_pointInTimeRecoveryHasBeenSet = false;
400 bool m_ttlHasBeenSet = false;
401 bool m_defaultTimeToLiveHasBeenSet = false;
402 bool m_commentHasBeenSet = false;
403 bool m_clientSideTimestampsHasBeenSet = false;
404 bool m_replicaSpecificationsHasBeenSet = false;
405 bool m_latestStreamArnHasBeenSet = false;
406 bool m_cdcSpecificationHasBeenSet = false;
407 bool m_warmThroughputSpecificationHasBeenSet = false;
408 bool m_requestIdHasBeenSet = false;
409};
410
411} // namespace Model
412} // namespace Keyspaces
413} // namespace Aws
void SetCdcSpecification(CdcSpecificationT &&value)
const WarmThroughputSpecificationSummary & GetWarmThroughputSpecification() const
const CdcSpecificationSummary & GetCdcSpecification() const
const Aws::String & GetLatestStreamArn() const
const ClientSideTimestamps & GetClientSideTimestamps() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::Vector< ReplicaSpecificationSummary > & GetReplicaSpecifications() const
void SetWarmThroughputSpecification(WarmThroughputSpecificationT &&value)
void SetKeyspaceName(KeyspaceNameT &&value)
const TimeToLive & GetTtl() const
GetTableResult & WithTtl(TtlT &&value)
GetTableResult & WithDefaultTimeToLive(int value)
GetTableResult & WithCapacitySpecification(CapacitySpecificationT &&value)
GetTableResult & WithComment(CommentT &&value)
void SetResourceArn(ResourceArnT &&value)
GetTableResult & WithWarmThroughputSpecification(WarmThroughputSpecificationT &&value)
GetTableResult & WithClientSideTimestamps(ClientSideTimestampsT &&value)
GetTableResult & WithTableName(TableNameT &&value)
void SetEncryptionSpecification(EncryptionSpecificationT &&value)
const Aws::String & GetTableName() const
GetTableResult & WithResourceArn(ResourceArnT &&value)
void SetPointInTimeRecovery(PointInTimeRecoveryT &&value)
const Aws::Utils::DateTime & GetCreationTimestamp() const
const SchemaDefinition & GetSchemaDefinition() const
const CapacitySpecificationSummary & GetCapacitySpecification() const
GetTableResult & WithCreationTimestamp(CreationTimestampT &&value)
GetTableResult & WithReplicaSpecifications(ReplicaSpecificationsT &&value)
void SetCapacitySpecification(CapacitySpecificationT &&value)
AWS_KEYSPACES_API GetTableResult()=default
void SetLatestStreamArn(LatestStreamArnT &&value)
GetTableResult & WithCdcSpecification(CdcSpecificationT &&value)
GetTableResult & WithStatus(TableStatus value)
const Aws::String & GetRequestId() const
const PointInTimeRecoverySummary & GetPointInTimeRecovery() const
void SetRequestId(RequestIdT &&value)
void SetTableName(TableNameT &&value)
GetTableResult & WithRequestId(RequestIdT &&value)
const Aws::String & GetKeyspaceName() const
void SetCreationTimestamp(CreationTimestampT &&value)
void SetReplicaSpecifications(ReplicaSpecificationsT &&value)
GetTableResult & WithSchemaDefinition(SchemaDefinitionT &&value)
GetTableResult & WithLatestStreamArn(LatestStreamArnT &&value)
GetTableResult & WithEncryptionSpecification(EncryptionSpecificationT &&value)
void SetClientSideTimestamps(ClientSideTimestampsT &&value)
GetTableResult & WithKeyspaceName(KeyspaceNameT &&value)
const Aws::String & GetResourceArn() const
GetTableResult & AddReplicaSpecifications(ReplicaSpecificationsT &&value)
AWS_KEYSPACES_API GetTableResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetTableResult & WithPointInTimeRecovery(PointInTimeRecoveryT &&value)
const EncryptionSpecification & GetEncryptionSpecification() const
void SetSchemaDefinition(SchemaDefinitionT &&value)
AWS_KEYSPACES_API GetTableResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue