AWS SDK for C++

AWS SDK for C++ Version 1.11.716

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
22#include <utility>
23
24namespace Aws {
25template <typename RESULT_TYPE>
26class AmazonWebServiceResult;
27
28namespace Utils {
29namespace Json {
30class JsonValue;
31} // namespace Json
32} // namespace Utils
33namespace Keyspaces {
34namespace Model {
36 public:
37 AWS_KEYSPACES_API GetTableResult() = default;
40
42
45 inline const Aws::String& GetKeyspaceName() const { return m_keyspaceName; }
46 template <typename KeyspaceNameT = Aws::String>
47 void SetKeyspaceName(KeyspaceNameT&& value) {
48 m_keyspaceNameHasBeenSet = true;
49 m_keyspaceName = std::forward<KeyspaceNameT>(value);
50 }
51 template <typename KeyspaceNameT = Aws::String>
52 GetTableResult& WithKeyspaceName(KeyspaceNameT&& value) {
53 SetKeyspaceName(std::forward<KeyspaceNameT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetTableName() const { return m_tableName; }
63 template <typename TableNameT = Aws::String>
64 void SetTableName(TableNameT&& value) {
65 m_tableNameHasBeenSet = true;
66 m_tableName = std::forward<TableNameT>(value);
67 }
68 template <typename TableNameT = Aws::String>
69 GetTableResult& WithTableName(TableNameT&& value) {
70 SetTableName(std::forward<TableNameT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
80 template <typename ResourceArnT = Aws::String>
81 void SetResourceArn(ResourceArnT&& value) {
82 m_resourceArnHasBeenSet = true;
83 m_resourceArn = std::forward<ResourceArnT>(value);
84 }
85 template <typename ResourceArnT = Aws::String>
86 GetTableResult& WithResourceArn(ResourceArnT&& value) {
87 SetResourceArn(std::forward<ResourceArnT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::Utils::DateTime& GetCreationTimestamp() const { return m_creationTimestamp; }
97 template <typename CreationTimestampT = Aws::Utils::DateTime>
98 void SetCreationTimestamp(CreationTimestampT&& value) {
99 m_creationTimestampHasBeenSet = true;
100 m_creationTimestamp = std::forward<CreationTimestampT>(value);
101 }
102 template <typename CreationTimestampT = Aws::Utils::DateTime>
103 GetTableResult& WithCreationTimestamp(CreationTimestampT&& value) {
104 SetCreationTimestamp(std::forward<CreationTimestampT>(value));
105 return *this;
106 }
108
110
113 inline TableStatus GetStatus() const { return m_status; }
114 inline void SetStatus(TableStatus value) {
115 m_statusHasBeenSet = true;
116 m_status = value;
117 }
119 SetStatus(value);
120 return *this;
121 }
123
125
128 inline const SchemaDefinition& GetSchemaDefinition() const { return m_schemaDefinition; }
129 template <typename SchemaDefinitionT = SchemaDefinition>
130 void SetSchemaDefinition(SchemaDefinitionT&& value) {
131 m_schemaDefinitionHasBeenSet = true;
132 m_schemaDefinition = std::forward<SchemaDefinitionT>(value);
133 }
134 template <typename SchemaDefinitionT = SchemaDefinition>
135 GetTableResult& WithSchemaDefinition(SchemaDefinitionT&& value) {
136 SetSchemaDefinition(std::forward<SchemaDefinitionT>(value));
137 return *this;
138 }
140
142
147 inline const CapacitySpecificationSummary& GetCapacitySpecification() const { return m_capacitySpecification; }
148 template <typename CapacitySpecificationT = CapacitySpecificationSummary>
149 void SetCapacitySpecification(CapacitySpecificationT&& value) {
150 m_capacitySpecificationHasBeenSet = true;
151 m_capacitySpecification = std::forward<CapacitySpecificationT>(value);
152 }
153 template <typename CapacitySpecificationT = CapacitySpecificationSummary>
154 GetTableResult& WithCapacitySpecification(CapacitySpecificationT&& value) {
155 SetCapacitySpecification(std::forward<CapacitySpecificationT>(value));
156 return *this;
157 }
159
161
164 inline const EncryptionSpecification& GetEncryptionSpecification() const { return m_encryptionSpecification; }
165 template <typename EncryptionSpecificationT = EncryptionSpecification>
166 void SetEncryptionSpecification(EncryptionSpecificationT&& value) {
167 m_encryptionSpecificationHasBeenSet = true;
168 m_encryptionSpecification = std::forward<EncryptionSpecificationT>(value);
169 }
170 template <typename EncryptionSpecificationT = EncryptionSpecification>
171 GetTableResult& WithEncryptionSpecification(EncryptionSpecificationT&& value) {
172 SetEncryptionSpecification(std::forward<EncryptionSpecificationT>(value));
173 return *this;
174 }
176
178
181 inline const PointInTimeRecoverySummary& GetPointInTimeRecovery() const { return m_pointInTimeRecovery; }
182 template <typename PointInTimeRecoveryT = PointInTimeRecoverySummary>
183 void SetPointInTimeRecovery(PointInTimeRecoveryT&& value) {
184 m_pointInTimeRecoveryHasBeenSet = true;
185 m_pointInTimeRecovery = std::forward<PointInTimeRecoveryT>(value);
186 }
187 template <typename PointInTimeRecoveryT = PointInTimeRecoverySummary>
188 GetTableResult& WithPointInTimeRecovery(PointInTimeRecoveryT&& value) {
189 SetPointInTimeRecovery(std::forward<PointInTimeRecoveryT>(value));
190 return *this;
191 }
193
195
198 inline const TimeToLive& GetTtl() const { return m_ttl; }
199 template <typename TtlT = TimeToLive>
200 void SetTtl(TtlT&& value) {
201 m_ttlHasBeenSet = true;
202 m_ttl = std::forward<TtlT>(value);
203 }
204 template <typename TtlT = TimeToLive>
205 GetTableResult& WithTtl(TtlT&& value) {
206 SetTtl(std::forward<TtlT>(value));
207 return *this;
208 }
210
212
215 inline int GetDefaultTimeToLive() const { return m_defaultTimeToLive; }
216 inline void SetDefaultTimeToLive(int value) {
217 m_defaultTimeToLiveHasBeenSet = true;
218 m_defaultTimeToLive = value;
219 }
222 return *this;
223 }
225
227
230 inline const Comment& GetComment() const { return m_comment; }
231 template <typename CommentT = Comment>
232 void SetComment(CommentT&& value) {
233 m_commentHasBeenSet = true;
234 m_comment = std::forward<CommentT>(value);
235 }
236 template <typename CommentT = Comment>
237 GetTableResult& WithComment(CommentT&& value) {
238 SetComment(std::forward<CommentT>(value));
239 return *this;
240 }
242
244
247 inline const ClientSideTimestamps& GetClientSideTimestamps() const { return m_clientSideTimestamps; }
248 template <typename ClientSideTimestampsT = ClientSideTimestamps>
249 void SetClientSideTimestamps(ClientSideTimestampsT&& value) {
250 m_clientSideTimestampsHasBeenSet = true;
251 m_clientSideTimestamps = std::forward<ClientSideTimestampsT>(value);
252 }
253 template <typename ClientSideTimestampsT = ClientSideTimestamps>
254 GetTableResult& WithClientSideTimestamps(ClientSideTimestampsT&& value) {
255 SetClientSideTimestamps(std::forward<ClientSideTimestampsT>(value));
256 return *this;
257 }
259
261
265 inline const Aws::Vector<ReplicaSpecificationSummary>& GetReplicaSpecifications() const { return m_replicaSpecifications; }
266 template <typename ReplicaSpecificationsT = Aws::Vector<ReplicaSpecificationSummary>>
267 void SetReplicaSpecifications(ReplicaSpecificationsT&& value) {
268 m_replicaSpecificationsHasBeenSet = true;
269 m_replicaSpecifications = std::forward<ReplicaSpecificationsT>(value);
270 }
271 template <typename ReplicaSpecificationsT = Aws::Vector<ReplicaSpecificationSummary>>
272 GetTableResult& WithReplicaSpecifications(ReplicaSpecificationsT&& value) {
273 SetReplicaSpecifications(std::forward<ReplicaSpecificationsT>(value));
274 return *this;
275 }
276 template <typename ReplicaSpecificationsT = ReplicaSpecificationSummary>
277 GetTableResult& AddReplicaSpecifications(ReplicaSpecificationsT&& value) {
278 m_replicaSpecificationsHasBeenSet = true;
279 m_replicaSpecifications.emplace_back(std::forward<ReplicaSpecificationsT>(value));
280 return *this;
281 }
283
285
288 inline const Aws::String& GetLatestStreamArn() const { return m_latestStreamArn; }
289 template <typename LatestStreamArnT = Aws::String>
290 void SetLatestStreamArn(LatestStreamArnT&& value) {
291 m_latestStreamArnHasBeenSet = true;
292 m_latestStreamArn = std::forward<LatestStreamArnT>(value);
293 }
294 template <typename LatestStreamArnT = Aws::String>
295 GetTableResult& WithLatestStreamArn(LatestStreamArnT&& value) {
296 SetLatestStreamArn(std::forward<LatestStreamArnT>(value));
297 return *this;
298 }
300
302
305 inline const CdcSpecificationSummary& GetCdcSpecification() const { return m_cdcSpecification; }
306 template <typename CdcSpecificationT = CdcSpecificationSummary>
307 void SetCdcSpecification(CdcSpecificationT&& value) {
308 m_cdcSpecificationHasBeenSet = true;
309 m_cdcSpecification = std::forward<CdcSpecificationT>(value);
310 }
311 template <typename CdcSpecificationT = CdcSpecificationSummary>
312 GetTableResult& WithCdcSpecification(CdcSpecificationT&& value) {
313 SetCdcSpecification(std::forward<CdcSpecificationT>(value));
314 return *this;
315 }
317
319
320 inline const Aws::String& GetRequestId() const { return m_requestId; }
321 template <typename RequestIdT = Aws::String>
322 void SetRequestId(RequestIdT&& value) {
323 m_requestIdHasBeenSet = true;
324 m_requestId = std::forward<RequestIdT>(value);
325 }
326 template <typename RequestIdT = Aws::String>
327 GetTableResult& WithRequestId(RequestIdT&& value) {
328 SetRequestId(std::forward<RequestIdT>(value));
329 return *this;
330 }
332 private:
333 Aws::String m_keyspaceName;
334
335 Aws::String m_tableName;
336
337 Aws::String m_resourceArn;
338
339 Aws::Utils::DateTime m_creationTimestamp{};
340
342
343 SchemaDefinition m_schemaDefinition;
344
345 CapacitySpecificationSummary m_capacitySpecification;
346
347 EncryptionSpecification m_encryptionSpecification;
348
349 PointInTimeRecoverySummary m_pointInTimeRecovery;
350
351 TimeToLive m_ttl;
352
353 int m_defaultTimeToLive{0};
354
355 Comment m_comment;
356
357 ClientSideTimestamps m_clientSideTimestamps;
358
359 Aws::Vector<ReplicaSpecificationSummary> m_replicaSpecifications;
360
361 Aws::String m_latestStreamArn;
362
363 CdcSpecificationSummary m_cdcSpecification;
364
365 Aws::String m_requestId;
366 bool m_keyspaceNameHasBeenSet = false;
367 bool m_tableNameHasBeenSet = false;
368 bool m_resourceArnHasBeenSet = false;
369 bool m_creationTimestampHasBeenSet = false;
370 bool m_statusHasBeenSet = false;
371 bool m_schemaDefinitionHasBeenSet = false;
372 bool m_capacitySpecificationHasBeenSet = false;
373 bool m_encryptionSpecificationHasBeenSet = false;
374 bool m_pointInTimeRecoveryHasBeenSet = false;
375 bool m_ttlHasBeenSet = false;
376 bool m_defaultTimeToLiveHasBeenSet = false;
377 bool m_commentHasBeenSet = false;
378 bool m_clientSideTimestampsHasBeenSet = false;
379 bool m_replicaSpecificationsHasBeenSet = false;
380 bool m_latestStreamArnHasBeenSet = false;
381 bool m_cdcSpecificationHasBeenSet = false;
382 bool m_requestIdHasBeenSet = false;
383};
384
385} // namespace Model
386} // namespace Keyspaces
387} // namespace Aws
void SetCdcSpecification(CdcSpecificationT &&value)
const CdcSpecificationSummary & GetCdcSpecification() const
const Aws::String & GetLatestStreamArn() const
const ClientSideTimestamps & GetClientSideTimestamps() const
const Aws::Vector< ReplicaSpecificationSummary > & GetReplicaSpecifications() const
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 & 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