AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
DBSnapshot.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/rds/RDS_EXPORTS.h>
12#include <aws/rds/model/AdditionalStorageVolume.h>
13#include <aws/rds/model/ProcessorFeature.h>
14#include <aws/rds/model/Tag.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Xml {
21class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace RDS {
25namespace Model {
26
35 public:
36 AWS_RDS_API DBSnapshot() = default;
37 AWS_RDS_API DBSnapshot(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_RDS_API DBSnapshot& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
44
47 inline const Aws::String& GetDBSnapshotIdentifier() const { return m_dBSnapshotIdentifier; }
48 inline bool DBSnapshotIdentifierHasBeenSet() const { return m_dBSnapshotIdentifierHasBeenSet; }
49 template <typename DBSnapshotIdentifierT = Aws::String>
50 void SetDBSnapshotIdentifier(DBSnapshotIdentifierT&& value) {
51 m_dBSnapshotIdentifierHasBeenSet = true;
52 m_dBSnapshotIdentifier = std::forward<DBSnapshotIdentifierT>(value);
53 }
54 template <typename DBSnapshotIdentifierT = Aws::String>
55 DBSnapshot& WithDBSnapshotIdentifier(DBSnapshotIdentifierT&& value) {
56 SetDBSnapshotIdentifier(std::forward<DBSnapshotIdentifierT>(value));
57 return *this;
58 }
60
62
66 inline const Aws::String& GetDBInstanceIdentifier() const { return m_dBInstanceIdentifier; }
67 inline bool DBInstanceIdentifierHasBeenSet() const { return m_dBInstanceIdentifierHasBeenSet; }
68 template <typename DBInstanceIdentifierT = Aws::String>
69 void SetDBInstanceIdentifier(DBInstanceIdentifierT&& value) {
70 m_dBInstanceIdentifierHasBeenSet = true;
71 m_dBInstanceIdentifier = std::forward<DBInstanceIdentifierT>(value);
72 }
73 template <typename DBInstanceIdentifierT = Aws::String>
74 DBSnapshot& WithDBInstanceIdentifier(DBInstanceIdentifierT&& value) {
75 SetDBInstanceIdentifier(std::forward<DBInstanceIdentifierT>(value));
76 return *this;
77 }
79
81
85 inline const Aws::Utils::DateTime& GetSnapshotCreateTime() const { return m_snapshotCreateTime; }
86 inline bool SnapshotCreateTimeHasBeenSet() const { return m_snapshotCreateTimeHasBeenSet; }
87 template <typename SnapshotCreateTimeT = Aws::Utils::DateTime>
88 void SetSnapshotCreateTime(SnapshotCreateTimeT&& value) {
89 m_snapshotCreateTimeHasBeenSet = true;
90 m_snapshotCreateTime = std::forward<SnapshotCreateTimeT>(value);
91 }
92 template <typename SnapshotCreateTimeT = Aws::Utils::DateTime>
93 DBSnapshot& WithSnapshotCreateTime(SnapshotCreateTimeT&& value) {
94 SetSnapshotCreateTime(std::forward<SnapshotCreateTimeT>(value));
95 return *this;
96 }
98
100
103 inline const Aws::String& GetEngine() const { return m_engine; }
104 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
105 template <typename EngineT = Aws::String>
106 void SetEngine(EngineT&& value) {
107 m_engineHasBeenSet = true;
108 m_engine = std::forward<EngineT>(value);
109 }
110 template <typename EngineT = Aws::String>
111 DBSnapshot& WithEngine(EngineT&& value) {
112 SetEngine(std::forward<EngineT>(value));
113 return *this;
114 }
116
118
121 inline int GetAllocatedStorage() const { return m_allocatedStorage; }
122 inline bool AllocatedStorageHasBeenSet() const { return m_allocatedStorageHasBeenSet; }
123 inline void SetAllocatedStorage(int value) {
124 m_allocatedStorageHasBeenSet = true;
125 m_allocatedStorage = value;
126 }
127 inline DBSnapshot& WithAllocatedStorage(int value) {
128 SetAllocatedStorage(value);
129 return *this;
130 }
132
134
137 inline const Aws::String& GetStatus() const { return m_status; }
138 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
139 template <typename StatusT = Aws::String>
140 void SetStatus(StatusT&& value) {
141 m_statusHasBeenSet = true;
142 m_status = std::forward<StatusT>(value);
143 }
144 template <typename StatusT = Aws::String>
145 DBSnapshot& WithStatus(StatusT&& value) {
146 SetStatus(std::forward<StatusT>(value));
147 return *this;
148 }
150
152
156 inline int GetPort() const { return m_port; }
157 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
158 inline void SetPort(int value) {
159 m_portHasBeenSet = true;
160 m_port = value;
161 }
162 inline DBSnapshot& WithPort(int value) {
163 SetPort(value);
164 return *this;
165 }
167
169
173 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
174 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
175 template <typename AvailabilityZoneT = Aws::String>
176 void SetAvailabilityZone(AvailabilityZoneT&& value) {
177 m_availabilityZoneHasBeenSet = true;
178 m_availabilityZone = std::forward<AvailabilityZoneT>(value);
179 }
180 template <typename AvailabilityZoneT = Aws::String>
181 DBSnapshot& WithAvailabilityZone(AvailabilityZoneT&& value) {
182 SetAvailabilityZone(std::forward<AvailabilityZoneT>(value));
183 return *this;
184 }
186
188
191 inline const Aws::String& GetVpcId() const { return m_vpcId; }
192 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
193 template <typename VpcIdT = Aws::String>
194 void SetVpcId(VpcIdT&& value) {
195 m_vpcIdHasBeenSet = true;
196 m_vpcId = std::forward<VpcIdT>(value);
197 }
198 template <typename VpcIdT = Aws::String>
199 DBSnapshot& WithVpcId(VpcIdT&& value) {
200 SetVpcId(std::forward<VpcIdT>(value));
201 return *this;
202 }
204
206
210 inline const Aws::Utils::DateTime& GetInstanceCreateTime() const { return m_instanceCreateTime; }
211 inline bool InstanceCreateTimeHasBeenSet() const { return m_instanceCreateTimeHasBeenSet; }
212 template <typename InstanceCreateTimeT = Aws::Utils::DateTime>
213 void SetInstanceCreateTime(InstanceCreateTimeT&& value) {
214 m_instanceCreateTimeHasBeenSet = true;
215 m_instanceCreateTime = std::forward<InstanceCreateTimeT>(value);
216 }
217 template <typename InstanceCreateTimeT = Aws::Utils::DateTime>
218 DBSnapshot& WithInstanceCreateTime(InstanceCreateTimeT&& value) {
219 SetInstanceCreateTime(std::forward<InstanceCreateTimeT>(value));
220 return *this;
221 }
223
225
228 inline const Aws::String& GetMasterUsername() const { return m_masterUsername; }
229 inline bool MasterUsernameHasBeenSet() const { return m_masterUsernameHasBeenSet; }
230 template <typename MasterUsernameT = Aws::String>
231 void SetMasterUsername(MasterUsernameT&& value) {
232 m_masterUsernameHasBeenSet = true;
233 m_masterUsername = std::forward<MasterUsernameT>(value);
234 }
235 template <typename MasterUsernameT = Aws::String>
236 DBSnapshot& WithMasterUsername(MasterUsernameT&& value) {
237 SetMasterUsername(std::forward<MasterUsernameT>(value));
238 return *this;
239 }
241
243
246 inline const Aws::String& GetEngineVersion() const { return m_engineVersion; }
247 inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; }
248 template <typename EngineVersionT = Aws::String>
249 void SetEngineVersion(EngineVersionT&& value) {
250 m_engineVersionHasBeenSet = true;
251 m_engineVersion = std::forward<EngineVersionT>(value);
252 }
253 template <typename EngineVersionT = Aws::String>
254 DBSnapshot& WithEngineVersion(EngineVersionT&& value) {
255 SetEngineVersion(std::forward<EngineVersionT>(value));
256 return *this;
257 }
259
261
264 inline const Aws::String& GetLicenseModel() const { return m_licenseModel; }
265 inline bool LicenseModelHasBeenSet() const { return m_licenseModelHasBeenSet; }
266 template <typename LicenseModelT = Aws::String>
267 void SetLicenseModel(LicenseModelT&& value) {
268 m_licenseModelHasBeenSet = true;
269 m_licenseModel = std::forward<LicenseModelT>(value);
270 }
271 template <typename LicenseModelT = Aws::String>
272 DBSnapshot& WithLicenseModel(LicenseModelT&& value) {
273 SetLicenseModel(std::forward<LicenseModelT>(value));
274 return *this;
275 }
277
279
282 inline const Aws::String& GetSnapshotType() const { return m_snapshotType; }
283 inline bool SnapshotTypeHasBeenSet() const { return m_snapshotTypeHasBeenSet; }
284 template <typename SnapshotTypeT = Aws::String>
285 void SetSnapshotType(SnapshotTypeT&& value) {
286 m_snapshotTypeHasBeenSet = true;
287 m_snapshotType = std::forward<SnapshotTypeT>(value);
288 }
289 template <typename SnapshotTypeT = Aws::String>
290 DBSnapshot& WithSnapshotType(SnapshotTypeT&& value) {
291 SetSnapshotType(std::forward<SnapshotTypeT>(value));
292 return *this;
293 }
295
297
301 inline int GetIops() const { return m_iops; }
302 inline bool IopsHasBeenSet() const { return m_iopsHasBeenSet; }
303 inline void SetIops(int value) {
304 m_iopsHasBeenSet = true;
305 m_iops = value;
306 }
307 inline DBSnapshot& WithIops(int value) {
308 SetIops(value);
309 return *this;
310 }
312
314
317 inline int GetStorageThroughput() const { return m_storageThroughput; }
318 inline bool StorageThroughputHasBeenSet() const { return m_storageThroughputHasBeenSet; }
319 inline void SetStorageThroughput(int value) {
320 m_storageThroughputHasBeenSet = true;
321 m_storageThroughput = value;
322 }
325 return *this;
326 }
328
330
333 inline const Aws::String& GetOptionGroupName() const { return m_optionGroupName; }
334 inline bool OptionGroupNameHasBeenSet() const { return m_optionGroupNameHasBeenSet; }
335 template <typename OptionGroupNameT = Aws::String>
336 void SetOptionGroupName(OptionGroupNameT&& value) {
337 m_optionGroupNameHasBeenSet = true;
338 m_optionGroupName = std::forward<OptionGroupNameT>(value);
339 }
340 template <typename OptionGroupNameT = Aws::String>
341 DBSnapshot& WithOptionGroupName(OptionGroupNameT&& value) {
342 SetOptionGroupName(std::forward<OptionGroupNameT>(value));
343 return *this;
344 }
346
348
351 inline int GetPercentProgress() const { return m_percentProgress; }
352 inline bool PercentProgressHasBeenSet() const { return m_percentProgressHasBeenSet; }
353 inline void SetPercentProgress(int value) {
354 m_percentProgressHasBeenSet = true;
355 m_percentProgress = value;
356 }
357 inline DBSnapshot& WithPercentProgress(int value) {
358 SetPercentProgress(value);
359 return *this;
360 }
362
364
368 inline const Aws::String& GetSourceRegion() const { return m_sourceRegion; }
369 inline bool SourceRegionHasBeenSet() const { return m_sourceRegionHasBeenSet; }
370 template <typename SourceRegionT = Aws::String>
371 void SetSourceRegion(SourceRegionT&& value) {
372 m_sourceRegionHasBeenSet = true;
373 m_sourceRegion = std::forward<SourceRegionT>(value);
374 }
375 template <typename SourceRegionT = Aws::String>
376 DBSnapshot& WithSourceRegion(SourceRegionT&& value) {
377 SetSourceRegion(std::forward<SourceRegionT>(value));
378 return *this;
379 }
381
383
388 inline const Aws::String& GetSourceDBSnapshotIdentifier() const { return m_sourceDBSnapshotIdentifier; }
389 inline bool SourceDBSnapshotIdentifierHasBeenSet() const { return m_sourceDBSnapshotIdentifierHasBeenSet; }
390 template <typename SourceDBSnapshotIdentifierT = Aws::String>
391 void SetSourceDBSnapshotIdentifier(SourceDBSnapshotIdentifierT&& value) {
392 m_sourceDBSnapshotIdentifierHasBeenSet = true;
393 m_sourceDBSnapshotIdentifier = std::forward<SourceDBSnapshotIdentifierT>(value);
394 }
395 template <typename SourceDBSnapshotIdentifierT = Aws::String>
396 DBSnapshot& WithSourceDBSnapshotIdentifier(SourceDBSnapshotIdentifierT&& value) {
397 SetSourceDBSnapshotIdentifier(std::forward<SourceDBSnapshotIdentifierT>(value));
398 return *this;
399 }
401
403
406 inline const Aws::String& GetStorageType() const { return m_storageType; }
407 inline bool StorageTypeHasBeenSet() const { return m_storageTypeHasBeenSet; }
408 template <typename StorageTypeT = Aws::String>
409 void SetStorageType(StorageTypeT&& value) {
410 m_storageTypeHasBeenSet = true;
411 m_storageType = std::forward<StorageTypeT>(value);
412 }
413 template <typename StorageTypeT = Aws::String>
414 DBSnapshot& WithStorageType(StorageTypeT&& value) {
415 SetStorageType(std::forward<StorageTypeT>(value));
416 return *this;
417 }
419
421
425 inline const Aws::String& GetTdeCredentialArn() const { return m_tdeCredentialArn; }
426 inline bool TdeCredentialArnHasBeenSet() const { return m_tdeCredentialArnHasBeenSet; }
427 template <typename TdeCredentialArnT = Aws::String>
428 void SetTdeCredentialArn(TdeCredentialArnT&& value) {
429 m_tdeCredentialArnHasBeenSet = true;
430 m_tdeCredentialArn = std::forward<TdeCredentialArnT>(value);
431 }
432 template <typename TdeCredentialArnT = Aws::String>
433 DBSnapshot& WithTdeCredentialArn(TdeCredentialArnT&& value) {
434 SetTdeCredentialArn(std::forward<TdeCredentialArnT>(value));
435 return *this;
436 }
438
440
443 inline bool GetEncrypted() const { return m_encrypted; }
444 inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; }
445 inline void SetEncrypted(bool value) {
446 m_encryptedHasBeenSet = true;
447 m_encrypted = value;
448 }
449 inline DBSnapshot& WithEncrypted(bool value) {
450 SetEncrypted(value);
451 return *this;
452 }
454
456
459 inline int GetBackupRetentionPeriod() const { return m_backupRetentionPeriod; }
460 inline bool BackupRetentionPeriodHasBeenSet() const { return m_backupRetentionPeriodHasBeenSet; }
461 inline void SetBackupRetentionPeriod(int value) {
462 m_backupRetentionPeriodHasBeenSet = true;
463 m_backupRetentionPeriod = value;
464 }
467 return *this;
468 }
470
472
477 inline const Aws::String& GetPreferredBackupWindow() const { return m_preferredBackupWindow; }
478 inline bool PreferredBackupWindowHasBeenSet() const { return m_preferredBackupWindowHasBeenSet; }
479 template <typename PreferredBackupWindowT = Aws::String>
480 void SetPreferredBackupWindow(PreferredBackupWindowT&& value) {
481 m_preferredBackupWindowHasBeenSet = true;
482 m_preferredBackupWindow = std::forward<PreferredBackupWindowT>(value);
483 }
484 template <typename PreferredBackupWindowT = Aws::String>
485 DBSnapshot& WithPreferredBackupWindow(PreferredBackupWindowT&& value) {
486 SetPreferredBackupWindow(std::forward<PreferredBackupWindowT>(value));
487 return *this;
488 }
490
492
497 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
498 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
499 template <typename KmsKeyIdT = Aws::String>
500 void SetKmsKeyId(KmsKeyIdT&& value) {
501 m_kmsKeyIdHasBeenSet = true;
502 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
503 }
504 template <typename KmsKeyIdT = Aws::String>
505 DBSnapshot& WithKmsKeyId(KmsKeyIdT&& value) {
506 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
507 return *this;
508 }
510
512
515 inline const Aws::String& GetDBSnapshotArn() const { return m_dBSnapshotArn; }
516 inline bool DBSnapshotArnHasBeenSet() const { return m_dBSnapshotArnHasBeenSet; }
517 template <typename DBSnapshotArnT = Aws::String>
518 void SetDBSnapshotArn(DBSnapshotArnT&& value) {
519 m_dBSnapshotArnHasBeenSet = true;
520 m_dBSnapshotArn = std::forward<DBSnapshotArnT>(value);
521 }
522 template <typename DBSnapshotArnT = Aws::String>
523 DBSnapshot& WithDBSnapshotArn(DBSnapshotArnT&& value) {
524 SetDBSnapshotArn(std::forward<DBSnapshotArnT>(value));
525 return *this;
526 }
528
530
536 inline const Aws::String& GetTimezone() const { return m_timezone; }
537 inline bool TimezoneHasBeenSet() const { return m_timezoneHasBeenSet; }
538 template <typename TimezoneT = Aws::String>
539 void SetTimezone(TimezoneT&& value) {
540 m_timezoneHasBeenSet = true;
541 m_timezone = std::forward<TimezoneT>(value);
542 }
543 template <typename TimezoneT = Aws::String>
544 DBSnapshot& WithTimezone(TimezoneT&& value) {
545 SetTimezone(std::forward<TimezoneT>(value));
546 return *this;
547 }
549
551
555 inline bool GetIAMDatabaseAuthenticationEnabled() const { return m_iAMDatabaseAuthenticationEnabled; }
556 inline bool IAMDatabaseAuthenticationEnabledHasBeenSet() const { return m_iAMDatabaseAuthenticationEnabledHasBeenSet; }
557 inline void SetIAMDatabaseAuthenticationEnabled(bool value) {
558 m_iAMDatabaseAuthenticationEnabledHasBeenSet = true;
559 m_iAMDatabaseAuthenticationEnabled = value;
560 }
563 return *this;
564 }
566
568
572 inline const Aws::Vector<ProcessorFeature>& GetProcessorFeatures() const { return m_processorFeatures; }
573 inline bool ProcessorFeaturesHasBeenSet() const { return m_processorFeaturesHasBeenSet; }
574 template <typename ProcessorFeaturesT = Aws::Vector<ProcessorFeature>>
575 void SetProcessorFeatures(ProcessorFeaturesT&& value) {
576 m_processorFeaturesHasBeenSet = true;
577 m_processorFeatures = std::forward<ProcessorFeaturesT>(value);
578 }
579 template <typename ProcessorFeaturesT = Aws::Vector<ProcessorFeature>>
580 DBSnapshot& WithProcessorFeatures(ProcessorFeaturesT&& value) {
581 SetProcessorFeatures(std::forward<ProcessorFeaturesT>(value));
582 return *this;
583 }
584 template <typename ProcessorFeaturesT = ProcessorFeature>
585 DBSnapshot& AddProcessorFeatures(ProcessorFeaturesT&& value) {
586 m_processorFeaturesHasBeenSet = true;
587 m_processorFeatures.emplace_back(std::forward<ProcessorFeaturesT>(value));
588 return *this;
589 }
591
593
597 inline const Aws::String& GetDbiResourceId() const { return m_dbiResourceId; }
598 inline bool DbiResourceIdHasBeenSet() const { return m_dbiResourceIdHasBeenSet; }
599 template <typename DbiResourceIdT = Aws::String>
600 void SetDbiResourceId(DbiResourceIdT&& value) {
601 m_dbiResourceIdHasBeenSet = true;
602 m_dbiResourceId = std::forward<DbiResourceIdT>(value);
603 }
604 template <typename DbiResourceIdT = Aws::String>
605 DBSnapshot& WithDbiResourceId(DbiResourceIdT&& value) {
606 SetDbiResourceId(std::forward<DbiResourceIdT>(value));
607 return *this;
608 }
610
612
613 inline const Aws::Vector<Tag>& GetTagList() const { return m_tagList; }
614 inline bool TagListHasBeenSet() const { return m_tagListHasBeenSet; }
615 template <typename TagListT = Aws::Vector<Tag>>
616 void SetTagList(TagListT&& value) {
617 m_tagListHasBeenSet = true;
618 m_tagList = std::forward<TagListT>(value);
619 }
620 template <typename TagListT = Aws::Vector<Tag>>
621 DBSnapshot& WithTagList(TagListT&& value) {
622 SetTagList(std::forward<TagListT>(value));
623 return *this;
624 }
625 template <typename TagListT = Tag>
626 DBSnapshot& AddTagList(TagListT&& value) {
627 m_tagListHasBeenSet = true;
628 m_tagList.emplace_back(std::forward<TagListT>(value));
629 return *this;
630 }
632
634
638 inline const Aws::String& GetSnapshotTarget() const { return m_snapshotTarget; }
639 inline bool SnapshotTargetHasBeenSet() const { return m_snapshotTargetHasBeenSet; }
640 template <typename SnapshotTargetT = Aws::String>
641 void SetSnapshotTarget(SnapshotTargetT&& value) {
642 m_snapshotTargetHasBeenSet = true;
643 m_snapshotTarget = std::forward<SnapshotTargetT>(value);
644 }
645 template <typename SnapshotTargetT = Aws::String>
646 DBSnapshot& WithSnapshotTarget(SnapshotTargetT&& value) {
647 SetSnapshotTarget(std::forward<SnapshotTargetT>(value));
648 return *this;
649 }
651
653
657 inline const Aws::Utils::DateTime& GetOriginalSnapshotCreateTime() const { return m_originalSnapshotCreateTime; }
658 inline bool OriginalSnapshotCreateTimeHasBeenSet() const { return m_originalSnapshotCreateTimeHasBeenSet; }
659 template <typename OriginalSnapshotCreateTimeT = Aws::Utils::DateTime>
660 void SetOriginalSnapshotCreateTime(OriginalSnapshotCreateTimeT&& value) {
661 m_originalSnapshotCreateTimeHasBeenSet = true;
662 m_originalSnapshotCreateTime = std::forward<OriginalSnapshotCreateTimeT>(value);
663 }
664 template <typename OriginalSnapshotCreateTimeT = Aws::Utils::DateTime>
665 DBSnapshot& WithOriginalSnapshotCreateTime(OriginalSnapshotCreateTimeT&& value) {
666 SetOriginalSnapshotCreateTime(std::forward<OriginalSnapshotCreateTimeT>(value));
667 return *this;
668 }
670
672
682 inline const Aws::Utils::DateTime& GetSnapshotDatabaseTime() const { return m_snapshotDatabaseTime; }
683 inline bool SnapshotDatabaseTimeHasBeenSet() const { return m_snapshotDatabaseTimeHasBeenSet; }
684 template <typename SnapshotDatabaseTimeT = Aws::Utils::DateTime>
685 void SetSnapshotDatabaseTime(SnapshotDatabaseTimeT&& value) {
686 m_snapshotDatabaseTimeHasBeenSet = true;
687 m_snapshotDatabaseTime = std::forward<SnapshotDatabaseTimeT>(value);
688 }
689 template <typename SnapshotDatabaseTimeT = Aws::Utils::DateTime>
690 DBSnapshot& WithSnapshotDatabaseTime(SnapshotDatabaseTimeT&& value) {
691 SetSnapshotDatabaseTime(std::forward<SnapshotDatabaseTimeT>(value));
692 return *this;
693 }
695
697
702 inline const Aws::String& GetDBSystemId() const { return m_dBSystemId; }
703 inline bool DBSystemIdHasBeenSet() const { return m_dBSystemIdHasBeenSet; }
704 template <typename DBSystemIdT = Aws::String>
705 void SetDBSystemId(DBSystemIdT&& value) {
706 m_dBSystemIdHasBeenSet = true;
707 m_dBSystemId = std::forward<DBSystemIdT>(value);
708 }
709 template <typename DBSystemIdT = Aws::String>
710 DBSnapshot& WithDBSystemId(DBSystemIdT&& value) {
711 SetDBSystemId(std::forward<DBSystemIdT>(value));
712 return *this;
713 }
715
717
721 inline bool GetMultiTenant() const { return m_multiTenant; }
722 inline bool MultiTenantHasBeenSet() const { return m_multiTenantHasBeenSet; }
723 inline void SetMultiTenant(bool value) {
724 m_multiTenantHasBeenSet = true;
725 m_multiTenant = value;
726 }
727 inline DBSnapshot& WithMultiTenant(bool value) {
728 SetMultiTenant(value);
729 return *this;
730 }
732
734
738 inline bool GetDedicatedLogVolume() const { return m_dedicatedLogVolume; }
739 inline bool DedicatedLogVolumeHasBeenSet() const { return m_dedicatedLogVolumeHasBeenSet; }
740 inline void SetDedicatedLogVolume(bool value) {
741 m_dedicatedLogVolumeHasBeenSet = true;
742 m_dedicatedLogVolume = value;
743 }
744 inline DBSnapshot& WithDedicatedLogVolume(bool value) {
746 return *this;
747 }
749
751
755 inline const Aws::Vector<AdditionalStorageVolume>& GetAdditionalStorageVolumes() const { return m_additionalStorageVolumes; }
756 inline bool AdditionalStorageVolumesHasBeenSet() const { return m_additionalStorageVolumesHasBeenSet; }
757 template <typename AdditionalStorageVolumesT = Aws::Vector<AdditionalStorageVolume>>
758 void SetAdditionalStorageVolumes(AdditionalStorageVolumesT&& value) {
759 m_additionalStorageVolumesHasBeenSet = true;
760 m_additionalStorageVolumes = std::forward<AdditionalStorageVolumesT>(value);
761 }
762 template <typename AdditionalStorageVolumesT = Aws::Vector<AdditionalStorageVolume>>
763 DBSnapshot& WithAdditionalStorageVolumes(AdditionalStorageVolumesT&& value) {
764 SetAdditionalStorageVolumes(std::forward<AdditionalStorageVolumesT>(value));
765 return *this;
766 }
767 template <typename AdditionalStorageVolumesT = AdditionalStorageVolume>
768 DBSnapshot& AddAdditionalStorageVolumes(AdditionalStorageVolumesT&& value) {
769 m_additionalStorageVolumesHasBeenSet = true;
770 m_additionalStorageVolumes.emplace_back(std::forward<AdditionalStorageVolumesT>(value));
771 return *this;
772 }
774
776
781 inline const Aws::String& GetSnapshotAvailabilityZone() const { return m_snapshotAvailabilityZone; }
782 inline bool SnapshotAvailabilityZoneHasBeenSet() const { return m_snapshotAvailabilityZoneHasBeenSet; }
783 template <typename SnapshotAvailabilityZoneT = Aws::String>
784 void SetSnapshotAvailabilityZone(SnapshotAvailabilityZoneT&& value) {
785 m_snapshotAvailabilityZoneHasBeenSet = true;
786 m_snapshotAvailabilityZone = std::forward<SnapshotAvailabilityZoneT>(value);
787 }
788 template <typename SnapshotAvailabilityZoneT = Aws::String>
789 DBSnapshot& WithSnapshotAvailabilityZone(SnapshotAvailabilityZoneT&& value) {
790 SetSnapshotAvailabilityZone(std::forward<SnapshotAvailabilityZoneT>(value));
791 return *this;
792 }
794 private:
795 Aws::String m_dBSnapshotIdentifier;
796
797 Aws::String m_dBInstanceIdentifier;
798
799 Aws::Utils::DateTime m_snapshotCreateTime{};
800
801 Aws::String m_engine;
802
803 int m_allocatedStorage{0};
804
805 Aws::String m_status;
806
807 int m_port{0};
808
809 Aws::String m_availabilityZone;
810
811 Aws::String m_vpcId;
812
813 Aws::Utils::DateTime m_instanceCreateTime{};
814
815 Aws::String m_masterUsername;
816
817 Aws::String m_engineVersion;
818
819 Aws::String m_licenseModel;
820
821 Aws::String m_snapshotType;
822
823 int m_iops{0};
824
825 int m_storageThroughput{0};
826
827 Aws::String m_optionGroupName;
828
829 int m_percentProgress{0};
830
831 Aws::String m_sourceRegion;
832
833 Aws::String m_sourceDBSnapshotIdentifier;
834
835 Aws::String m_storageType;
836
837 Aws::String m_tdeCredentialArn;
838
839 bool m_encrypted{false};
840
841 int m_backupRetentionPeriod{0};
842
843 Aws::String m_preferredBackupWindow;
844
845 Aws::String m_kmsKeyId;
846
847 Aws::String m_dBSnapshotArn;
848
849 Aws::String m_timezone;
850
851 bool m_iAMDatabaseAuthenticationEnabled{false};
852
853 Aws::Vector<ProcessorFeature> m_processorFeatures;
854
855 Aws::String m_dbiResourceId;
856
857 Aws::Vector<Tag> m_tagList;
858
859 Aws::String m_snapshotTarget;
860
861 Aws::Utils::DateTime m_originalSnapshotCreateTime{};
862
863 Aws::Utils::DateTime m_snapshotDatabaseTime{};
864
865 Aws::String m_dBSystemId;
866
867 bool m_multiTenant{false};
868
869 bool m_dedicatedLogVolume{false};
870
871 Aws::Vector<AdditionalStorageVolume> m_additionalStorageVolumes;
872
873 Aws::String m_snapshotAvailabilityZone;
874 bool m_dBSnapshotIdentifierHasBeenSet = false;
875 bool m_dBInstanceIdentifierHasBeenSet = false;
876 bool m_snapshotCreateTimeHasBeenSet = false;
877 bool m_engineHasBeenSet = false;
878 bool m_allocatedStorageHasBeenSet = false;
879 bool m_statusHasBeenSet = false;
880 bool m_portHasBeenSet = false;
881 bool m_availabilityZoneHasBeenSet = false;
882 bool m_vpcIdHasBeenSet = false;
883 bool m_instanceCreateTimeHasBeenSet = false;
884 bool m_masterUsernameHasBeenSet = false;
885 bool m_engineVersionHasBeenSet = false;
886 bool m_licenseModelHasBeenSet = false;
887 bool m_snapshotTypeHasBeenSet = false;
888 bool m_iopsHasBeenSet = false;
889 bool m_storageThroughputHasBeenSet = false;
890 bool m_optionGroupNameHasBeenSet = false;
891 bool m_percentProgressHasBeenSet = false;
892 bool m_sourceRegionHasBeenSet = false;
893 bool m_sourceDBSnapshotIdentifierHasBeenSet = false;
894 bool m_storageTypeHasBeenSet = false;
895 bool m_tdeCredentialArnHasBeenSet = false;
896 bool m_encryptedHasBeenSet = false;
897 bool m_backupRetentionPeriodHasBeenSet = false;
898 bool m_preferredBackupWindowHasBeenSet = false;
899 bool m_kmsKeyIdHasBeenSet = false;
900 bool m_dBSnapshotArnHasBeenSet = false;
901 bool m_timezoneHasBeenSet = false;
902 bool m_iAMDatabaseAuthenticationEnabledHasBeenSet = false;
903 bool m_processorFeaturesHasBeenSet = false;
904 bool m_dbiResourceIdHasBeenSet = false;
905 bool m_tagListHasBeenSet = false;
906 bool m_snapshotTargetHasBeenSet = false;
907 bool m_originalSnapshotCreateTimeHasBeenSet = false;
908 bool m_snapshotDatabaseTimeHasBeenSet = false;
909 bool m_dBSystemIdHasBeenSet = false;
910 bool m_multiTenantHasBeenSet = false;
911 bool m_dedicatedLogVolumeHasBeenSet = false;
912 bool m_additionalStorageVolumesHasBeenSet = false;
913 bool m_snapshotAvailabilityZoneHasBeenSet = false;
914};
915
916} // namespace Model
917} // namespace RDS
918} // namespace Aws
DBSnapshot & WithSnapshotAvailabilityZone(SnapshotAvailabilityZoneT &&value)
Definition DBSnapshot.h:789
void SetTimezone(TimezoneT &&value)
Definition DBSnapshot.h:539
bool MasterUsernameHasBeenSet() const
Definition DBSnapshot.h:229
const Aws::String & GetEngine() const
Definition DBSnapshot.h:103
bool AvailabilityZoneHasBeenSet() const
Definition DBSnapshot.h:174
const Aws::String & GetTdeCredentialArn() const
Definition DBSnapshot.h:425
bool SourceDBSnapshotIdentifierHasBeenSet() const
Definition DBSnapshot.h:389
bool DBSystemIdHasBeenSet() const
Definition DBSnapshot.h:703
const Aws::Utils::DateTime & GetInstanceCreateTime() const
Definition DBSnapshot.h:210
void SetStorageThroughput(int value)
Definition DBSnapshot.h:319
DBSnapshot & WithIops(int value)
Definition DBSnapshot.h:307
void SetOptionGroupName(OptionGroupNameT &&value)
Definition DBSnapshot.h:336
DBSnapshot & WithSourceRegion(SourceRegionT &&value)
Definition DBSnapshot.h:376
const Aws::Vector< AdditionalStorageVolume > & GetAdditionalStorageVolumes() const
Definition DBSnapshot.h:755
void SetOriginalSnapshotCreateTime(OriginalSnapshotCreateTimeT &&value)
Definition DBSnapshot.h:660
DBSnapshot & WithOptionGroupName(OptionGroupNameT &&value)
Definition DBSnapshot.h:341
const Aws::String & GetEngineVersion() const
Definition DBSnapshot.h:246
DBSnapshot & WithEngineVersion(EngineVersionT &&value)
Definition DBSnapshot.h:254
void SetDBSnapshotIdentifier(DBSnapshotIdentifierT &&value)
Definition DBSnapshot.h:50
bool OptionGroupNameHasBeenSet() const
Definition DBSnapshot.h:334
void SetMultiTenant(bool value)
Definition DBSnapshot.h:723
void SetDbiResourceId(DbiResourceIdT &&value)
Definition DBSnapshot.h:600
const Aws::Utils::DateTime & GetSnapshotCreateTime() const
Definition DBSnapshot.h:85
DBSnapshot & WithPercentProgress(int value)
Definition DBSnapshot.h:357
AWS_RDS_API DBSnapshot(const Aws::Utils::Xml::XmlNode &xmlNode)
bool SnapshotDatabaseTimeHasBeenSet() const
Definition DBSnapshot.h:683
bool EncryptedHasBeenSet() const
Definition DBSnapshot.h:444
bool DBInstanceIdentifierHasBeenSet() const
Definition DBSnapshot.h:67
DBSnapshot & AddProcessorFeatures(ProcessorFeaturesT &&value)
Definition DBSnapshot.h:585
bool TdeCredentialArnHasBeenSet() const
Definition DBSnapshot.h:426
const Aws::String & GetDBSnapshotArn() const
Definition DBSnapshot.h:515
void SetSnapshotTarget(SnapshotTargetT &&value)
Definition DBSnapshot.h:641
bool AllocatedStorageHasBeenSet() const
Definition DBSnapshot.h:122
void SetProcessorFeatures(ProcessorFeaturesT &&value)
Definition DBSnapshot.h:575
const Aws::Vector< ProcessorFeature > & GetProcessorFeatures() const
Definition DBSnapshot.h:572
bool SourceRegionHasBeenSet() const
Definition DBSnapshot.h:369
const Aws::String & GetPreferredBackupWindow() const
Definition DBSnapshot.h:477
DBSnapshot & WithMasterUsername(MasterUsernameT &&value)
Definition DBSnapshot.h:236
bool DbiResourceIdHasBeenSet() const
Definition DBSnapshot.h:598
void SetVpcId(VpcIdT &&value)
Definition DBSnapshot.h:194
const Aws::String & GetKmsKeyId() const
Definition DBSnapshot.h:497
void SetTdeCredentialArn(TdeCredentialArnT &&value)
Definition DBSnapshot.h:428
bool SnapshotCreateTimeHasBeenSet() const
Definition DBSnapshot.h:86
bool AdditionalStorageVolumesHasBeenSet() const
Definition DBSnapshot.h:756
DBSnapshot & WithOriginalSnapshotCreateTime(OriginalSnapshotCreateTimeT &&value)
Definition DBSnapshot.h:665
bool PercentProgressHasBeenSet() const
Definition DBSnapshot.h:352
void SetPercentProgress(int value)
Definition DBSnapshot.h:353
DBSnapshot & WithSnapshotCreateTime(SnapshotCreateTimeT &&value)
Definition DBSnapshot.h:93
DBSnapshot & WithProcessorFeatures(ProcessorFeaturesT &&value)
Definition DBSnapshot.h:580
bool SnapshotTypeHasBeenSet() const
Definition DBSnapshot.h:283
void SetLicenseModel(LicenseModelT &&value)
Definition DBSnapshot.h:267
DBSnapshot & AddTagList(TagListT &&value)
Definition DBSnapshot.h:626
const Aws::Utils::DateTime & GetSnapshotDatabaseTime() const
Definition DBSnapshot.h:682
bool IAMDatabaseAuthenticationEnabledHasBeenSet() const
Definition DBSnapshot.h:556
void SetKmsKeyId(KmsKeyIdT &&value)
Definition DBSnapshot.h:500
bool DBSnapshotArnHasBeenSet() const
Definition DBSnapshot.h:516
DBSnapshot & WithDbiResourceId(DbiResourceIdT &&value)
Definition DBSnapshot.h:605
DBSnapshot & WithSnapshotDatabaseTime(SnapshotDatabaseTimeT &&value)
Definition DBSnapshot.h:690
DBSnapshot & WithAllocatedStorage(int value)
Definition DBSnapshot.h:127
bool BackupRetentionPeriodHasBeenSet() const
Definition DBSnapshot.h:460
DBSnapshot & WithTagList(TagListT &&value)
Definition DBSnapshot.h:621
DBSnapshot & WithLicenseModel(LicenseModelT &&value)
Definition DBSnapshot.h:272
const Aws::String & GetDBSystemId() const
Definition DBSnapshot.h:702
const Aws::String & GetVpcId() const
Definition DBSnapshot.h:191
const Aws::String & GetOptionGroupName() const
Definition DBSnapshot.h:333
void SetDBInstanceIdentifier(DBInstanceIdentifierT &&value)
Definition DBSnapshot.h:69
bool StorageTypeHasBeenSet() const
Definition DBSnapshot.h:407
DBSnapshot & WithPort(int value)
Definition DBSnapshot.h:162
AWS_RDS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetDedicatedLogVolume(bool value)
Definition DBSnapshot.h:740
void SetInstanceCreateTime(InstanceCreateTimeT &&value)
Definition DBSnapshot.h:213
DBSnapshot & WithDBInstanceIdentifier(DBInstanceIdentifierT &&value)
Definition DBSnapshot.h:74
bool OriginalSnapshotCreateTimeHasBeenSet() const
Definition DBSnapshot.h:658
void SetDBSnapshotArn(DBSnapshotArnT &&value)
Definition DBSnapshot.h:518
const Aws::Utils::DateTime & GetOriginalSnapshotCreateTime() const
Definition DBSnapshot.h:657
const Aws::String & GetSnapshotAvailabilityZone() const
Definition DBSnapshot.h:781
void SetEngineVersion(EngineVersionT &&value)
Definition DBSnapshot.h:249
bool SnapshotAvailabilityZoneHasBeenSet() const
Definition DBSnapshot.h:782
bool KmsKeyIdHasBeenSet() const
Definition DBSnapshot.h:498
DBSnapshot & WithMultiTenant(bool value)
Definition DBSnapshot.h:727
void SetPreferredBackupWindow(PreferredBackupWindowT &&value)
Definition DBSnapshot.h:480
bool InstanceCreateTimeHasBeenSet() const
Definition DBSnapshot.h:211
DBSnapshot & WithBackupRetentionPeriod(int value)
Definition DBSnapshot.h:465
void SetSnapshotDatabaseTime(SnapshotDatabaseTimeT &&value)
Definition DBSnapshot.h:685
bool StorageThroughputHasBeenSet() const
Definition DBSnapshot.h:318
bool DBSnapshotIdentifierHasBeenSet() const
Definition DBSnapshot.h:48
void SetSnapshotAvailabilityZone(SnapshotAvailabilityZoneT &&value)
Definition DBSnapshot.h:784
void SetEncrypted(bool value)
Definition DBSnapshot.h:445
DBSnapshot & WithVpcId(VpcIdT &&value)
Definition DBSnapshot.h:199
void SetSourceRegion(SourceRegionT &&value)
Definition DBSnapshot.h:371
DBSnapshot & WithDBSnapshotArn(DBSnapshotArnT &&value)
Definition DBSnapshot.h:523
bool TimezoneHasBeenSet() const
Definition DBSnapshot.h:537
DBSnapshot & WithTimezone(TimezoneT &&value)
Definition DBSnapshot.h:544
void SetAdditionalStorageVolumes(AdditionalStorageVolumesT &&value)
Definition DBSnapshot.h:758
DBSnapshot & WithKmsKeyId(KmsKeyIdT &&value)
Definition DBSnapshot.h:505
void SetTagList(TagListT &&value)
Definition DBSnapshot.h:616
void SetAvailabilityZone(AvailabilityZoneT &&value)
Definition DBSnapshot.h:176
const Aws::String & GetStorageType() const
Definition DBSnapshot.h:406
DBSnapshot & WithStatus(StatusT &&value)
Definition DBSnapshot.h:145
void SetSnapshotCreateTime(SnapshotCreateTimeT &&value)
Definition DBSnapshot.h:88
const Aws::String & GetSourceRegion() const
Definition DBSnapshot.h:368
DBSnapshot & WithSourceDBSnapshotIdentifier(SourceDBSnapshotIdentifierT &&value)
Definition DBSnapshot.h:396
bool GetDedicatedLogVolume() const
Definition DBSnapshot.h:738
const Aws::String & GetDbiResourceId() const
Definition DBSnapshot.h:597
void SetStatus(StatusT &&value)
Definition DBSnapshot.h:140
void SetBackupRetentionPeriod(int value)
Definition DBSnapshot.h:461
DBSnapshot & AddAdditionalStorageVolumes(AdditionalStorageVolumesT &&value)
Definition DBSnapshot.h:768
const Aws::String & GetLicenseModel() const
Definition DBSnapshot.h:264
bool LicenseModelHasBeenSet() const
Definition DBSnapshot.h:265
bool PreferredBackupWindowHasBeenSet() const
Definition DBSnapshot.h:478
DBSnapshot & WithStorageThroughput(int value)
Definition DBSnapshot.h:323
const Aws::String & GetDBSnapshotIdentifier() const
Definition DBSnapshot.h:47
const Aws::String & GetTimezone() const
Definition DBSnapshot.h:536
DBSnapshot & WithAdditionalStorageVolumes(AdditionalStorageVolumesT &&value)
Definition DBSnapshot.h:763
void SetStorageType(StorageTypeT &&value)
Definition DBSnapshot.h:409
const Aws::String & GetDBInstanceIdentifier() const
Definition DBSnapshot.h:66
const Aws::String & GetSnapshotTarget() const
Definition DBSnapshot.h:638
void SetAllocatedStorage(int value)
Definition DBSnapshot.h:123
DBSnapshot & WithStorageType(StorageTypeT &&value)
Definition DBSnapshot.h:414
const Aws::String & GetSourceDBSnapshotIdentifier() const
Definition DBSnapshot.h:388
const Aws::Vector< Tag > & GetTagList() const
Definition DBSnapshot.h:613
DBSnapshot & WithInstanceCreateTime(InstanceCreateTimeT &&value)
Definition DBSnapshot.h:218
DBSnapshot & WithSnapshotType(SnapshotTypeT &&value)
Definition DBSnapshot.h:290
int GetBackupRetentionPeriod() const
Definition DBSnapshot.h:459
DBSnapshot & WithTdeCredentialArn(TdeCredentialArnT &&value)
Definition DBSnapshot.h:433
bool DedicatedLogVolumeHasBeenSet() const
Definition DBSnapshot.h:739
void SetSnapshotType(SnapshotTypeT &&value)
Definition DBSnapshot.h:285
void SetSourceDBSnapshotIdentifier(SourceDBSnapshotIdentifierT &&value)
Definition DBSnapshot.h:391
bool GetIAMDatabaseAuthenticationEnabled() const
Definition DBSnapshot.h:555
DBSnapshot & WithDBSystemId(DBSystemIdT &&value)
Definition DBSnapshot.h:710
DBSnapshot & WithIAMDatabaseAuthenticationEnabled(bool value)
Definition DBSnapshot.h:561
const Aws::String & GetAvailabilityZone() const
Definition DBSnapshot.h:173
bool SnapshotTargetHasBeenSet() const
Definition DBSnapshot.h:639
bool EngineVersionHasBeenSet() const
Definition DBSnapshot.h:247
DBSnapshot & WithDedicatedLogVolume(bool value)
Definition DBSnapshot.h:744
DBSnapshot & WithAvailabilityZone(AvailabilityZoneT &&value)
Definition DBSnapshot.h:181
const Aws::String & GetStatus() const
Definition DBSnapshot.h:137
bool MultiTenantHasBeenSet() const
Definition DBSnapshot.h:722
void SetEngine(EngineT &&value)
Definition DBSnapshot.h:106
const Aws::String & GetMasterUsername() const
Definition DBSnapshot.h:228
DBSnapshot & WithSnapshotTarget(SnapshotTargetT &&value)
Definition DBSnapshot.h:646
AWS_RDS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_RDS_API DBSnapshot()=default
DBSnapshot & WithEngine(EngineT &&value)
Definition DBSnapshot.h:111
const Aws::String & GetSnapshotType() const
Definition DBSnapshot.h:282
bool ProcessorFeaturesHasBeenSet() const
Definition DBSnapshot.h:573
DBSnapshot & WithPreferredBackupWindow(PreferredBackupWindowT &&value)
Definition DBSnapshot.h:485
void SetMasterUsername(MasterUsernameT &&value)
Definition DBSnapshot.h:231
void SetIAMDatabaseAuthenticationEnabled(bool value)
Definition DBSnapshot.h:557
AWS_RDS_API DBSnapshot & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
DBSnapshot & WithDBSnapshotIdentifier(DBSnapshotIdentifierT &&value)
Definition DBSnapshot.h:55
void SetDBSystemId(DBSystemIdT &&value)
Definition DBSnapshot.h:705
DBSnapshot & WithEncrypted(bool value)
Definition DBSnapshot.h:449
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream