AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AwsDynamoDbTableDetails.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/securityhub/model/AwsDynamoDbTableBillingModeSummary.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/securityhub/model/AwsDynamoDbTableProvisionedThroughput.h>
12#include <aws/securityhub/model/AwsDynamoDbTableRestoreSummary.h>
13#include <aws/securityhub/model/AwsDynamoDbTableSseDescription.h>
14#include <aws/securityhub/model/AwsDynamoDbTableStreamSpecification.h>
15#include <aws/securityhub/model/AwsDynamoDbTableAttributeDefinition.h>
16#include <aws/securityhub/model/AwsDynamoDbTableGlobalSecondaryIndex.h>
17#include <aws/securityhub/model/AwsDynamoDbTableKeySchema.h>
18#include <aws/securityhub/model/AwsDynamoDbTableLocalSecondaryIndex.h>
19#include <aws/securityhub/model/AwsDynamoDbTableReplica.h>
20#include <utility>
21
22namespace Aws
23{
24namespace Utils
25{
26namespace Json
27{
28 class JsonValue;
29 class JsonView;
30} // namespace Json
31} // namespace Utils
32namespace SecurityHub
33{
34namespace Model
35{
36
43 {
44 public:
45 AWS_SECURITYHUB_API AwsDynamoDbTableDetails() = default;
48 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
49
50
52
55 inline const Aws::Vector<AwsDynamoDbTableAttributeDefinition>& GetAttributeDefinitions() const { return m_attributeDefinitions; }
56 inline bool AttributeDefinitionsHasBeenSet() const { return m_attributeDefinitionsHasBeenSet; }
57 template<typename AttributeDefinitionsT = Aws::Vector<AwsDynamoDbTableAttributeDefinition>>
58 void SetAttributeDefinitions(AttributeDefinitionsT&& value) { m_attributeDefinitionsHasBeenSet = true; m_attributeDefinitions = std::forward<AttributeDefinitionsT>(value); }
59 template<typename AttributeDefinitionsT = Aws::Vector<AwsDynamoDbTableAttributeDefinition>>
60 AwsDynamoDbTableDetails& WithAttributeDefinitions(AttributeDefinitionsT&& value) { SetAttributeDefinitions(std::forward<AttributeDefinitionsT>(value)); return *this;}
61 template<typename AttributeDefinitionsT = AwsDynamoDbTableAttributeDefinition>
62 AwsDynamoDbTableDetails& AddAttributeDefinitions(AttributeDefinitionsT&& value) { m_attributeDefinitionsHasBeenSet = true; m_attributeDefinitions.emplace_back(std::forward<AttributeDefinitionsT>(value)); return *this; }
64
66
69 inline const AwsDynamoDbTableBillingModeSummary& GetBillingModeSummary() const { return m_billingModeSummary; }
70 inline bool BillingModeSummaryHasBeenSet() const { return m_billingModeSummaryHasBeenSet; }
71 template<typename BillingModeSummaryT = AwsDynamoDbTableBillingModeSummary>
72 void SetBillingModeSummary(BillingModeSummaryT&& value) { m_billingModeSummaryHasBeenSet = true; m_billingModeSummary = std::forward<BillingModeSummaryT>(value); }
73 template<typename BillingModeSummaryT = AwsDynamoDbTableBillingModeSummary>
74 AwsDynamoDbTableDetails& WithBillingModeSummary(BillingModeSummaryT&& value) { SetBillingModeSummary(std::forward<BillingModeSummaryT>(value)); return *this;}
76
78
83 inline const Aws::String& GetCreationDateTime() const { return m_creationDateTime; }
84 inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; }
85 template<typename CreationDateTimeT = Aws::String>
86 void SetCreationDateTime(CreationDateTimeT&& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = std::forward<CreationDateTimeT>(value); }
87 template<typename CreationDateTimeT = Aws::String>
88 AwsDynamoDbTableDetails& WithCreationDateTime(CreationDateTimeT&& value) { SetCreationDateTime(std::forward<CreationDateTimeT>(value)); return *this;}
90
92
95 inline const Aws::Vector<AwsDynamoDbTableGlobalSecondaryIndex>& GetGlobalSecondaryIndexes() const { return m_globalSecondaryIndexes; }
96 inline bool GlobalSecondaryIndexesHasBeenSet() const { return m_globalSecondaryIndexesHasBeenSet; }
97 template<typename GlobalSecondaryIndexesT = Aws::Vector<AwsDynamoDbTableGlobalSecondaryIndex>>
98 void SetGlobalSecondaryIndexes(GlobalSecondaryIndexesT&& value) { m_globalSecondaryIndexesHasBeenSet = true; m_globalSecondaryIndexes = std::forward<GlobalSecondaryIndexesT>(value); }
99 template<typename GlobalSecondaryIndexesT = Aws::Vector<AwsDynamoDbTableGlobalSecondaryIndex>>
100 AwsDynamoDbTableDetails& WithGlobalSecondaryIndexes(GlobalSecondaryIndexesT&& value) { SetGlobalSecondaryIndexes(std::forward<GlobalSecondaryIndexesT>(value)); return *this;}
101 template<typename GlobalSecondaryIndexesT = AwsDynamoDbTableGlobalSecondaryIndex>
102 AwsDynamoDbTableDetails& AddGlobalSecondaryIndexes(GlobalSecondaryIndexesT&& value) { m_globalSecondaryIndexesHasBeenSet = true; m_globalSecondaryIndexes.emplace_back(std::forward<GlobalSecondaryIndexesT>(value)); return *this; }
104
106
109 inline const Aws::String& GetGlobalTableVersion() const { return m_globalTableVersion; }
110 inline bool GlobalTableVersionHasBeenSet() const { return m_globalTableVersionHasBeenSet; }
111 template<typename GlobalTableVersionT = Aws::String>
112 void SetGlobalTableVersion(GlobalTableVersionT&& value) { m_globalTableVersionHasBeenSet = true; m_globalTableVersion = std::forward<GlobalTableVersionT>(value); }
113 template<typename GlobalTableVersionT = Aws::String>
114 AwsDynamoDbTableDetails& WithGlobalTableVersion(GlobalTableVersionT&& value) { SetGlobalTableVersion(std::forward<GlobalTableVersionT>(value)); return *this;}
116
118
121 inline int GetItemCount() const { return m_itemCount; }
122 inline bool ItemCountHasBeenSet() const { return m_itemCountHasBeenSet; }
123 inline void SetItemCount(int value) { m_itemCountHasBeenSet = true; m_itemCount = value; }
124 inline AwsDynamoDbTableDetails& WithItemCount(int value) { SetItemCount(value); return *this;}
126
128
131 inline const Aws::Vector<AwsDynamoDbTableKeySchema>& GetKeySchema() const { return m_keySchema; }
132 inline bool KeySchemaHasBeenSet() const { return m_keySchemaHasBeenSet; }
133 template<typename KeySchemaT = Aws::Vector<AwsDynamoDbTableKeySchema>>
134 void SetKeySchema(KeySchemaT&& value) { m_keySchemaHasBeenSet = true; m_keySchema = std::forward<KeySchemaT>(value); }
135 template<typename KeySchemaT = Aws::Vector<AwsDynamoDbTableKeySchema>>
136 AwsDynamoDbTableDetails& WithKeySchema(KeySchemaT&& value) { SetKeySchema(std::forward<KeySchemaT>(value)); return *this;}
137 template<typename KeySchemaT = AwsDynamoDbTableKeySchema>
138 AwsDynamoDbTableDetails& AddKeySchema(KeySchemaT&& value) { m_keySchemaHasBeenSet = true; m_keySchema.emplace_back(std::forward<KeySchemaT>(value)); return *this; }
140
142
145 inline const Aws::String& GetLatestStreamArn() const { return m_latestStreamArn; }
146 inline bool LatestStreamArnHasBeenSet() const { return m_latestStreamArnHasBeenSet; }
147 template<typename LatestStreamArnT = Aws::String>
148 void SetLatestStreamArn(LatestStreamArnT&& value) { m_latestStreamArnHasBeenSet = true; m_latestStreamArn = std::forward<LatestStreamArnT>(value); }
149 template<typename LatestStreamArnT = Aws::String>
150 AwsDynamoDbTableDetails& WithLatestStreamArn(LatestStreamArnT&& value) { SetLatestStreamArn(std::forward<LatestStreamArnT>(value)); return *this;}
152
154
157 inline const Aws::String& GetLatestStreamLabel() const { return m_latestStreamLabel; }
158 inline bool LatestStreamLabelHasBeenSet() const { return m_latestStreamLabelHasBeenSet; }
159 template<typename LatestStreamLabelT = Aws::String>
160 void SetLatestStreamLabel(LatestStreamLabelT&& value) { m_latestStreamLabelHasBeenSet = true; m_latestStreamLabel = std::forward<LatestStreamLabelT>(value); }
161 template<typename LatestStreamLabelT = Aws::String>
162 AwsDynamoDbTableDetails& WithLatestStreamLabel(LatestStreamLabelT&& value) { SetLatestStreamLabel(std::forward<LatestStreamLabelT>(value)); return *this;}
164
166
169 inline const Aws::Vector<AwsDynamoDbTableLocalSecondaryIndex>& GetLocalSecondaryIndexes() const { return m_localSecondaryIndexes; }
170 inline bool LocalSecondaryIndexesHasBeenSet() const { return m_localSecondaryIndexesHasBeenSet; }
171 template<typename LocalSecondaryIndexesT = Aws::Vector<AwsDynamoDbTableLocalSecondaryIndex>>
172 void SetLocalSecondaryIndexes(LocalSecondaryIndexesT&& value) { m_localSecondaryIndexesHasBeenSet = true; m_localSecondaryIndexes = std::forward<LocalSecondaryIndexesT>(value); }
173 template<typename LocalSecondaryIndexesT = Aws::Vector<AwsDynamoDbTableLocalSecondaryIndex>>
174 AwsDynamoDbTableDetails& WithLocalSecondaryIndexes(LocalSecondaryIndexesT&& value) { SetLocalSecondaryIndexes(std::forward<LocalSecondaryIndexesT>(value)); return *this;}
175 template<typename LocalSecondaryIndexesT = AwsDynamoDbTableLocalSecondaryIndex>
176 AwsDynamoDbTableDetails& AddLocalSecondaryIndexes(LocalSecondaryIndexesT&& value) { m_localSecondaryIndexesHasBeenSet = true; m_localSecondaryIndexes.emplace_back(std::forward<LocalSecondaryIndexesT>(value)); return *this; }
178
180
183 inline const AwsDynamoDbTableProvisionedThroughput& GetProvisionedThroughput() const { return m_provisionedThroughput; }
184 inline bool ProvisionedThroughputHasBeenSet() const { return m_provisionedThroughputHasBeenSet; }
185 template<typename ProvisionedThroughputT = AwsDynamoDbTableProvisionedThroughput>
186 void SetProvisionedThroughput(ProvisionedThroughputT&& value) { m_provisionedThroughputHasBeenSet = true; m_provisionedThroughput = std::forward<ProvisionedThroughputT>(value); }
187 template<typename ProvisionedThroughputT = AwsDynamoDbTableProvisionedThroughput>
188 AwsDynamoDbTableDetails& WithProvisionedThroughput(ProvisionedThroughputT&& value) { SetProvisionedThroughput(std::forward<ProvisionedThroughputT>(value)); return *this;}
190
192
195 inline const Aws::Vector<AwsDynamoDbTableReplica>& GetReplicas() const { return m_replicas; }
196 inline bool ReplicasHasBeenSet() const { return m_replicasHasBeenSet; }
197 template<typename ReplicasT = Aws::Vector<AwsDynamoDbTableReplica>>
198 void SetReplicas(ReplicasT&& value) { m_replicasHasBeenSet = true; m_replicas = std::forward<ReplicasT>(value); }
199 template<typename ReplicasT = Aws::Vector<AwsDynamoDbTableReplica>>
200 AwsDynamoDbTableDetails& WithReplicas(ReplicasT&& value) { SetReplicas(std::forward<ReplicasT>(value)); return *this;}
201 template<typename ReplicasT = AwsDynamoDbTableReplica>
202 AwsDynamoDbTableDetails& AddReplicas(ReplicasT&& value) { m_replicasHasBeenSet = true; m_replicas.emplace_back(std::forward<ReplicasT>(value)); return *this; }
204
206
209 inline const AwsDynamoDbTableRestoreSummary& GetRestoreSummary() const { return m_restoreSummary; }
210 inline bool RestoreSummaryHasBeenSet() const { return m_restoreSummaryHasBeenSet; }
211 template<typename RestoreSummaryT = AwsDynamoDbTableRestoreSummary>
212 void SetRestoreSummary(RestoreSummaryT&& value) { m_restoreSummaryHasBeenSet = true; m_restoreSummary = std::forward<RestoreSummaryT>(value); }
213 template<typename RestoreSummaryT = AwsDynamoDbTableRestoreSummary>
214 AwsDynamoDbTableDetails& WithRestoreSummary(RestoreSummaryT&& value) { SetRestoreSummary(std::forward<RestoreSummaryT>(value)); return *this;}
216
218
221 inline const AwsDynamoDbTableSseDescription& GetSseDescription() const { return m_sseDescription; }
222 inline bool SseDescriptionHasBeenSet() const { return m_sseDescriptionHasBeenSet; }
223 template<typename SseDescriptionT = AwsDynamoDbTableSseDescription>
224 void SetSseDescription(SseDescriptionT&& value) { m_sseDescriptionHasBeenSet = true; m_sseDescription = std::forward<SseDescriptionT>(value); }
225 template<typename SseDescriptionT = AwsDynamoDbTableSseDescription>
226 AwsDynamoDbTableDetails& WithSseDescription(SseDescriptionT&& value) { SetSseDescription(std::forward<SseDescriptionT>(value)); return *this;}
228
230
233 inline const AwsDynamoDbTableStreamSpecification& GetStreamSpecification() const { return m_streamSpecification; }
234 inline bool StreamSpecificationHasBeenSet() const { return m_streamSpecificationHasBeenSet; }
235 template<typename StreamSpecificationT = AwsDynamoDbTableStreamSpecification>
236 void SetStreamSpecification(StreamSpecificationT&& value) { m_streamSpecificationHasBeenSet = true; m_streamSpecification = std::forward<StreamSpecificationT>(value); }
237 template<typename StreamSpecificationT = AwsDynamoDbTableStreamSpecification>
238 AwsDynamoDbTableDetails& WithStreamSpecification(StreamSpecificationT&& value) { SetStreamSpecification(std::forward<StreamSpecificationT>(value)); return *this;}
240
242
245 inline const Aws::String& GetTableId() const { return m_tableId; }
246 inline bool TableIdHasBeenSet() const { return m_tableIdHasBeenSet; }
247 template<typename TableIdT = Aws::String>
248 void SetTableId(TableIdT&& value) { m_tableIdHasBeenSet = true; m_tableId = std::forward<TableIdT>(value); }
249 template<typename TableIdT = Aws::String>
250 AwsDynamoDbTableDetails& WithTableId(TableIdT&& value) { SetTableId(std::forward<TableIdT>(value)); return *this;}
252
254
257 inline const Aws::String& GetTableName() const { return m_tableName; }
258 inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; }
259 template<typename TableNameT = Aws::String>
260 void SetTableName(TableNameT&& value) { m_tableNameHasBeenSet = true; m_tableName = std::forward<TableNameT>(value); }
261 template<typename TableNameT = Aws::String>
262 AwsDynamoDbTableDetails& WithTableName(TableNameT&& value) { SetTableName(std::forward<TableNameT>(value)); return *this;}
264
266
269 inline long long GetTableSizeBytes() const { return m_tableSizeBytes; }
270 inline bool TableSizeBytesHasBeenSet() const { return m_tableSizeBytesHasBeenSet; }
271 inline void SetTableSizeBytes(long long value) { m_tableSizeBytesHasBeenSet = true; m_tableSizeBytes = value; }
272 inline AwsDynamoDbTableDetails& WithTableSizeBytes(long long value) { SetTableSizeBytes(value); return *this;}
274
276
284 inline const Aws::String& GetTableStatus() const { return m_tableStatus; }
285 inline bool TableStatusHasBeenSet() const { return m_tableStatusHasBeenSet; }
286 template<typename TableStatusT = Aws::String>
287 void SetTableStatus(TableStatusT&& value) { m_tableStatusHasBeenSet = true; m_tableStatus = std::forward<TableStatusT>(value); }
288 template<typename TableStatusT = Aws::String>
289 AwsDynamoDbTableDetails& WithTableStatus(TableStatusT&& value) { SetTableStatus(std::forward<TableStatusT>(value)); return *this;}
291
293
297 inline bool GetDeletionProtectionEnabled() const { return m_deletionProtectionEnabled; }
298 inline bool DeletionProtectionEnabledHasBeenSet() const { return m_deletionProtectionEnabledHasBeenSet; }
299 inline void SetDeletionProtectionEnabled(bool value) { m_deletionProtectionEnabledHasBeenSet = true; m_deletionProtectionEnabled = value; }
302 private:
303
305 bool m_attributeDefinitionsHasBeenSet = false;
306
307 AwsDynamoDbTableBillingModeSummary m_billingModeSummary;
308 bool m_billingModeSummaryHasBeenSet = false;
309
310 Aws::String m_creationDateTime;
311 bool m_creationDateTimeHasBeenSet = false;
312
314 bool m_globalSecondaryIndexesHasBeenSet = false;
315
316 Aws::String m_globalTableVersion;
317 bool m_globalTableVersionHasBeenSet = false;
318
319 int m_itemCount{0};
320 bool m_itemCountHasBeenSet = false;
321
323 bool m_keySchemaHasBeenSet = false;
324
325 Aws::String m_latestStreamArn;
326 bool m_latestStreamArnHasBeenSet = false;
327
328 Aws::String m_latestStreamLabel;
329 bool m_latestStreamLabelHasBeenSet = false;
330
332 bool m_localSecondaryIndexesHasBeenSet = false;
333
334 AwsDynamoDbTableProvisionedThroughput m_provisionedThroughput;
335 bool m_provisionedThroughputHasBeenSet = false;
336
338 bool m_replicasHasBeenSet = false;
339
340 AwsDynamoDbTableRestoreSummary m_restoreSummary;
341 bool m_restoreSummaryHasBeenSet = false;
342
343 AwsDynamoDbTableSseDescription m_sseDescription;
344 bool m_sseDescriptionHasBeenSet = false;
345
346 AwsDynamoDbTableStreamSpecification m_streamSpecification;
347 bool m_streamSpecificationHasBeenSet = false;
348
349 Aws::String m_tableId;
350 bool m_tableIdHasBeenSet = false;
351
352 Aws::String m_tableName;
353 bool m_tableNameHasBeenSet = false;
354
355 long long m_tableSizeBytes{0};
356 bool m_tableSizeBytesHasBeenSet = false;
357
358 Aws::String m_tableStatus;
359 bool m_tableStatusHasBeenSet = false;
360
361 bool m_deletionProtectionEnabled{false};
362 bool m_deletionProtectionEnabledHasBeenSet = false;
363 };
364
365} // namespace Model
366} // namespace SecurityHub
367} // 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