AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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/keyspaces/Keyspaces_EXPORTS.h>
11#include <aws/keyspaces/model/CapacitySpecificationSummary.h>
12#include <aws/keyspaces/model/CdcSpecificationSummary.h>
13#include <aws/keyspaces/model/ClientSideTimestamps.h>
14#include <aws/keyspaces/model/Comment.h>
15#include <aws/keyspaces/model/EncryptionSpecification.h>
16#include <aws/keyspaces/model/PointInTimeRecoverySummary.h>
17#include <aws/keyspaces/model/ReplicaSpecificationSummary.h>
18#include <aws/keyspaces/model/SchemaDefinition.h>
19#include <aws/keyspaces/model/TableStatus.h>
20#include <aws/keyspaces/model/TimeToLive.h>
21#include <aws/keyspaces/model/WarmThroughputSpecificationSummary.h>
22
23#include <utility>
24
25namespace Aws {
26template <typename RESULT_TYPE>
27class AmazonWebServiceResult;
28
29namespace Utils {
30namespace Json {
31class JsonValue;
32} // namespace Json
33} // namespace Utils
34namespace Keyspaces {
35namespace Model {
37 public:
38 AWS_KEYSPACES_API GetTableResult() = default;
41
43
46 inline const Aws::String& GetKeyspaceName() const { return m_keyspaceName; }
47 template <typename KeyspaceNameT = Aws::String>
48 void SetKeyspaceName(KeyspaceNameT&& value) {
49 m_keyspaceNameHasBeenSet = true;
50 m_keyspaceName = std::forward<KeyspaceNameT>(value);
51 }
52 template <typename KeyspaceNameT = Aws::String>
53 GetTableResult& WithKeyspaceName(KeyspaceNameT&& value) {
54 SetKeyspaceName(std::forward<KeyspaceNameT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetTableName() const { return m_tableName; }
64 template <typename TableNameT = Aws::String>
65 void SetTableName(TableNameT&& value) {
66 m_tableNameHasBeenSet = true;
67 m_tableName = std::forward<TableNameT>(value);
68 }
69 template <typename TableNameT = Aws::String>
70 GetTableResult& WithTableName(TableNameT&& value) {
71 SetTableName(std::forward<TableNameT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
81 template <typename ResourceArnT = Aws::String>
82 void SetResourceArn(ResourceArnT&& value) {
83 m_resourceArnHasBeenSet = true;
84 m_resourceArn = std::forward<ResourceArnT>(value);
85 }
86 template <typename ResourceArnT = Aws::String>
87 GetTableResult& WithResourceArn(ResourceArnT&& value) {
88 SetResourceArn(std::forward<ResourceArnT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::Utils::DateTime& GetCreationTimestamp() const { return m_creationTimestamp; }
98 template <typename CreationTimestampT = Aws::Utils::DateTime>
99 void SetCreationTimestamp(CreationTimestampT&& value) {
100 m_creationTimestampHasBeenSet = true;
101 m_creationTimestamp = std::forward<CreationTimestampT>(value);
102 }
103 template <typename CreationTimestampT = Aws::Utils::DateTime>
104 GetTableResult& WithCreationTimestamp(CreationTimestampT&& value) {
105 SetCreationTimestamp(std::forward<CreationTimestampT>(value));
106 return *this;
107 }
109
111
114 inline TableStatus GetStatus() const { return m_status; }
115 inline void SetStatus(TableStatus value) {
116 m_statusHasBeenSet = true;
117 m_status = value;
118 }
120 SetStatus(value);
121 return *this;
122 }
124
126
129 inline const SchemaDefinition& GetSchemaDefinition() const { return m_schemaDefinition; }
130 template <typename SchemaDefinitionT = SchemaDefinition>
131 void SetSchemaDefinition(SchemaDefinitionT&& value) {
132 m_schemaDefinitionHasBeenSet = true;
133 m_schemaDefinition = std::forward<SchemaDefinitionT>(value);
134 }
135 template <typename SchemaDefinitionT = SchemaDefinition>
136 GetTableResult& WithSchemaDefinition(SchemaDefinitionT&& value) {
137 SetSchemaDefinition(std::forward<SchemaDefinitionT>(value));
138 return *this;
139 }
141
143
148 inline const CapacitySpecificationSummary& GetCapacitySpecification() const { return m_capacitySpecification; }
149 template <typename CapacitySpecificationT = CapacitySpecificationSummary>
150 void SetCapacitySpecification(CapacitySpecificationT&& value) {
151 m_capacitySpecificationHasBeenSet = true;
152 m_capacitySpecification = std::forward<CapacitySpecificationT>(value);
153 }
154 template <typename CapacitySpecificationT = CapacitySpecificationSummary>
155 GetTableResult& WithCapacitySpecification(CapacitySpecificationT&& value) {
156 SetCapacitySpecification(std::forward<CapacitySpecificationT>(value));
157 return *this;
158 }
160
162
165 inline const EncryptionSpecification& GetEncryptionSpecification() const { return m_encryptionSpecification; }
166 template <typename EncryptionSpecificationT = EncryptionSpecification>
167 void SetEncryptionSpecification(EncryptionSpecificationT&& value) {
168 m_encryptionSpecificationHasBeenSet = true;
169 m_encryptionSpecification = std::forward<EncryptionSpecificationT>(value);
170 }
171 template <typename EncryptionSpecificationT = EncryptionSpecification>
172 GetTableResult& WithEncryptionSpecification(EncryptionSpecificationT&& value) {
173 SetEncryptionSpecification(std::forward<EncryptionSpecificationT>(value));
174 return *this;
175 }
177
179
182 inline const PointInTimeRecoverySummary& GetPointInTimeRecovery() const { return m_pointInTimeRecovery; }
183 template <typename PointInTimeRecoveryT = PointInTimeRecoverySummary>
184 void SetPointInTimeRecovery(PointInTimeRecoveryT&& value) {
185 m_pointInTimeRecoveryHasBeenSet = true;
186 m_pointInTimeRecovery = std::forward<PointInTimeRecoveryT>(value);
187 }
188 template <typename PointInTimeRecoveryT = PointInTimeRecoverySummary>
189 GetTableResult& WithPointInTimeRecovery(PointInTimeRecoveryT&& value) {
190 SetPointInTimeRecovery(std::forward<PointInTimeRecoveryT>(value));
191 return *this;
192 }
194
196
199 inline const TimeToLive& GetTtl() const { return m_ttl; }
200 template <typename TtlT = TimeToLive>
201 void SetTtl(TtlT&& value) {
202 m_ttlHasBeenSet = true;
203 m_ttl = std::forward<TtlT>(value);
204 }
205 template <typename TtlT = TimeToLive>
206 GetTableResult& WithTtl(TtlT&& value) {
207 SetTtl(std::forward<TtlT>(value));
208 return *this;
209 }
211
213
216 inline int GetDefaultTimeToLive() const { return m_defaultTimeToLive; }
217 inline void SetDefaultTimeToLive(int value) {
218 m_defaultTimeToLiveHasBeenSet = true;
219 m_defaultTimeToLive = value;
220 }
223 return *this;
224 }
226
228
231 inline const Comment& GetComment() const { return m_comment; }
232 template <typename CommentT = Comment>
233 void SetComment(CommentT&& value) {
234 m_commentHasBeenSet = true;
235 m_comment = std::forward<CommentT>(value);
236 }
237 template <typename CommentT = Comment>
238 GetTableResult& WithComment(CommentT&& value) {
239 SetComment(std::forward<CommentT>(value));
240 return *this;
241 }
243
245
248 inline const ClientSideTimestamps& GetClientSideTimestamps() const { return m_clientSideTimestamps; }
249 template <typename ClientSideTimestampsT = ClientSideTimestamps>
250 void SetClientSideTimestamps(ClientSideTimestampsT&& value) {
251 m_clientSideTimestampsHasBeenSet = true;
252 m_clientSideTimestamps = std::forward<ClientSideTimestampsT>(value);
253 }
254 template <typename ClientSideTimestampsT = ClientSideTimestamps>
255 GetTableResult& WithClientSideTimestamps(ClientSideTimestampsT&& value) {
256 SetClientSideTimestamps(std::forward<ClientSideTimestampsT>(value));
257 return *this;
258 }
260
262
266 inline const Aws::Vector<ReplicaSpecificationSummary>& GetReplicaSpecifications() const { return m_replicaSpecifications; }
267 template <typename ReplicaSpecificationsT = Aws::Vector<ReplicaSpecificationSummary>>
268 void SetReplicaSpecifications(ReplicaSpecificationsT&& value) {
269 m_replicaSpecificationsHasBeenSet = true;
270 m_replicaSpecifications = std::forward<ReplicaSpecificationsT>(value);
271 }
272 template <typename ReplicaSpecificationsT = Aws::Vector<ReplicaSpecificationSummary>>
273 GetTableResult& WithReplicaSpecifications(ReplicaSpecificationsT&& value) {
274 SetReplicaSpecifications(std::forward<ReplicaSpecificationsT>(value));
275 return *this;
276 }
277 template <typename ReplicaSpecificationsT = ReplicaSpecificationSummary>
278 GetTableResult& AddReplicaSpecifications(ReplicaSpecificationsT&& value) {
279 m_replicaSpecificationsHasBeenSet = true;
280 m_replicaSpecifications.emplace_back(std::forward<ReplicaSpecificationsT>(value));
281 return *this;
282 }
284
286
289 inline const Aws::String& GetLatestStreamArn() const { return m_latestStreamArn; }
290 template <typename LatestStreamArnT = Aws::String>
291 void SetLatestStreamArn(LatestStreamArnT&& value) {
292 m_latestStreamArnHasBeenSet = true;
293 m_latestStreamArn = std::forward<LatestStreamArnT>(value);
294 }
295 template <typename LatestStreamArnT = Aws::String>
296 GetTableResult& WithLatestStreamArn(LatestStreamArnT&& value) {
297 SetLatestStreamArn(std::forward<LatestStreamArnT>(value));
298 return *this;
299 }
301
303
306 inline const CdcSpecificationSummary& GetCdcSpecification() const { return m_cdcSpecification; }
307 template <typename CdcSpecificationT = CdcSpecificationSummary>
308 void SetCdcSpecification(CdcSpecificationT&& value) {
309 m_cdcSpecificationHasBeenSet = true;
310 m_cdcSpecification = std::forward<CdcSpecificationT>(value);
311 }
312 template <typename CdcSpecificationT = CdcSpecificationSummary>
313 GetTableResult& WithCdcSpecification(CdcSpecificationT&& value) {
314 SetCdcSpecification(std::forward<CdcSpecificationT>(value));
315 return *this;
316 }
318
320
324 inline const WarmThroughputSpecificationSummary& GetWarmThroughputSpecification() const { return m_warmThroughputSpecification; }
325 template <typename WarmThroughputSpecificationT = WarmThroughputSpecificationSummary>
326 void SetWarmThroughputSpecification(WarmThroughputSpecificationT&& value) {
327 m_warmThroughputSpecificationHasBeenSet = true;
328 m_warmThroughputSpecification = std::forward<WarmThroughputSpecificationT>(value);
329 }
330 template <typename WarmThroughputSpecificationT = WarmThroughputSpecificationSummary>
331 GetTableResult& WithWarmThroughputSpecification(WarmThroughputSpecificationT&& value) {
332 SetWarmThroughputSpecification(std::forward<WarmThroughputSpecificationT>(value));
333 return *this;
334 }
336
338
339 inline const Aws::String& GetRequestId() const { return m_requestId; }
340 template <typename RequestIdT = Aws::String>
341 void SetRequestId(RequestIdT&& value) {
342 m_requestIdHasBeenSet = true;
343 m_requestId = std::forward<RequestIdT>(value);
344 }
345 template <typename RequestIdT = Aws::String>
346 GetTableResult& WithRequestId(RequestIdT&& value) {
347 SetRequestId(std::forward<RequestIdT>(value));
348 return *this;
349 }
351 private:
352 Aws::String m_keyspaceName;
353
354 Aws::String m_tableName;
355
356 Aws::String m_resourceArn;
357
358 Aws::Utils::DateTime m_creationTimestamp{};
359
361
362 SchemaDefinition m_schemaDefinition;
363
364 CapacitySpecificationSummary m_capacitySpecification;
365
366 EncryptionSpecification m_encryptionSpecification;
367
368 PointInTimeRecoverySummary m_pointInTimeRecovery;
369
370 TimeToLive m_ttl;
371
372 int m_defaultTimeToLive{0};
373
374 Comment m_comment;
375
376 ClientSideTimestamps m_clientSideTimestamps;
377
378 Aws::Vector<ReplicaSpecificationSummary> m_replicaSpecifications;
379
380 Aws::String m_latestStreamArn;
381
382 CdcSpecificationSummary m_cdcSpecification;
383
384 WarmThroughputSpecificationSummary m_warmThroughputSpecification;
385
386 Aws::String m_requestId;
387 bool m_keyspaceNameHasBeenSet = false;
388 bool m_tableNameHasBeenSet = false;
389 bool m_resourceArnHasBeenSet = false;
390 bool m_creationTimestampHasBeenSet = false;
391 bool m_statusHasBeenSet = false;
392 bool m_schemaDefinitionHasBeenSet = false;
393 bool m_capacitySpecificationHasBeenSet = false;
394 bool m_encryptionSpecificationHasBeenSet = false;
395 bool m_pointInTimeRecoveryHasBeenSet = false;
396 bool m_ttlHasBeenSet = false;
397 bool m_defaultTimeToLiveHasBeenSet = false;
398 bool m_commentHasBeenSet = false;
399 bool m_clientSideTimestampsHasBeenSet = false;
400 bool m_replicaSpecificationsHasBeenSet = false;
401 bool m_latestStreamArnHasBeenSet = false;
402 bool m_cdcSpecificationHasBeenSet = false;
403 bool m_warmThroughputSpecificationHasBeenSet = false;
404 bool m_requestIdHasBeenSet = false;
405};
406
407} // namespace Model
408} // namespace Keyspaces
409} // namespace Aws
void SetCdcSpecification(CdcSpecificationT &&value)
const WarmThroughputSpecificationSummary & GetWarmThroughputSpecification() const
const CdcSpecificationSummary & GetCdcSpecification() const
const Aws::String & GetLatestStreamArn() const
const ClientSideTimestamps & GetClientSideTimestamps() 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