AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
AwsDynamoDbTableDetails.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/securityhub/SecurityHub_EXPORTS.h>
10#include <aws/securityhub/model/AwsDynamoDbTableAttributeDefinition.h>
11#include <aws/securityhub/model/AwsDynamoDbTableBillingModeSummary.h>
12#include <aws/securityhub/model/AwsDynamoDbTableGlobalSecondaryIndex.h>
13#include <aws/securityhub/model/AwsDynamoDbTableKeySchema.h>
14#include <aws/securityhub/model/AwsDynamoDbTableLocalSecondaryIndex.h>
15#include <aws/securityhub/model/AwsDynamoDbTableProvisionedThroughput.h>
16#include <aws/securityhub/model/AwsDynamoDbTableReplica.h>
17#include <aws/securityhub/model/AwsDynamoDbTableRestoreSummary.h>
18#include <aws/securityhub/model/AwsDynamoDbTableSseDescription.h>
19#include <aws/securityhub/model/AwsDynamoDbTableStreamSpecification.h>
20
21#include <utility>
22
23namespace Aws {
24namespace Utils {
25namespace Json {
26class JsonValue;
27class JsonView;
28} // namespace Json
29} // namespace Utils
30namespace SecurityHub {
31namespace Model {
32
39 public:
40 AWS_SECURITYHUB_API AwsDynamoDbTableDetails() = default;
43 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
44
46
49 inline const Aws::Vector<AwsDynamoDbTableAttributeDefinition>& GetAttributeDefinitions() const { return m_attributeDefinitions; }
50 inline bool AttributeDefinitionsHasBeenSet() const { return m_attributeDefinitionsHasBeenSet; }
51 template <typename AttributeDefinitionsT = Aws::Vector<AwsDynamoDbTableAttributeDefinition>>
52 void SetAttributeDefinitions(AttributeDefinitionsT&& value) {
53 m_attributeDefinitionsHasBeenSet = true;
54 m_attributeDefinitions = std::forward<AttributeDefinitionsT>(value);
55 }
56 template <typename AttributeDefinitionsT = Aws::Vector<AwsDynamoDbTableAttributeDefinition>>
57 AwsDynamoDbTableDetails& WithAttributeDefinitions(AttributeDefinitionsT&& value) {
58 SetAttributeDefinitions(std::forward<AttributeDefinitionsT>(value));
59 return *this;
60 }
61 template <typename AttributeDefinitionsT = AwsDynamoDbTableAttributeDefinition>
62 AwsDynamoDbTableDetails& AddAttributeDefinitions(AttributeDefinitionsT&& value) {
63 m_attributeDefinitionsHasBeenSet = true;
64 m_attributeDefinitions.emplace_back(std::forward<AttributeDefinitionsT>(value));
65 return *this;
66 }
68
70
73 inline const AwsDynamoDbTableBillingModeSummary& GetBillingModeSummary() const { return m_billingModeSummary; }
74 inline bool BillingModeSummaryHasBeenSet() const { return m_billingModeSummaryHasBeenSet; }
75 template <typename BillingModeSummaryT = AwsDynamoDbTableBillingModeSummary>
76 void SetBillingModeSummary(BillingModeSummaryT&& value) {
77 m_billingModeSummaryHasBeenSet = true;
78 m_billingModeSummary = std::forward<BillingModeSummaryT>(value);
79 }
80 template <typename BillingModeSummaryT = AwsDynamoDbTableBillingModeSummary>
81 AwsDynamoDbTableDetails& WithBillingModeSummary(BillingModeSummaryT&& value) {
82 SetBillingModeSummary(std::forward<BillingModeSummaryT>(value));
83 return *this;
84 }
86
88
93 inline const Aws::String& GetCreationDateTime() const { return m_creationDateTime; }
94 inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; }
95 template <typename CreationDateTimeT = Aws::String>
96 void SetCreationDateTime(CreationDateTimeT&& value) {
97 m_creationDateTimeHasBeenSet = true;
98 m_creationDateTime = std::forward<CreationDateTimeT>(value);
99 }
100 template <typename CreationDateTimeT = Aws::String>
101 AwsDynamoDbTableDetails& WithCreationDateTime(CreationDateTimeT&& value) {
102 SetCreationDateTime(std::forward<CreationDateTimeT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::Vector<AwsDynamoDbTableGlobalSecondaryIndex>& GetGlobalSecondaryIndexes() const { return m_globalSecondaryIndexes; }
112 inline bool GlobalSecondaryIndexesHasBeenSet() const { return m_globalSecondaryIndexesHasBeenSet; }
113 template <typename GlobalSecondaryIndexesT = Aws::Vector<AwsDynamoDbTableGlobalSecondaryIndex>>
114 void SetGlobalSecondaryIndexes(GlobalSecondaryIndexesT&& value) {
115 m_globalSecondaryIndexesHasBeenSet = true;
116 m_globalSecondaryIndexes = std::forward<GlobalSecondaryIndexesT>(value);
117 }
118 template <typename GlobalSecondaryIndexesT = Aws::Vector<AwsDynamoDbTableGlobalSecondaryIndex>>
119 AwsDynamoDbTableDetails& WithGlobalSecondaryIndexes(GlobalSecondaryIndexesT&& value) {
120 SetGlobalSecondaryIndexes(std::forward<GlobalSecondaryIndexesT>(value));
121 return *this;
122 }
123 template <typename GlobalSecondaryIndexesT = AwsDynamoDbTableGlobalSecondaryIndex>
124 AwsDynamoDbTableDetails& AddGlobalSecondaryIndexes(GlobalSecondaryIndexesT&& value) {
125 m_globalSecondaryIndexesHasBeenSet = true;
126 m_globalSecondaryIndexes.emplace_back(std::forward<GlobalSecondaryIndexesT>(value));
127 return *this;
128 }
130
132
135 inline const Aws::String& GetGlobalTableVersion() const { return m_globalTableVersion; }
136 inline bool GlobalTableVersionHasBeenSet() const { return m_globalTableVersionHasBeenSet; }
137 template <typename GlobalTableVersionT = Aws::String>
138 void SetGlobalTableVersion(GlobalTableVersionT&& value) {
139 m_globalTableVersionHasBeenSet = true;
140 m_globalTableVersion = std::forward<GlobalTableVersionT>(value);
141 }
142 template <typename GlobalTableVersionT = Aws::String>
143 AwsDynamoDbTableDetails& WithGlobalTableVersion(GlobalTableVersionT&& value) {
144 SetGlobalTableVersion(std::forward<GlobalTableVersionT>(value));
145 return *this;
146 }
148
150
153 inline int GetItemCount() const { return m_itemCount; }
154 inline bool ItemCountHasBeenSet() const { return m_itemCountHasBeenSet; }
155 inline void SetItemCount(int value) {
156 m_itemCountHasBeenSet = true;
157 m_itemCount = value;
158 }
160 SetItemCount(value);
161 return *this;
162 }
164
166
169 inline const Aws::Vector<AwsDynamoDbTableKeySchema>& GetKeySchema() const { return m_keySchema; }
170 inline bool KeySchemaHasBeenSet() const { return m_keySchemaHasBeenSet; }
171 template <typename KeySchemaT = Aws::Vector<AwsDynamoDbTableKeySchema>>
172 void SetKeySchema(KeySchemaT&& value) {
173 m_keySchemaHasBeenSet = true;
174 m_keySchema = std::forward<KeySchemaT>(value);
175 }
176 template <typename KeySchemaT = Aws::Vector<AwsDynamoDbTableKeySchema>>
178 SetKeySchema(std::forward<KeySchemaT>(value));
179 return *this;
180 }
181 template <typename KeySchemaT = AwsDynamoDbTableKeySchema>
183 m_keySchemaHasBeenSet = true;
184 m_keySchema.emplace_back(std::forward<KeySchemaT>(value));
185 return *this;
186 }
188
190
193 inline const Aws::String& GetLatestStreamArn() const { return m_latestStreamArn; }
194 inline bool LatestStreamArnHasBeenSet() const { return m_latestStreamArnHasBeenSet; }
195 template <typename LatestStreamArnT = Aws::String>
196 void SetLatestStreamArn(LatestStreamArnT&& value) {
197 m_latestStreamArnHasBeenSet = true;
198 m_latestStreamArn = std::forward<LatestStreamArnT>(value);
199 }
200 template <typename LatestStreamArnT = Aws::String>
201 AwsDynamoDbTableDetails& WithLatestStreamArn(LatestStreamArnT&& value) {
202 SetLatestStreamArn(std::forward<LatestStreamArnT>(value));
203 return *this;
204 }
206
208
211 inline const Aws::String& GetLatestStreamLabel() const { return m_latestStreamLabel; }
212 inline bool LatestStreamLabelHasBeenSet() const { return m_latestStreamLabelHasBeenSet; }
213 template <typename LatestStreamLabelT = Aws::String>
214 void SetLatestStreamLabel(LatestStreamLabelT&& value) {
215 m_latestStreamLabelHasBeenSet = true;
216 m_latestStreamLabel = std::forward<LatestStreamLabelT>(value);
217 }
218 template <typename LatestStreamLabelT = Aws::String>
219 AwsDynamoDbTableDetails& WithLatestStreamLabel(LatestStreamLabelT&& value) {
220 SetLatestStreamLabel(std::forward<LatestStreamLabelT>(value));
221 return *this;
222 }
224
226
229 inline const Aws::Vector<AwsDynamoDbTableLocalSecondaryIndex>& GetLocalSecondaryIndexes() const { return m_localSecondaryIndexes; }
230 inline bool LocalSecondaryIndexesHasBeenSet() const { return m_localSecondaryIndexesHasBeenSet; }
231 template <typename LocalSecondaryIndexesT = Aws::Vector<AwsDynamoDbTableLocalSecondaryIndex>>
232 void SetLocalSecondaryIndexes(LocalSecondaryIndexesT&& value) {
233 m_localSecondaryIndexesHasBeenSet = true;
234 m_localSecondaryIndexes = std::forward<LocalSecondaryIndexesT>(value);
235 }
236 template <typename LocalSecondaryIndexesT = Aws::Vector<AwsDynamoDbTableLocalSecondaryIndex>>
237 AwsDynamoDbTableDetails& WithLocalSecondaryIndexes(LocalSecondaryIndexesT&& value) {
238 SetLocalSecondaryIndexes(std::forward<LocalSecondaryIndexesT>(value));
239 return *this;
240 }
241 template <typename LocalSecondaryIndexesT = AwsDynamoDbTableLocalSecondaryIndex>
242 AwsDynamoDbTableDetails& AddLocalSecondaryIndexes(LocalSecondaryIndexesT&& value) {
243 m_localSecondaryIndexesHasBeenSet = true;
244 m_localSecondaryIndexes.emplace_back(std::forward<LocalSecondaryIndexesT>(value));
245 return *this;
246 }
248
250
253 inline const AwsDynamoDbTableProvisionedThroughput& GetProvisionedThroughput() const { return m_provisionedThroughput; }
254 inline bool ProvisionedThroughputHasBeenSet() const { return m_provisionedThroughputHasBeenSet; }
255 template <typename ProvisionedThroughputT = AwsDynamoDbTableProvisionedThroughput>
256 void SetProvisionedThroughput(ProvisionedThroughputT&& value) {
257 m_provisionedThroughputHasBeenSet = true;
258 m_provisionedThroughput = std::forward<ProvisionedThroughputT>(value);
259 }
260 template <typename ProvisionedThroughputT = AwsDynamoDbTableProvisionedThroughput>
261 AwsDynamoDbTableDetails& WithProvisionedThroughput(ProvisionedThroughputT&& value) {
262 SetProvisionedThroughput(std::forward<ProvisionedThroughputT>(value));
263 return *this;
264 }
266
268
271 inline const Aws::Vector<AwsDynamoDbTableReplica>& GetReplicas() const { return m_replicas; }
272 inline bool ReplicasHasBeenSet() const { return m_replicasHasBeenSet; }
273 template <typename ReplicasT = Aws::Vector<AwsDynamoDbTableReplica>>
274 void SetReplicas(ReplicasT&& value) {
275 m_replicasHasBeenSet = true;
276 m_replicas = std::forward<ReplicasT>(value);
277 }
278 template <typename ReplicasT = Aws::Vector<AwsDynamoDbTableReplica>>
280 SetReplicas(std::forward<ReplicasT>(value));
281 return *this;
282 }
283 template <typename ReplicasT = AwsDynamoDbTableReplica>
285 m_replicasHasBeenSet = true;
286 m_replicas.emplace_back(std::forward<ReplicasT>(value));
287 return *this;
288 }
290
292
295 inline const AwsDynamoDbTableRestoreSummary& GetRestoreSummary() const { return m_restoreSummary; }
296 inline bool RestoreSummaryHasBeenSet() const { return m_restoreSummaryHasBeenSet; }
297 template <typename RestoreSummaryT = AwsDynamoDbTableRestoreSummary>
298 void SetRestoreSummary(RestoreSummaryT&& value) {
299 m_restoreSummaryHasBeenSet = true;
300 m_restoreSummary = std::forward<RestoreSummaryT>(value);
301 }
302 template <typename RestoreSummaryT = AwsDynamoDbTableRestoreSummary>
303 AwsDynamoDbTableDetails& WithRestoreSummary(RestoreSummaryT&& value) {
304 SetRestoreSummary(std::forward<RestoreSummaryT>(value));
305 return *this;
306 }
308
310
313 inline const AwsDynamoDbTableSseDescription& GetSseDescription() const { return m_sseDescription; }
314 inline bool SseDescriptionHasBeenSet() const { return m_sseDescriptionHasBeenSet; }
315 template <typename SseDescriptionT = AwsDynamoDbTableSseDescription>
316 void SetSseDescription(SseDescriptionT&& value) {
317 m_sseDescriptionHasBeenSet = true;
318 m_sseDescription = std::forward<SseDescriptionT>(value);
319 }
320 template <typename SseDescriptionT = AwsDynamoDbTableSseDescription>
321 AwsDynamoDbTableDetails& WithSseDescription(SseDescriptionT&& value) {
322 SetSseDescription(std::forward<SseDescriptionT>(value));
323 return *this;
324 }
326
328
331 inline const AwsDynamoDbTableStreamSpecification& GetStreamSpecification() const { return m_streamSpecification; }
332 inline bool StreamSpecificationHasBeenSet() const { return m_streamSpecificationHasBeenSet; }
333 template <typename StreamSpecificationT = AwsDynamoDbTableStreamSpecification>
334 void SetStreamSpecification(StreamSpecificationT&& value) {
335 m_streamSpecificationHasBeenSet = true;
336 m_streamSpecification = std::forward<StreamSpecificationT>(value);
337 }
338 template <typename StreamSpecificationT = AwsDynamoDbTableStreamSpecification>
339 AwsDynamoDbTableDetails& WithStreamSpecification(StreamSpecificationT&& value) {
340 SetStreamSpecification(std::forward<StreamSpecificationT>(value));
341 return *this;
342 }
344
346
349 inline const Aws::String& GetTableId() const { return m_tableId; }
350 inline bool TableIdHasBeenSet() const { return m_tableIdHasBeenSet; }
351 template <typename TableIdT = Aws::String>
352 void SetTableId(TableIdT&& value) {
353 m_tableIdHasBeenSet = true;
354 m_tableId = std::forward<TableIdT>(value);
355 }
356 template <typename TableIdT = Aws::String>
358 SetTableId(std::forward<TableIdT>(value));
359 return *this;
360 }
362
364
367 inline const Aws::String& GetTableName() const { return m_tableName; }
368 inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; }
369 template <typename TableNameT = Aws::String>
370 void SetTableName(TableNameT&& value) {
371 m_tableNameHasBeenSet = true;
372 m_tableName = std::forward<TableNameT>(value);
373 }
374 template <typename TableNameT = Aws::String>
376 SetTableName(std::forward<TableNameT>(value));
377 return *this;
378 }
380
382
385 inline long long GetTableSizeBytes() const { return m_tableSizeBytes; }
386 inline bool TableSizeBytesHasBeenSet() const { return m_tableSizeBytesHasBeenSet; }
387 inline void SetTableSizeBytes(long long value) {
388 m_tableSizeBytesHasBeenSet = true;
389 m_tableSizeBytes = value;
390 }
392 SetTableSizeBytes(value);
393 return *this;
394 }
396
398
406 inline const Aws::String& GetTableStatus() const { return m_tableStatus; }
407 inline bool TableStatusHasBeenSet() const { return m_tableStatusHasBeenSet; }
408 template <typename TableStatusT = Aws::String>
409 void SetTableStatus(TableStatusT&& value) {
410 m_tableStatusHasBeenSet = true;
411 m_tableStatus = std::forward<TableStatusT>(value);
412 }
413 template <typename TableStatusT = Aws::String>
415 SetTableStatus(std::forward<TableStatusT>(value));
416 return *this;
417 }
419
421
425 inline bool GetDeletionProtectionEnabled() const { return m_deletionProtectionEnabled; }
426 inline bool DeletionProtectionEnabledHasBeenSet() const { return m_deletionProtectionEnabledHasBeenSet; }
427 inline void SetDeletionProtectionEnabled(bool value) {
428 m_deletionProtectionEnabledHasBeenSet = true;
429 m_deletionProtectionEnabled = value;
430 }
433 return *this;
434 }
436 private:
438
439 AwsDynamoDbTableBillingModeSummary m_billingModeSummary;
440
441 Aws::String m_creationDateTime;
442
444
445 Aws::String m_globalTableVersion;
446
447 int m_itemCount{0};
448
450
451 Aws::String m_latestStreamArn;
452
453 Aws::String m_latestStreamLabel;
454
456
457 AwsDynamoDbTableProvisionedThroughput m_provisionedThroughput;
458
460
461 AwsDynamoDbTableRestoreSummary m_restoreSummary;
462
463 AwsDynamoDbTableSseDescription m_sseDescription;
464
465 AwsDynamoDbTableStreamSpecification m_streamSpecification;
466
467 Aws::String m_tableId;
468
469 Aws::String m_tableName;
470
471 long long m_tableSizeBytes{0};
472
473 Aws::String m_tableStatus;
474
475 bool m_deletionProtectionEnabled{false};
476 bool m_attributeDefinitionsHasBeenSet = false;
477 bool m_billingModeSummaryHasBeenSet = false;
478 bool m_creationDateTimeHasBeenSet = false;
479 bool m_globalSecondaryIndexesHasBeenSet = false;
480 bool m_globalTableVersionHasBeenSet = false;
481 bool m_itemCountHasBeenSet = false;
482 bool m_keySchemaHasBeenSet = false;
483 bool m_latestStreamArnHasBeenSet = false;
484 bool m_latestStreamLabelHasBeenSet = false;
485 bool m_localSecondaryIndexesHasBeenSet = false;
486 bool m_provisionedThroughputHasBeenSet = false;
487 bool m_replicasHasBeenSet = false;
488 bool m_restoreSummaryHasBeenSet = false;
489 bool m_sseDescriptionHasBeenSet = false;
490 bool m_streamSpecificationHasBeenSet = false;
491 bool m_tableIdHasBeenSet = false;
492 bool m_tableNameHasBeenSet = false;
493 bool m_tableSizeBytesHasBeenSet = false;
494 bool m_tableStatusHasBeenSet = false;
495 bool m_deletionProtectionEnabledHasBeenSet = false;
496};
497
498} // namespace Model
499} // namespace SecurityHub
500} // namespace Aws
AwsDynamoDbTableDetails & WithLatestStreamArn(LatestStreamArnT &&value)
AwsDynamoDbTableDetails & WithTableName(TableNameT &&value)
void SetGlobalSecondaryIndexes(GlobalSecondaryIndexesT &&value)
AwsDynamoDbTableDetails & WithRestoreSummary(RestoreSummaryT &&value)
AwsDynamoDbTableDetails & WithReplicas(ReplicasT &&value)
const Aws::Vector< AwsDynamoDbTableGlobalSecondaryIndex > & GetGlobalSecondaryIndexes() const
AwsDynamoDbTableDetails & AddGlobalSecondaryIndexes(GlobalSecondaryIndexesT &&value)
const Aws::Vector< AwsDynamoDbTableReplica > & GetReplicas() const
void SetProvisionedThroughput(ProvisionedThroughputT &&value)
AwsDynamoDbTableDetails & WithTableId(TableIdT &&value)
AWS_SECURITYHUB_API AwsDynamoDbTableDetails(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API AwsDynamoDbTableDetails()=default
AwsDynamoDbTableDetails & WithGlobalSecondaryIndexes(GlobalSecondaryIndexesT &&value)
void SetLocalSecondaryIndexes(LocalSecondaryIndexesT &&value)
AwsDynamoDbTableDetails & AddReplicas(ReplicasT &&value)
const Aws::Vector< AwsDynamoDbTableKeySchema > & GetKeySchema() const
const AwsDynamoDbTableRestoreSummary & GetRestoreSummary() const
void SetStreamSpecification(StreamSpecificationT &&value)
AWS_SECURITYHUB_API AwsDynamoDbTableDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsDynamoDbTableDetails & AddAttributeDefinitions(AttributeDefinitionsT &&value)
AwsDynamoDbTableDetails & WithStreamSpecification(StreamSpecificationT &&value)
AwsDynamoDbTableDetails & WithLatestStreamLabel(LatestStreamLabelT &&value)
const AwsDynamoDbTableBillingModeSummary & GetBillingModeSummary() const
AwsDynamoDbTableDetails & WithAttributeDefinitions(AttributeDefinitionsT &&value)
AwsDynamoDbTableDetails & WithDeletionProtectionEnabled(bool value)
AwsDynamoDbTableDetails & WithCreationDateTime(CreationDateTimeT &&value)
AwsDynamoDbTableDetails & WithKeySchema(KeySchemaT &&value)
void SetBillingModeSummary(BillingModeSummaryT &&value)
AwsDynamoDbTableDetails & WithGlobalTableVersion(GlobalTableVersionT &&value)
AwsDynamoDbTableDetails & AddKeySchema(KeySchemaT &&value)
AwsDynamoDbTableDetails & AddLocalSecondaryIndexes(LocalSecondaryIndexesT &&value)
const Aws::Vector< AwsDynamoDbTableLocalSecondaryIndex > & GetLocalSecondaryIndexes() const
const Aws::Vector< AwsDynamoDbTableAttributeDefinition > & GetAttributeDefinitions() const
AwsDynamoDbTableDetails & WithSseDescription(SseDescriptionT &&value)
const AwsDynamoDbTableProvisionedThroughput & GetProvisionedThroughput() const
AwsDynamoDbTableDetails & WithProvisionedThroughput(ProvisionedThroughputT &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AwsDynamoDbTableDetails & WithTableStatus(TableStatusT &&value)
AwsDynamoDbTableDetails & WithTableSizeBytes(long long value)
void SetAttributeDefinitions(AttributeDefinitionsT &&value)
const AwsDynamoDbTableSseDescription & GetSseDescription() const
const AwsDynamoDbTableStreamSpecification & GetStreamSpecification() const
AwsDynamoDbTableDetails & WithLocalSecondaryIndexes(LocalSecondaryIndexesT &&value)
AwsDynamoDbTableDetails & WithBillingModeSummary(BillingModeSummaryT &&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