AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
AwsRdsDbSnapshotDetails.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/AwsRdsDbProcessorFeature.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SecurityHub {
22namespace Model {
23
31 public:
32 AWS_SECURITYHUB_API AwsRdsDbSnapshotDetails() = default;
35 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::String& GetDbSnapshotIdentifier() const { return m_dbSnapshotIdentifier; }
43 inline bool DbSnapshotIdentifierHasBeenSet() const { return m_dbSnapshotIdentifierHasBeenSet; }
44 template <typename DbSnapshotIdentifierT = Aws::String>
45 void SetDbSnapshotIdentifier(DbSnapshotIdentifierT&& value) {
46 m_dbSnapshotIdentifierHasBeenSet = true;
47 m_dbSnapshotIdentifier = std::forward<DbSnapshotIdentifierT>(value);
48 }
49 template <typename DbSnapshotIdentifierT = Aws::String>
50 AwsRdsDbSnapshotDetails& WithDbSnapshotIdentifier(DbSnapshotIdentifierT&& value) {
51 SetDbSnapshotIdentifier(std::forward<DbSnapshotIdentifierT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetDbInstanceIdentifier() const { return m_dbInstanceIdentifier; }
61 inline bool DbInstanceIdentifierHasBeenSet() const { return m_dbInstanceIdentifierHasBeenSet; }
62 template <typename DbInstanceIdentifierT = Aws::String>
63 void SetDbInstanceIdentifier(DbInstanceIdentifierT&& value) {
64 m_dbInstanceIdentifierHasBeenSet = true;
65 m_dbInstanceIdentifier = std::forward<DbInstanceIdentifierT>(value);
66 }
67 template <typename DbInstanceIdentifierT = Aws::String>
68 AwsRdsDbSnapshotDetails& WithDbInstanceIdentifier(DbInstanceIdentifierT&& value) {
69 SetDbInstanceIdentifier(std::forward<DbInstanceIdentifierT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetSnapshotCreateTime() const { return m_snapshotCreateTime; }
79 inline bool SnapshotCreateTimeHasBeenSet() const { return m_snapshotCreateTimeHasBeenSet; }
80 template <typename SnapshotCreateTimeT = Aws::String>
81 void SetSnapshotCreateTime(SnapshotCreateTimeT&& value) {
82 m_snapshotCreateTimeHasBeenSet = true;
83 m_snapshotCreateTime = std::forward<SnapshotCreateTimeT>(value);
84 }
85 template <typename SnapshotCreateTimeT = Aws::String>
86 AwsRdsDbSnapshotDetails& WithSnapshotCreateTime(SnapshotCreateTimeT&& value) {
87 SetSnapshotCreateTime(std::forward<SnapshotCreateTimeT>(value));
88 return *this;
89 }
91
93
105 inline const Aws::String& GetEngine() const { return m_engine; }
106 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
107 template <typename EngineT = Aws::String>
108 void SetEngine(EngineT&& value) {
109 m_engineHasBeenSet = true;
110 m_engine = std::forward<EngineT>(value);
111 }
112 template <typename EngineT = Aws::String>
114 SetEngine(std::forward<EngineT>(value));
115 return *this;
116 }
118
120
124 inline int GetAllocatedStorage() const { return m_allocatedStorage; }
125 inline bool AllocatedStorageHasBeenSet() const { return m_allocatedStorageHasBeenSet; }
126 inline void SetAllocatedStorage(int value) {
127 m_allocatedStorageHasBeenSet = true;
128 m_allocatedStorage = value;
129 }
131 SetAllocatedStorage(value);
132 return *this;
133 }
135
137
140 inline const Aws::String& GetStatus() const { return m_status; }
141 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
142 template <typename StatusT = Aws::String>
143 void SetStatus(StatusT&& value) {
144 m_statusHasBeenSet = true;
145 m_status = std::forward<StatusT>(value);
146 }
147 template <typename StatusT = Aws::String>
149 SetStatus(std::forward<StatusT>(value));
150 return *this;
151 }
153
155
159 inline int GetPort() const { return m_port; }
160 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
161 inline void SetPort(int value) {
162 m_portHasBeenSet = true;
163 m_port = value;
164 }
166 SetPort(value);
167 return *this;
168 }
170
172
176 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
177 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
178 template <typename AvailabilityZoneT = Aws::String>
179 void SetAvailabilityZone(AvailabilityZoneT&& value) {
180 m_availabilityZoneHasBeenSet = true;
181 m_availabilityZone = std::forward<AvailabilityZoneT>(value);
182 }
183 template <typename AvailabilityZoneT = Aws::String>
184 AwsRdsDbSnapshotDetails& WithAvailabilityZone(AvailabilityZoneT&& value) {
185 SetAvailabilityZone(std::forward<AvailabilityZoneT>(value));
186 return *this;
187 }
189
191
194 inline const Aws::String& GetVpcId() const { return m_vpcId; }
195 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
196 template <typename VpcIdT = Aws::String>
197 void SetVpcId(VpcIdT&& value) {
198 m_vpcIdHasBeenSet = true;
199 m_vpcId = std::forward<VpcIdT>(value);
200 }
201 template <typename VpcIdT = Aws::String>
203 SetVpcId(std::forward<VpcIdT>(value));
204 return *this;
205 }
207
209
213 inline const Aws::String& GetInstanceCreateTime() const { return m_instanceCreateTime; }
214 inline bool InstanceCreateTimeHasBeenSet() const { return m_instanceCreateTimeHasBeenSet; }
215 template <typename InstanceCreateTimeT = Aws::String>
216 void SetInstanceCreateTime(InstanceCreateTimeT&& value) {
217 m_instanceCreateTimeHasBeenSet = true;
218 m_instanceCreateTime = std::forward<InstanceCreateTimeT>(value);
219 }
220 template <typename InstanceCreateTimeT = Aws::String>
221 AwsRdsDbSnapshotDetails& WithInstanceCreateTime(InstanceCreateTimeT&& value) {
222 SetInstanceCreateTime(std::forward<InstanceCreateTimeT>(value));
223 return *this;
224 }
226
228
231 inline const Aws::String& GetMasterUsername() const { return m_masterUsername; }
232 inline bool MasterUsernameHasBeenSet() const { return m_masterUsernameHasBeenSet; }
233 template <typename MasterUsernameT = Aws::String>
234 void SetMasterUsername(MasterUsernameT&& value) {
235 m_masterUsernameHasBeenSet = true;
236 m_masterUsername = std::forward<MasterUsernameT>(value);
237 }
238 template <typename MasterUsernameT = Aws::String>
239 AwsRdsDbSnapshotDetails& WithMasterUsername(MasterUsernameT&& value) {
240 SetMasterUsername(std::forward<MasterUsernameT>(value));
241 return *this;
242 }
244
246
249 inline const Aws::String& GetEngineVersion() const { return m_engineVersion; }
250 inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; }
251 template <typename EngineVersionT = Aws::String>
252 void SetEngineVersion(EngineVersionT&& value) {
253 m_engineVersionHasBeenSet = true;
254 m_engineVersion = std::forward<EngineVersionT>(value);
255 }
256 template <typename EngineVersionT = Aws::String>
258 SetEngineVersion(std::forward<EngineVersionT>(value));
259 return *this;
260 }
262
264
267 inline const Aws::String& GetLicenseModel() const { return m_licenseModel; }
268 inline bool LicenseModelHasBeenSet() const { return m_licenseModelHasBeenSet; }
269 template <typename LicenseModelT = Aws::String>
270 void SetLicenseModel(LicenseModelT&& value) {
271 m_licenseModelHasBeenSet = true;
272 m_licenseModel = std::forward<LicenseModelT>(value);
273 }
274 template <typename LicenseModelT = Aws::String>
276 SetLicenseModel(std::forward<LicenseModelT>(value));
277 return *this;
278 }
280
282
285 inline const Aws::String& GetSnapshotType() const { return m_snapshotType; }
286 inline bool SnapshotTypeHasBeenSet() const { return m_snapshotTypeHasBeenSet; }
287 template <typename SnapshotTypeT = Aws::String>
288 void SetSnapshotType(SnapshotTypeT&& value) {
289 m_snapshotTypeHasBeenSet = true;
290 m_snapshotType = std::forward<SnapshotTypeT>(value);
291 }
292 template <typename SnapshotTypeT = Aws::String>
294 SetSnapshotType(std::forward<SnapshotTypeT>(value));
295 return *this;
296 }
298
300
304 inline int GetIops() const { return m_iops; }
305 inline bool IopsHasBeenSet() const { return m_iopsHasBeenSet; }
306 inline void SetIops(int value) {
307 m_iopsHasBeenSet = true;
308 m_iops = value;
309 }
311 SetIops(value);
312 return *this;
313 }
315
317
320 inline const Aws::String& GetOptionGroupName() const { return m_optionGroupName; }
321 inline bool OptionGroupNameHasBeenSet() const { return m_optionGroupNameHasBeenSet; }
322 template <typename OptionGroupNameT = Aws::String>
323 void SetOptionGroupName(OptionGroupNameT&& value) {
324 m_optionGroupNameHasBeenSet = true;
325 m_optionGroupName = std::forward<OptionGroupNameT>(value);
326 }
327 template <typename OptionGroupNameT = Aws::String>
328 AwsRdsDbSnapshotDetails& WithOptionGroupName(OptionGroupNameT&& value) {
329 SetOptionGroupName(std::forward<OptionGroupNameT>(value));
330 return *this;
331 }
333
335
338 inline int GetPercentProgress() const { return m_percentProgress; }
339 inline bool PercentProgressHasBeenSet() const { return m_percentProgressHasBeenSet; }
340 inline void SetPercentProgress(int value) {
341 m_percentProgressHasBeenSet = true;
342 m_percentProgress = value;
343 }
345 SetPercentProgress(value);
346 return *this;
347 }
349
351
355 inline const Aws::String& GetSourceRegion() const { return m_sourceRegion; }
356 inline bool SourceRegionHasBeenSet() const { return m_sourceRegionHasBeenSet; }
357 template <typename SourceRegionT = Aws::String>
358 void SetSourceRegion(SourceRegionT&& value) {
359 m_sourceRegionHasBeenSet = true;
360 m_sourceRegion = std::forward<SourceRegionT>(value);
361 }
362 template <typename SourceRegionT = Aws::String>
364 SetSourceRegion(std::forward<SourceRegionT>(value));
365 return *this;
366 }
368
370
373 inline const Aws::String& GetSourceDbSnapshotIdentifier() const { return m_sourceDbSnapshotIdentifier; }
374 inline bool SourceDbSnapshotIdentifierHasBeenSet() const { return m_sourceDbSnapshotIdentifierHasBeenSet; }
375 template <typename SourceDbSnapshotIdentifierT = Aws::String>
376 void SetSourceDbSnapshotIdentifier(SourceDbSnapshotIdentifierT&& value) {
377 m_sourceDbSnapshotIdentifierHasBeenSet = true;
378 m_sourceDbSnapshotIdentifier = std::forward<SourceDbSnapshotIdentifierT>(value);
379 }
380 template <typename SourceDbSnapshotIdentifierT = Aws::String>
381 AwsRdsDbSnapshotDetails& WithSourceDbSnapshotIdentifier(SourceDbSnapshotIdentifierT&& value) {
382 SetSourceDbSnapshotIdentifier(std::forward<SourceDbSnapshotIdentifierT>(value));
383 return *this;
384 }
386
388
393 inline const Aws::String& GetStorageType() const { return m_storageType; }
394 inline bool StorageTypeHasBeenSet() const { return m_storageTypeHasBeenSet; }
395 template <typename StorageTypeT = Aws::String>
396 void SetStorageType(StorageTypeT&& value) {
397 m_storageTypeHasBeenSet = true;
398 m_storageType = std::forward<StorageTypeT>(value);
399 }
400 template <typename StorageTypeT = Aws::String>
402 SetStorageType(std::forward<StorageTypeT>(value));
403 return *this;
404 }
406
408
412 inline const Aws::String& GetTdeCredentialArn() const { return m_tdeCredentialArn; }
413 inline bool TdeCredentialArnHasBeenSet() const { return m_tdeCredentialArnHasBeenSet; }
414 template <typename TdeCredentialArnT = Aws::String>
415 void SetTdeCredentialArn(TdeCredentialArnT&& value) {
416 m_tdeCredentialArnHasBeenSet = true;
417 m_tdeCredentialArn = std::forward<TdeCredentialArnT>(value);
418 }
419 template <typename TdeCredentialArnT = Aws::String>
420 AwsRdsDbSnapshotDetails& WithTdeCredentialArn(TdeCredentialArnT&& value) {
421 SetTdeCredentialArn(std::forward<TdeCredentialArnT>(value));
422 return *this;
423 }
425
427
430 inline bool GetEncrypted() const { return m_encrypted; }
431 inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; }
432 inline void SetEncrypted(bool value) {
433 m_encryptedHasBeenSet = true;
434 m_encrypted = value;
435 }
437 SetEncrypted(value);
438 return *this;
439 }
441
443
447 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
448 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
449 template <typename KmsKeyIdT = Aws::String>
450 void SetKmsKeyId(KmsKeyIdT&& value) {
451 m_kmsKeyIdHasBeenSet = true;
452 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
453 }
454 template <typename KmsKeyIdT = Aws::String>
456 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
457 return *this;
458 }
460
462
465 inline const Aws::String& GetTimezone() const { return m_timezone; }
466 inline bool TimezoneHasBeenSet() const { return m_timezoneHasBeenSet; }
467 template <typename TimezoneT = Aws::String>
468 void SetTimezone(TimezoneT&& value) {
469 m_timezoneHasBeenSet = true;
470 m_timezone = std::forward<TimezoneT>(value);
471 }
472 template <typename TimezoneT = Aws::String>
474 SetTimezone(std::forward<TimezoneT>(value));
475 return *this;
476 }
478
480
483 inline bool GetIamDatabaseAuthenticationEnabled() const { return m_iamDatabaseAuthenticationEnabled; }
484 inline bool IamDatabaseAuthenticationEnabledHasBeenSet() const { return m_iamDatabaseAuthenticationEnabledHasBeenSet; }
485 inline void SetIamDatabaseAuthenticationEnabled(bool value) {
486 m_iamDatabaseAuthenticationEnabledHasBeenSet = true;
487 m_iamDatabaseAuthenticationEnabled = value;
488 }
491 return *this;
492 }
494
496
500 inline const Aws::Vector<AwsRdsDbProcessorFeature>& GetProcessorFeatures() const { return m_processorFeatures; }
501 inline bool ProcessorFeaturesHasBeenSet() const { return m_processorFeaturesHasBeenSet; }
502 template <typename ProcessorFeaturesT = Aws::Vector<AwsRdsDbProcessorFeature>>
503 void SetProcessorFeatures(ProcessorFeaturesT&& value) {
504 m_processorFeaturesHasBeenSet = true;
505 m_processorFeatures = std::forward<ProcessorFeaturesT>(value);
506 }
507 template <typename ProcessorFeaturesT = Aws::Vector<AwsRdsDbProcessorFeature>>
508 AwsRdsDbSnapshotDetails& WithProcessorFeatures(ProcessorFeaturesT&& value) {
509 SetProcessorFeatures(std::forward<ProcessorFeaturesT>(value));
510 return *this;
511 }
512 template <typename ProcessorFeaturesT = AwsRdsDbProcessorFeature>
513 AwsRdsDbSnapshotDetails& AddProcessorFeatures(ProcessorFeaturesT&& value) {
514 m_processorFeaturesHasBeenSet = true;
515 m_processorFeatures.emplace_back(std::forward<ProcessorFeaturesT>(value));
516 return *this;
517 }
519
521
524 inline const Aws::String& GetDbiResourceId() const { return m_dbiResourceId; }
525 inline bool DbiResourceIdHasBeenSet() const { return m_dbiResourceIdHasBeenSet; }
526 template <typename DbiResourceIdT = Aws::String>
527 void SetDbiResourceId(DbiResourceIdT&& value) {
528 m_dbiResourceIdHasBeenSet = true;
529 m_dbiResourceId = std::forward<DbiResourceIdT>(value);
530 }
531 template <typename DbiResourceIdT = Aws::String>
533 SetDbiResourceId(std::forward<DbiResourceIdT>(value));
534 return *this;
535 }
537 private:
538 Aws::String m_dbSnapshotIdentifier;
539
540 Aws::String m_dbInstanceIdentifier;
541
542 Aws::String m_snapshotCreateTime;
543
544 Aws::String m_engine;
545
546 int m_allocatedStorage{0};
547
548 Aws::String m_status;
549
550 int m_port{0};
551
552 Aws::String m_availabilityZone;
553
554 Aws::String m_vpcId;
555
556 Aws::String m_instanceCreateTime;
557
558 Aws::String m_masterUsername;
559
560 Aws::String m_engineVersion;
561
562 Aws::String m_licenseModel;
563
564 Aws::String m_snapshotType;
565
566 int m_iops{0};
567
568 Aws::String m_optionGroupName;
569
570 int m_percentProgress{0};
571
572 Aws::String m_sourceRegion;
573
574 Aws::String m_sourceDbSnapshotIdentifier;
575
576 Aws::String m_storageType;
577
578 Aws::String m_tdeCredentialArn;
579
580 bool m_encrypted{false};
581
582 Aws::String m_kmsKeyId;
583
584 Aws::String m_timezone;
585
586 bool m_iamDatabaseAuthenticationEnabled{false};
587
588 Aws::Vector<AwsRdsDbProcessorFeature> m_processorFeatures;
589
590 Aws::String m_dbiResourceId;
591 bool m_dbSnapshotIdentifierHasBeenSet = false;
592 bool m_dbInstanceIdentifierHasBeenSet = false;
593 bool m_snapshotCreateTimeHasBeenSet = false;
594 bool m_engineHasBeenSet = false;
595 bool m_allocatedStorageHasBeenSet = false;
596 bool m_statusHasBeenSet = false;
597 bool m_portHasBeenSet = false;
598 bool m_availabilityZoneHasBeenSet = false;
599 bool m_vpcIdHasBeenSet = false;
600 bool m_instanceCreateTimeHasBeenSet = false;
601 bool m_masterUsernameHasBeenSet = false;
602 bool m_engineVersionHasBeenSet = false;
603 bool m_licenseModelHasBeenSet = false;
604 bool m_snapshotTypeHasBeenSet = false;
605 bool m_iopsHasBeenSet = false;
606 bool m_optionGroupNameHasBeenSet = false;
607 bool m_percentProgressHasBeenSet = false;
608 bool m_sourceRegionHasBeenSet = false;
609 bool m_sourceDbSnapshotIdentifierHasBeenSet = false;
610 bool m_storageTypeHasBeenSet = false;
611 bool m_tdeCredentialArnHasBeenSet = false;
612 bool m_encryptedHasBeenSet = false;
613 bool m_kmsKeyIdHasBeenSet = false;
614 bool m_timezoneHasBeenSet = false;
615 bool m_iamDatabaseAuthenticationEnabledHasBeenSet = false;
616 bool m_processorFeaturesHasBeenSet = false;
617 bool m_dbiResourceIdHasBeenSet = false;
618};
619
620} // namespace Model
621} // namespace SecurityHub
622} // namespace Aws
void SetDbInstanceIdentifier(DbInstanceIdentifierT &&value)
AwsRdsDbSnapshotDetails & WithProcessorFeatures(ProcessorFeaturesT &&value)
AwsRdsDbSnapshotDetails & WithLicenseModel(LicenseModelT &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SECURITYHUB_API AwsRdsDbSnapshotDetails()=default
AwsRdsDbSnapshotDetails & WithTdeCredentialArn(TdeCredentialArnT &&value)
AwsRdsDbSnapshotDetails & WithStatus(StatusT &&value)
AwsRdsDbSnapshotDetails & WithVpcId(VpcIdT &&value)
AwsRdsDbSnapshotDetails & WithSourceRegion(SourceRegionT &&value)
AwsRdsDbSnapshotDetails & WithSourceDbSnapshotIdentifier(SourceDbSnapshotIdentifierT &&value)
AwsRdsDbSnapshotDetails & WithStorageType(StorageTypeT &&value)
AwsRdsDbSnapshotDetails & WithEncrypted(bool value)
AwsRdsDbSnapshotDetails & WithKmsKeyId(KmsKeyIdT &&value)
AwsRdsDbSnapshotDetails & WithIamDatabaseAuthenticationEnabled(bool value)
AWS_SECURITYHUB_API AwsRdsDbSnapshotDetails(Aws::Utils::Json::JsonView jsonValue)
AwsRdsDbSnapshotDetails & WithAllocatedStorage(int value)
const Aws::Vector< AwsRdsDbProcessorFeature > & GetProcessorFeatures() const
void SetDbSnapshotIdentifier(DbSnapshotIdentifierT &&value)
AwsRdsDbSnapshotDetails & WithDbInstanceIdentifier(DbInstanceIdentifierT &&value)
void SetSourceDbSnapshotIdentifier(SourceDbSnapshotIdentifierT &&value)
void SetSnapshotCreateTime(SnapshotCreateTimeT &&value)
AwsRdsDbSnapshotDetails & WithDbSnapshotIdentifier(DbSnapshotIdentifierT &&value)
AwsRdsDbSnapshotDetails & WithSnapshotCreateTime(SnapshotCreateTimeT &&value)
AwsRdsDbSnapshotDetails & WithEngine(EngineT &&value)
AwsRdsDbSnapshotDetails & WithPercentProgress(int value)
AwsRdsDbSnapshotDetails & WithInstanceCreateTime(InstanceCreateTimeT &&value)
AwsRdsDbSnapshotDetails & WithTimezone(TimezoneT &&value)
AwsRdsDbSnapshotDetails & WithMasterUsername(MasterUsernameT &&value)
AWS_SECURITYHUB_API AwsRdsDbSnapshotDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsRdsDbSnapshotDetails & WithOptionGroupName(OptionGroupNameT &&value)
AwsRdsDbSnapshotDetails & WithAvailabilityZone(AvailabilityZoneT &&value)
AwsRdsDbSnapshotDetails & WithSnapshotType(SnapshotTypeT &&value)
AwsRdsDbSnapshotDetails & WithDbiResourceId(DbiResourceIdT &&value)
AwsRdsDbSnapshotDetails & AddProcessorFeatures(ProcessorFeaturesT &&value)
AwsRdsDbSnapshotDetails & WithEngineVersion(EngineVersionT &&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