AWS SDK for C++

AWS SDK for C++ Version 1.11.752

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/StorageEncryptionType.h>
15#include <aws/rds/model/Tag.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Xml {
22class XmlNode;
23} // namespace Xml
24} // namespace Utils
25namespace RDS {
26namespace Model {
27
36 public:
37 AWS_RDS_API DBSnapshot() = default;
38 AWS_RDS_API DBSnapshot(const Aws::Utils::Xml::XmlNode& xmlNode);
39 AWS_RDS_API DBSnapshot& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
45
48 inline const Aws::String& GetDBSnapshotIdentifier() const { return m_dBSnapshotIdentifier; }
49 inline bool DBSnapshotIdentifierHasBeenSet() const { return m_dBSnapshotIdentifierHasBeenSet; }
50 template <typename DBSnapshotIdentifierT = Aws::String>
51 void SetDBSnapshotIdentifier(DBSnapshotIdentifierT&& value) {
52 m_dBSnapshotIdentifierHasBeenSet = true;
53 m_dBSnapshotIdentifier = std::forward<DBSnapshotIdentifierT>(value);
54 }
55 template <typename DBSnapshotIdentifierT = Aws::String>
56 DBSnapshot& WithDBSnapshotIdentifier(DBSnapshotIdentifierT&& value) {
57 SetDBSnapshotIdentifier(std::forward<DBSnapshotIdentifierT>(value));
58 return *this;
59 }
61
63
67 inline const Aws::String& GetDBInstanceIdentifier() const { return m_dBInstanceIdentifier; }
68 inline bool DBInstanceIdentifierHasBeenSet() const { return m_dBInstanceIdentifierHasBeenSet; }
69 template <typename DBInstanceIdentifierT = Aws::String>
70 void SetDBInstanceIdentifier(DBInstanceIdentifierT&& value) {
71 m_dBInstanceIdentifierHasBeenSet = true;
72 m_dBInstanceIdentifier = std::forward<DBInstanceIdentifierT>(value);
73 }
74 template <typename DBInstanceIdentifierT = Aws::String>
75 DBSnapshot& WithDBInstanceIdentifier(DBInstanceIdentifierT&& value) {
76 SetDBInstanceIdentifier(std::forward<DBInstanceIdentifierT>(value));
77 return *this;
78 }
80
82
86 inline const Aws::Utils::DateTime& GetSnapshotCreateTime() const { return m_snapshotCreateTime; }
87 inline bool SnapshotCreateTimeHasBeenSet() const { return m_snapshotCreateTimeHasBeenSet; }
88 template <typename SnapshotCreateTimeT = Aws::Utils::DateTime>
89 void SetSnapshotCreateTime(SnapshotCreateTimeT&& value) {
90 m_snapshotCreateTimeHasBeenSet = true;
91 m_snapshotCreateTime = std::forward<SnapshotCreateTimeT>(value);
92 }
93 template <typename SnapshotCreateTimeT = Aws::Utils::DateTime>
94 DBSnapshot& WithSnapshotCreateTime(SnapshotCreateTimeT&& value) {
95 SetSnapshotCreateTime(std::forward<SnapshotCreateTimeT>(value));
96 return *this;
97 }
99
101
104 inline const Aws::String& GetEngine() const { return m_engine; }
105 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
106 template <typename EngineT = Aws::String>
107 void SetEngine(EngineT&& value) {
108 m_engineHasBeenSet = true;
109 m_engine = std::forward<EngineT>(value);
110 }
111 template <typename EngineT = Aws::String>
112 DBSnapshot& WithEngine(EngineT&& value) {
113 SetEngine(std::forward<EngineT>(value));
114 return *this;
115 }
117
119
122 inline int GetAllocatedStorage() const { return m_allocatedStorage; }
123 inline bool AllocatedStorageHasBeenSet() const { return m_allocatedStorageHasBeenSet; }
124 inline void SetAllocatedStorage(int value) {
125 m_allocatedStorageHasBeenSet = true;
126 m_allocatedStorage = value;
127 }
128 inline DBSnapshot& WithAllocatedStorage(int value) {
129 SetAllocatedStorage(value);
130 return *this;
131 }
133
135
138 inline const Aws::String& GetStatus() const { return m_status; }
139 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
140 template <typename StatusT = Aws::String>
141 void SetStatus(StatusT&& value) {
142 m_statusHasBeenSet = true;
143 m_status = std::forward<StatusT>(value);
144 }
145 template <typename StatusT = Aws::String>
146 DBSnapshot& WithStatus(StatusT&& value) {
147 SetStatus(std::forward<StatusT>(value));
148 return *this;
149 }
151
153
157 inline int GetPort() const { return m_port; }
158 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
159 inline void SetPort(int value) {
160 m_portHasBeenSet = true;
161 m_port = value;
162 }
163 inline DBSnapshot& WithPort(int value) {
164 SetPort(value);
165 return *this;
166 }
168
170
174 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
175 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
176 template <typename AvailabilityZoneT = Aws::String>
177 void SetAvailabilityZone(AvailabilityZoneT&& value) {
178 m_availabilityZoneHasBeenSet = true;
179 m_availabilityZone = std::forward<AvailabilityZoneT>(value);
180 }
181 template <typename AvailabilityZoneT = Aws::String>
182 DBSnapshot& WithAvailabilityZone(AvailabilityZoneT&& value) {
183 SetAvailabilityZone(std::forward<AvailabilityZoneT>(value));
184 return *this;
185 }
187
189
192 inline const Aws::String& GetVpcId() const { return m_vpcId; }
193 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
194 template <typename VpcIdT = Aws::String>
195 void SetVpcId(VpcIdT&& value) {
196 m_vpcIdHasBeenSet = true;
197 m_vpcId = std::forward<VpcIdT>(value);
198 }
199 template <typename VpcIdT = Aws::String>
200 DBSnapshot& WithVpcId(VpcIdT&& value) {
201 SetVpcId(std::forward<VpcIdT>(value));
202 return *this;
203 }
205
207
211 inline const Aws::Utils::DateTime& GetInstanceCreateTime() const { return m_instanceCreateTime; }
212 inline bool InstanceCreateTimeHasBeenSet() const { return m_instanceCreateTimeHasBeenSet; }
213 template <typename InstanceCreateTimeT = Aws::Utils::DateTime>
214 void SetInstanceCreateTime(InstanceCreateTimeT&& value) {
215 m_instanceCreateTimeHasBeenSet = true;
216 m_instanceCreateTime = std::forward<InstanceCreateTimeT>(value);
217 }
218 template <typename InstanceCreateTimeT = Aws::Utils::DateTime>
219 DBSnapshot& WithInstanceCreateTime(InstanceCreateTimeT&& value) {
220 SetInstanceCreateTime(std::forward<InstanceCreateTimeT>(value));
221 return *this;
222 }
224
226
229 inline const Aws::String& GetMasterUsername() const { return m_masterUsername; }
230 inline bool MasterUsernameHasBeenSet() const { return m_masterUsernameHasBeenSet; }
231 template <typename MasterUsernameT = Aws::String>
232 void SetMasterUsername(MasterUsernameT&& value) {
233 m_masterUsernameHasBeenSet = true;
234 m_masterUsername = std::forward<MasterUsernameT>(value);
235 }
236 template <typename MasterUsernameT = Aws::String>
237 DBSnapshot& WithMasterUsername(MasterUsernameT&& value) {
238 SetMasterUsername(std::forward<MasterUsernameT>(value));
239 return *this;
240 }
242
244
247 inline const Aws::String& GetEngineVersion() const { return m_engineVersion; }
248 inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; }
249 template <typename EngineVersionT = Aws::String>
250 void SetEngineVersion(EngineVersionT&& value) {
251 m_engineVersionHasBeenSet = true;
252 m_engineVersion = std::forward<EngineVersionT>(value);
253 }
254 template <typename EngineVersionT = Aws::String>
255 DBSnapshot& WithEngineVersion(EngineVersionT&& value) {
256 SetEngineVersion(std::forward<EngineVersionT>(value));
257 return *this;
258 }
260
262
265 inline const Aws::String& GetLicenseModel() const { return m_licenseModel; }
266 inline bool LicenseModelHasBeenSet() const { return m_licenseModelHasBeenSet; }
267 template <typename LicenseModelT = Aws::String>
268 void SetLicenseModel(LicenseModelT&& value) {
269 m_licenseModelHasBeenSet = true;
270 m_licenseModel = std::forward<LicenseModelT>(value);
271 }
272 template <typename LicenseModelT = Aws::String>
273 DBSnapshot& WithLicenseModel(LicenseModelT&& value) {
274 SetLicenseModel(std::forward<LicenseModelT>(value));
275 return *this;
276 }
278
280
283 inline const Aws::String& GetSnapshotType() const { return m_snapshotType; }
284 inline bool SnapshotTypeHasBeenSet() const { return m_snapshotTypeHasBeenSet; }
285 template <typename SnapshotTypeT = Aws::String>
286 void SetSnapshotType(SnapshotTypeT&& value) {
287 m_snapshotTypeHasBeenSet = true;
288 m_snapshotType = std::forward<SnapshotTypeT>(value);
289 }
290 template <typename SnapshotTypeT = Aws::String>
291 DBSnapshot& WithSnapshotType(SnapshotTypeT&& value) {
292 SetSnapshotType(std::forward<SnapshotTypeT>(value));
293 return *this;
294 }
296
298
302 inline int GetIops() const { return m_iops; }
303 inline bool IopsHasBeenSet() const { return m_iopsHasBeenSet; }
304 inline void SetIops(int value) {
305 m_iopsHasBeenSet = true;
306 m_iops = value;
307 }
308 inline DBSnapshot& WithIops(int value) {
309 SetIops(value);
310 return *this;
311 }
313
315
318 inline int GetStorageThroughput() const { return m_storageThroughput; }
319 inline bool StorageThroughputHasBeenSet() const { return m_storageThroughputHasBeenSet; }
320 inline void SetStorageThroughput(int value) {
321 m_storageThroughputHasBeenSet = true;
322 m_storageThroughput = value;
323 }
326 return *this;
327 }
329
331
334 inline const Aws::String& GetOptionGroupName() const { return m_optionGroupName; }
335 inline bool OptionGroupNameHasBeenSet() const { return m_optionGroupNameHasBeenSet; }
336 template <typename OptionGroupNameT = Aws::String>
337 void SetOptionGroupName(OptionGroupNameT&& value) {
338 m_optionGroupNameHasBeenSet = true;
339 m_optionGroupName = std::forward<OptionGroupNameT>(value);
340 }
341 template <typename OptionGroupNameT = Aws::String>
342 DBSnapshot& WithOptionGroupName(OptionGroupNameT&& value) {
343 SetOptionGroupName(std::forward<OptionGroupNameT>(value));
344 return *this;
345 }
347
349
352 inline int GetPercentProgress() const { return m_percentProgress; }
353 inline bool PercentProgressHasBeenSet() const { return m_percentProgressHasBeenSet; }
354 inline void SetPercentProgress(int value) {
355 m_percentProgressHasBeenSet = true;
356 m_percentProgress = value;
357 }
358 inline DBSnapshot& WithPercentProgress(int value) {
359 SetPercentProgress(value);
360 return *this;
361 }
363
365
369 inline const Aws::String& GetSourceRegion() const { return m_sourceRegion; }
370 inline bool SourceRegionHasBeenSet() const { return m_sourceRegionHasBeenSet; }
371 template <typename SourceRegionT = Aws::String>
372 void SetSourceRegion(SourceRegionT&& value) {
373 m_sourceRegionHasBeenSet = true;
374 m_sourceRegion = std::forward<SourceRegionT>(value);
375 }
376 template <typename SourceRegionT = Aws::String>
377 DBSnapshot& WithSourceRegion(SourceRegionT&& value) {
378 SetSourceRegion(std::forward<SourceRegionT>(value));
379 return *this;
380 }
382
384
389 inline const Aws::String& GetSourceDBSnapshotIdentifier() const { return m_sourceDBSnapshotIdentifier; }
390 inline bool SourceDBSnapshotIdentifierHasBeenSet() const { return m_sourceDBSnapshotIdentifierHasBeenSet; }
391 template <typename SourceDBSnapshotIdentifierT = Aws::String>
392 void SetSourceDBSnapshotIdentifier(SourceDBSnapshotIdentifierT&& value) {
393 m_sourceDBSnapshotIdentifierHasBeenSet = true;
394 m_sourceDBSnapshotIdentifier = std::forward<SourceDBSnapshotIdentifierT>(value);
395 }
396 template <typename SourceDBSnapshotIdentifierT = Aws::String>
397 DBSnapshot& WithSourceDBSnapshotIdentifier(SourceDBSnapshotIdentifierT&& value) {
398 SetSourceDBSnapshotIdentifier(std::forward<SourceDBSnapshotIdentifierT>(value));
399 return *this;
400 }
402
404
407 inline const Aws::String& GetStorageType() const { return m_storageType; }
408 inline bool StorageTypeHasBeenSet() const { return m_storageTypeHasBeenSet; }
409 template <typename StorageTypeT = Aws::String>
410 void SetStorageType(StorageTypeT&& value) {
411 m_storageTypeHasBeenSet = true;
412 m_storageType = std::forward<StorageTypeT>(value);
413 }
414 template <typename StorageTypeT = Aws::String>
415 DBSnapshot& WithStorageType(StorageTypeT&& value) {
416 SetStorageType(std::forward<StorageTypeT>(value));
417 return *this;
418 }
420
422
426 inline const Aws::String& GetTdeCredentialArn() const { return m_tdeCredentialArn; }
427 inline bool TdeCredentialArnHasBeenSet() const { return m_tdeCredentialArnHasBeenSet; }
428 template <typename TdeCredentialArnT = Aws::String>
429 void SetTdeCredentialArn(TdeCredentialArnT&& value) {
430 m_tdeCredentialArnHasBeenSet = true;
431 m_tdeCredentialArn = std::forward<TdeCredentialArnT>(value);
432 }
433 template <typename TdeCredentialArnT = Aws::String>
434 DBSnapshot& WithTdeCredentialArn(TdeCredentialArnT&& value) {
435 SetTdeCredentialArn(std::forward<TdeCredentialArnT>(value));
436 return *this;
437 }
439
441
444 inline bool GetEncrypted() const { return m_encrypted; }
445 inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; }
446 inline void SetEncrypted(bool value) {
447 m_encryptedHasBeenSet = true;
448 m_encrypted = value;
449 }
450 inline DBSnapshot& WithEncrypted(bool value) {
451 SetEncrypted(value);
452 return *this;
453 }
455
457
465 inline StorageEncryptionType GetStorageEncryptionType() const { return m_storageEncryptionType; }
466 inline bool StorageEncryptionTypeHasBeenSet() const { return m_storageEncryptionTypeHasBeenSet; }
468 m_storageEncryptionTypeHasBeenSet = true;
469 m_storageEncryptionType = value;
470 }
473 return *this;
474 }
476
478
481 inline int GetBackupRetentionPeriod() const { return m_backupRetentionPeriod; }
482 inline bool BackupRetentionPeriodHasBeenSet() const { return m_backupRetentionPeriodHasBeenSet; }
483 inline void SetBackupRetentionPeriod(int value) {
484 m_backupRetentionPeriodHasBeenSet = true;
485 m_backupRetentionPeriod = value;
486 }
489 return *this;
490 }
492
494
499 inline const Aws::String& GetPreferredBackupWindow() const { return m_preferredBackupWindow; }
500 inline bool PreferredBackupWindowHasBeenSet() const { return m_preferredBackupWindowHasBeenSet; }
501 template <typename PreferredBackupWindowT = Aws::String>
502 void SetPreferredBackupWindow(PreferredBackupWindowT&& value) {
503 m_preferredBackupWindowHasBeenSet = true;
504 m_preferredBackupWindow = std::forward<PreferredBackupWindowT>(value);
505 }
506 template <typename PreferredBackupWindowT = Aws::String>
507 DBSnapshot& WithPreferredBackupWindow(PreferredBackupWindowT&& value) {
508 SetPreferredBackupWindow(std::forward<PreferredBackupWindowT>(value));
509 return *this;
510 }
512
514
519 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
520 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
521 template <typename KmsKeyIdT = Aws::String>
522 void SetKmsKeyId(KmsKeyIdT&& value) {
523 m_kmsKeyIdHasBeenSet = true;
524 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
525 }
526 template <typename KmsKeyIdT = Aws::String>
527 DBSnapshot& WithKmsKeyId(KmsKeyIdT&& value) {
528 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
529 return *this;
530 }
532
534
537 inline const Aws::String& GetDBSnapshotArn() const { return m_dBSnapshotArn; }
538 inline bool DBSnapshotArnHasBeenSet() const { return m_dBSnapshotArnHasBeenSet; }
539 template <typename DBSnapshotArnT = Aws::String>
540 void SetDBSnapshotArn(DBSnapshotArnT&& value) {
541 m_dBSnapshotArnHasBeenSet = true;
542 m_dBSnapshotArn = std::forward<DBSnapshotArnT>(value);
543 }
544 template <typename DBSnapshotArnT = Aws::String>
545 DBSnapshot& WithDBSnapshotArn(DBSnapshotArnT&& value) {
546 SetDBSnapshotArn(std::forward<DBSnapshotArnT>(value));
547 return *this;
548 }
550
552
558 inline const Aws::String& GetTimezone() const { return m_timezone; }
559 inline bool TimezoneHasBeenSet() const { return m_timezoneHasBeenSet; }
560 template <typename TimezoneT = Aws::String>
561 void SetTimezone(TimezoneT&& value) {
562 m_timezoneHasBeenSet = true;
563 m_timezone = std::forward<TimezoneT>(value);
564 }
565 template <typename TimezoneT = Aws::String>
566 DBSnapshot& WithTimezone(TimezoneT&& value) {
567 SetTimezone(std::forward<TimezoneT>(value));
568 return *this;
569 }
571
573
577 inline bool GetIAMDatabaseAuthenticationEnabled() const { return m_iAMDatabaseAuthenticationEnabled; }
578 inline bool IAMDatabaseAuthenticationEnabledHasBeenSet() const { return m_iAMDatabaseAuthenticationEnabledHasBeenSet; }
579 inline void SetIAMDatabaseAuthenticationEnabled(bool value) {
580 m_iAMDatabaseAuthenticationEnabledHasBeenSet = true;
581 m_iAMDatabaseAuthenticationEnabled = value;
582 }
585 return *this;
586 }
588
590
594 inline const Aws::Vector<ProcessorFeature>& GetProcessorFeatures() const { return m_processorFeatures; }
595 inline bool ProcessorFeaturesHasBeenSet() const { return m_processorFeaturesHasBeenSet; }
596 template <typename ProcessorFeaturesT = Aws::Vector<ProcessorFeature>>
597 void SetProcessorFeatures(ProcessorFeaturesT&& value) {
598 m_processorFeaturesHasBeenSet = true;
599 m_processorFeatures = std::forward<ProcessorFeaturesT>(value);
600 }
601 template <typename ProcessorFeaturesT = Aws::Vector<ProcessorFeature>>
602 DBSnapshot& WithProcessorFeatures(ProcessorFeaturesT&& value) {
603 SetProcessorFeatures(std::forward<ProcessorFeaturesT>(value));
604 return *this;
605 }
606 template <typename ProcessorFeaturesT = ProcessorFeature>
607 DBSnapshot& AddProcessorFeatures(ProcessorFeaturesT&& value) {
608 m_processorFeaturesHasBeenSet = true;
609 m_processorFeatures.emplace_back(std::forward<ProcessorFeaturesT>(value));
610 return *this;
611 }
613
615
619 inline const Aws::String& GetDbiResourceId() const { return m_dbiResourceId; }
620 inline bool DbiResourceIdHasBeenSet() const { return m_dbiResourceIdHasBeenSet; }
621 template <typename DbiResourceIdT = Aws::String>
622 void SetDbiResourceId(DbiResourceIdT&& value) {
623 m_dbiResourceIdHasBeenSet = true;
624 m_dbiResourceId = std::forward<DbiResourceIdT>(value);
625 }
626 template <typename DbiResourceIdT = Aws::String>
627 DBSnapshot& WithDbiResourceId(DbiResourceIdT&& value) {
628 SetDbiResourceId(std::forward<DbiResourceIdT>(value));
629 return *this;
630 }
632
634
635 inline const Aws::Vector<Tag>& GetTagList() const { return m_tagList; }
636 inline bool TagListHasBeenSet() const { return m_tagListHasBeenSet; }
637 template <typename TagListT = Aws::Vector<Tag>>
638 void SetTagList(TagListT&& value) {
639 m_tagListHasBeenSet = true;
640 m_tagList = std::forward<TagListT>(value);
641 }
642 template <typename TagListT = Aws::Vector<Tag>>
643 DBSnapshot& WithTagList(TagListT&& value) {
644 SetTagList(std::forward<TagListT>(value));
645 return *this;
646 }
647 template <typename TagListT = Tag>
648 DBSnapshot& AddTagList(TagListT&& value) {
649 m_tagListHasBeenSet = true;
650 m_tagList.emplace_back(std::forward<TagListT>(value));
651 return *this;
652 }
654
656
660 inline const Aws::String& GetSnapshotTarget() const { return m_snapshotTarget; }
661 inline bool SnapshotTargetHasBeenSet() const { return m_snapshotTargetHasBeenSet; }
662 template <typename SnapshotTargetT = Aws::String>
663 void SetSnapshotTarget(SnapshotTargetT&& value) {
664 m_snapshotTargetHasBeenSet = true;
665 m_snapshotTarget = std::forward<SnapshotTargetT>(value);
666 }
667 template <typename SnapshotTargetT = Aws::String>
668 DBSnapshot& WithSnapshotTarget(SnapshotTargetT&& value) {
669 SetSnapshotTarget(std::forward<SnapshotTargetT>(value));
670 return *this;
671 }
673
675
679 inline const Aws::Utils::DateTime& GetOriginalSnapshotCreateTime() const { return m_originalSnapshotCreateTime; }
680 inline bool OriginalSnapshotCreateTimeHasBeenSet() const { return m_originalSnapshotCreateTimeHasBeenSet; }
681 template <typename OriginalSnapshotCreateTimeT = Aws::Utils::DateTime>
682 void SetOriginalSnapshotCreateTime(OriginalSnapshotCreateTimeT&& value) {
683 m_originalSnapshotCreateTimeHasBeenSet = true;
684 m_originalSnapshotCreateTime = std::forward<OriginalSnapshotCreateTimeT>(value);
685 }
686 template <typename OriginalSnapshotCreateTimeT = Aws::Utils::DateTime>
687 DBSnapshot& WithOriginalSnapshotCreateTime(OriginalSnapshotCreateTimeT&& value) {
688 SetOriginalSnapshotCreateTime(std::forward<OriginalSnapshotCreateTimeT>(value));
689 return *this;
690 }
692
694
704 inline const Aws::Utils::DateTime& GetSnapshotDatabaseTime() const { return m_snapshotDatabaseTime; }
705 inline bool SnapshotDatabaseTimeHasBeenSet() const { return m_snapshotDatabaseTimeHasBeenSet; }
706 template <typename SnapshotDatabaseTimeT = Aws::Utils::DateTime>
707 void SetSnapshotDatabaseTime(SnapshotDatabaseTimeT&& value) {
708 m_snapshotDatabaseTimeHasBeenSet = true;
709 m_snapshotDatabaseTime = std::forward<SnapshotDatabaseTimeT>(value);
710 }
711 template <typename SnapshotDatabaseTimeT = Aws::Utils::DateTime>
712 DBSnapshot& WithSnapshotDatabaseTime(SnapshotDatabaseTimeT&& value) {
713 SetSnapshotDatabaseTime(std::forward<SnapshotDatabaseTimeT>(value));
714 return *this;
715 }
717
719
724 inline const Aws::String& GetDBSystemId() const { return m_dBSystemId; }
725 inline bool DBSystemIdHasBeenSet() const { return m_dBSystemIdHasBeenSet; }
726 template <typename DBSystemIdT = Aws::String>
727 void SetDBSystemId(DBSystemIdT&& value) {
728 m_dBSystemIdHasBeenSet = true;
729 m_dBSystemId = std::forward<DBSystemIdT>(value);
730 }
731 template <typename DBSystemIdT = Aws::String>
732 DBSnapshot& WithDBSystemId(DBSystemIdT&& value) {
733 SetDBSystemId(std::forward<DBSystemIdT>(value));
734 return *this;
735 }
737
739
743 inline bool GetMultiTenant() const { return m_multiTenant; }
744 inline bool MultiTenantHasBeenSet() const { return m_multiTenantHasBeenSet; }
745 inline void SetMultiTenant(bool value) {
746 m_multiTenantHasBeenSet = true;
747 m_multiTenant = value;
748 }
749 inline DBSnapshot& WithMultiTenant(bool value) {
750 SetMultiTenant(value);
751 return *this;
752 }
754
756
760 inline bool GetDedicatedLogVolume() const { return m_dedicatedLogVolume; }
761 inline bool DedicatedLogVolumeHasBeenSet() const { return m_dedicatedLogVolumeHasBeenSet; }
762 inline void SetDedicatedLogVolume(bool value) {
763 m_dedicatedLogVolumeHasBeenSet = true;
764 m_dedicatedLogVolume = value;
765 }
766 inline DBSnapshot& WithDedicatedLogVolume(bool value) {
768 return *this;
769 }
771
773
777 inline const Aws::Vector<AdditionalStorageVolume>& GetAdditionalStorageVolumes() const { return m_additionalStorageVolumes; }
778 inline bool AdditionalStorageVolumesHasBeenSet() const { return m_additionalStorageVolumesHasBeenSet; }
779 template <typename AdditionalStorageVolumesT = Aws::Vector<AdditionalStorageVolume>>
780 void SetAdditionalStorageVolumes(AdditionalStorageVolumesT&& value) {
781 m_additionalStorageVolumesHasBeenSet = true;
782 m_additionalStorageVolumes = std::forward<AdditionalStorageVolumesT>(value);
783 }
784 template <typename AdditionalStorageVolumesT = Aws::Vector<AdditionalStorageVolume>>
785 DBSnapshot& WithAdditionalStorageVolumes(AdditionalStorageVolumesT&& value) {
786 SetAdditionalStorageVolumes(std::forward<AdditionalStorageVolumesT>(value));
787 return *this;
788 }
789 template <typename AdditionalStorageVolumesT = AdditionalStorageVolume>
790 DBSnapshot& AddAdditionalStorageVolumes(AdditionalStorageVolumesT&& value) {
791 m_additionalStorageVolumesHasBeenSet = true;
792 m_additionalStorageVolumes.emplace_back(std::forward<AdditionalStorageVolumesT>(value));
793 return *this;
794 }
796
798
803 inline const Aws::String& GetSnapshotAvailabilityZone() const { return m_snapshotAvailabilityZone; }
804 inline bool SnapshotAvailabilityZoneHasBeenSet() const { return m_snapshotAvailabilityZoneHasBeenSet; }
805 template <typename SnapshotAvailabilityZoneT = Aws::String>
806 void SetSnapshotAvailabilityZone(SnapshotAvailabilityZoneT&& value) {
807 m_snapshotAvailabilityZoneHasBeenSet = true;
808 m_snapshotAvailabilityZone = std::forward<SnapshotAvailabilityZoneT>(value);
809 }
810 template <typename SnapshotAvailabilityZoneT = Aws::String>
811 DBSnapshot& WithSnapshotAvailabilityZone(SnapshotAvailabilityZoneT&& value) {
812 SetSnapshotAvailabilityZone(std::forward<SnapshotAvailabilityZoneT>(value));
813 return *this;
814 }
816 private:
817 Aws::String m_dBSnapshotIdentifier;
818
819 Aws::String m_dBInstanceIdentifier;
820
821 Aws::Utils::DateTime m_snapshotCreateTime{};
822
823 Aws::String m_engine;
824
825 int m_allocatedStorage{0};
826
827 Aws::String m_status;
828
829 int m_port{0};
830
831 Aws::String m_availabilityZone;
832
833 Aws::String m_vpcId;
834
835 Aws::Utils::DateTime m_instanceCreateTime{};
836
837 Aws::String m_masterUsername;
838
839 Aws::String m_engineVersion;
840
841 Aws::String m_licenseModel;
842
843 Aws::String m_snapshotType;
844
845 int m_iops{0};
846
847 int m_storageThroughput{0};
848
849 Aws::String m_optionGroupName;
850
851 int m_percentProgress{0};
852
853 Aws::String m_sourceRegion;
854
855 Aws::String m_sourceDBSnapshotIdentifier;
856
857 Aws::String m_storageType;
858
859 Aws::String m_tdeCredentialArn;
860
861 bool m_encrypted{false};
862
864
865 int m_backupRetentionPeriod{0};
866
867 Aws::String m_preferredBackupWindow;
868
869 Aws::String m_kmsKeyId;
870
871 Aws::String m_dBSnapshotArn;
872
873 Aws::String m_timezone;
874
875 bool m_iAMDatabaseAuthenticationEnabled{false};
876
877 Aws::Vector<ProcessorFeature> m_processorFeatures;
878
879 Aws::String m_dbiResourceId;
880
881 Aws::Vector<Tag> m_tagList;
882
883 Aws::String m_snapshotTarget;
884
885 Aws::Utils::DateTime m_originalSnapshotCreateTime{};
886
887 Aws::Utils::DateTime m_snapshotDatabaseTime{};
888
889 Aws::String m_dBSystemId;
890
891 bool m_multiTenant{false};
892
893 bool m_dedicatedLogVolume{false};
894
895 Aws::Vector<AdditionalStorageVolume> m_additionalStorageVolumes;
896
897 Aws::String m_snapshotAvailabilityZone;
898 bool m_dBSnapshotIdentifierHasBeenSet = false;
899 bool m_dBInstanceIdentifierHasBeenSet = false;
900 bool m_snapshotCreateTimeHasBeenSet = false;
901 bool m_engineHasBeenSet = false;
902 bool m_allocatedStorageHasBeenSet = false;
903 bool m_statusHasBeenSet = false;
904 bool m_portHasBeenSet = false;
905 bool m_availabilityZoneHasBeenSet = false;
906 bool m_vpcIdHasBeenSet = false;
907 bool m_instanceCreateTimeHasBeenSet = false;
908 bool m_masterUsernameHasBeenSet = false;
909 bool m_engineVersionHasBeenSet = false;
910 bool m_licenseModelHasBeenSet = false;
911 bool m_snapshotTypeHasBeenSet = false;
912 bool m_iopsHasBeenSet = false;
913 bool m_storageThroughputHasBeenSet = false;
914 bool m_optionGroupNameHasBeenSet = false;
915 bool m_percentProgressHasBeenSet = false;
916 bool m_sourceRegionHasBeenSet = false;
917 bool m_sourceDBSnapshotIdentifierHasBeenSet = false;
918 bool m_storageTypeHasBeenSet = false;
919 bool m_tdeCredentialArnHasBeenSet = false;
920 bool m_encryptedHasBeenSet = false;
921 bool m_storageEncryptionTypeHasBeenSet = false;
922 bool m_backupRetentionPeriodHasBeenSet = false;
923 bool m_preferredBackupWindowHasBeenSet = false;
924 bool m_kmsKeyIdHasBeenSet = false;
925 bool m_dBSnapshotArnHasBeenSet = false;
926 bool m_timezoneHasBeenSet = false;
927 bool m_iAMDatabaseAuthenticationEnabledHasBeenSet = false;
928 bool m_processorFeaturesHasBeenSet = false;
929 bool m_dbiResourceIdHasBeenSet = false;
930 bool m_tagListHasBeenSet = false;
931 bool m_snapshotTargetHasBeenSet = false;
932 bool m_originalSnapshotCreateTimeHasBeenSet = false;
933 bool m_snapshotDatabaseTimeHasBeenSet = false;
934 bool m_dBSystemIdHasBeenSet = false;
935 bool m_multiTenantHasBeenSet = false;
936 bool m_dedicatedLogVolumeHasBeenSet = false;
937 bool m_additionalStorageVolumesHasBeenSet = false;
938 bool m_snapshotAvailabilityZoneHasBeenSet = false;
939};
940
941} // namespace Model
942} // namespace RDS
943} // namespace Aws
DBSnapshot & WithSnapshotAvailabilityZone(SnapshotAvailabilityZoneT &&value)
Definition DBSnapshot.h:811
void SetTimezone(TimezoneT &&value)
Definition DBSnapshot.h:561
bool MasterUsernameHasBeenSet() const
Definition DBSnapshot.h:230
const Aws::String & GetEngine() const
Definition DBSnapshot.h:104
bool AvailabilityZoneHasBeenSet() const
Definition DBSnapshot.h:175
const Aws::String & GetTdeCredentialArn() const
Definition DBSnapshot.h:426
bool SourceDBSnapshotIdentifierHasBeenSet() const
Definition DBSnapshot.h:390
bool DBSystemIdHasBeenSet() const
Definition DBSnapshot.h:725
const Aws::Utils::DateTime & GetInstanceCreateTime() const
Definition DBSnapshot.h:211
void SetStorageThroughput(int value)
Definition DBSnapshot.h:320
DBSnapshot & WithIops(int value)
Definition DBSnapshot.h:308
void SetOptionGroupName(OptionGroupNameT &&value)
Definition DBSnapshot.h:337
DBSnapshot & WithSourceRegion(SourceRegionT &&value)
Definition DBSnapshot.h:377
const Aws::Vector< AdditionalStorageVolume > & GetAdditionalStorageVolumes() const
Definition DBSnapshot.h:777
void SetOriginalSnapshotCreateTime(OriginalSnapshotCreateTimeT &&value)
Definition DBSnapshot.h:682
DBSnapshot & WithOptionGroupName(OptionGroupNameT &&value)
Definition DBSnapshot.h:342
const Aws::String & GetEngineVersion() const
Definition DBSnapshot.h:247
DBSnapshot & WithEngineVersion(EngineVersionT &&value)
Definition DBSnapshot.h:255
void SetDBSnapshotIdentifier(DBSnapshotIdentifierT &&value)
Definition DBSnapshot.h:51
bool OptionGroupNameHasBeenSet() const
Definition DBSnapshot.h:335
void SetMultiTenant(bool value)
Definition DBSnapshot.h:745
void SetDbiResourceId(DbiResourceIdT &&value)
Definition DBSnapshot.h:622
const Aws::Utils::DateTime & GetSnapshotCreateTime() const
Definition DBSnapshot.h:86
DBSnapshot & WithPercentProgress(int value)
Definition DBSnapshot.h:358
AWS_RDS_API DBSnapshot(const Aws::Utils::Xml::XmlNode &xmlNode)
bool SnapshotDatabaseTimeHasBeenSet() const
Definition DBSnapshot.h:705
bool EncryptedHasBeenSet() const
Definition DBSnapshot.h:445
bool DBInstanceIdentifierHasBeenSet() const
Definition DBSnapshot.h:68
DBSnapshot & AddProcessorFeatures(ProcessorFeaturesT &&value)
Definition DBSnapshot.h:607
bool TdeCredentialArnHasBeenSet() const
Definition DBSnapshot.h:427
const Aws::String & GetDBSnapshotArn() const
Definition DBSnapshot.h:537
void SetSnapshotTarget(SnapshotTargetT &&value)
Definition DBSnapshot.h:663
bool AllocatedStorageHasBeenSet() const
Definition DBSnapshot.h:123
void SetProcessorFeatures(ProcessorFeaturesT &&value)
Definition DBSnapshot.h:597
const Aws::Vector< ProcessorFeature > & GetProcessorFeatures() const
Definition DBSnapshot.h:594
bool SourceRegionHasBeenSet() const
Definition DBSnapshot.h:370
const Aws::String & GetPreferredBackupWindow() const
Definition DBSnapshot.h:499
DBSnapshot & WithMasterUsername(MasterUsernameT &&value)
Definition DBSnapshot.h:237
bool DbiResourceIdHasBeenSet() const
Definition DBSnapshot.h:620
void SetVpcId(VpcIdT &&value)
Definition DBSnapshot.h:195
const Aws::String & GetKmsKeyId() const
Definition DBSnapshot.h:519
void SetTdeCredentialArn(TdeCredentialArnT &&value)
Definition DBSnapshot.h:429
bool SnapshotCreateTimeHasBeenSet() const
Definition DBSnapshot.h:87
bool AdditionalStorageVolumesHasBeenSet() const
Definition DBSnapshot.h:778
DBSnapshot & WithOriginalSnapshotCreateTime(OriginalSnapshotCreateTimeT &&value)
Definition DBSnapshot.h:687
bool PercentProgressHasBeenSet() const
Definition DBSnapshot.h:353
void SetPercentProgress(int value)
Definition DBSnapshot.h:354
DBSnapshot & WithSnapshotCreateTime(SnapshotCreateTimeT &&value)
Definition DBSnapshot.h:94
DBSnapshot & WithProcessorFeatures(ProcessorFeaturesT &&value)
Definition DBSnapshot.h:602
bool SnapshotTypeHasBeenSet() const
Definition DBSnapshot.h:284
void SetLicenseModel(LicenseModelT &&value)
Definition DBSnapshot.h:268
DBSnapshot & AddTagList(TagListT &&value)
Definition DBSnapshot.h:648
const Aws::Utils::DateTime & GetSnapshotDatabaseTime() const
Definition DBSnapshot.h:704
bool IAMDatabaseAuthenticationEnabledHasBeenSet() const
Definition DBSnapshot.h:578
void SetKmsKeyId(KmsKeyIdT &&value)
Definition DBSnapshot.h:522
bool DBSnapshotArnHasBeenSet() const
Definition DBSnapshot.h:538
DBSnapshot & WithDbiResourceId(DbiResourceIdT &&value)
Definition DBSnapshot.h:627
DBSnapshot & WithSnapshotDatabaseTime(SnapshotDatabaseTimeT &&value)
Definition DBSnapshot.h:712
DBSnapshot & WithAllocatedStorage(int value)
Definition DBSnapshot.h:128
bool BackupRetentionPeriodHasBeenSet() const
Definition DBSnapshot.h:482
DBSnapshot & WithTagList(TagListT &&value)
Definition DBSnapshot.h:643
DBSnapshot & WithLicenseModel(LicenseModelT &&value)
Definition DBSnapshot.h:273
const Aws::String & GetDBSystemId() const
Definition DBSnapshot.h:724
const Aws::String & GetVpcId() const
Definition DBSnapshot.h:192
const Aws::String & GetOptionGroupName() const
Definition DBSnapshot.h:334
void SetDBInstanceIdentifier(DBInstanceIdentifierT &&value)
Definition DBSnapshot.h:70
bool StorageTypeHasBeenSet() const
Definition DBSnapshot.h:408
DBSnapshot & WithPort(int value)
Definition DBSnapshot.h:163
AWS_RDS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetStorageEncryptionType(StorageEncryptionType value)
Definition DBSnapshot.h:467
void SetDedicatedLogVolume(bool value)
Definition DBSnapshot.h:762
void SetInstanceCreateTime(InstanceCreateTimeT &&value)
Definition DBSnapshot.h:214
DBSnapshot & WithDBInstanceIdentifier(DBInstanceIdentifierT &&value)
Definition DBSnapshot.h:75
bool OriginalSnapshotCreateTimeHasBeenSet() const
Definition DBSnapshot.h:680
void SetDBSnapshotArn(DBSnapshotArnT &&value)
Definition DBSnapshot.h:540
const Aws::Utils::DateTime & GetOriginalSnapshotCreateTime() const
Definition DBSnapshot.h:679
const Aws::String & GetSnapshotAvailabilityZone() const
Definition DBSnapshot.h:803
void SetEngineVersion(EngineVersionT &&value)
Definition DBSnapshot.h:250
bool SnapshotAvailabilityZoneHasBeenSet() const
Definition DBSnapshot.h:804
bool KmsKeyIdHasBeenSet() const
Definition DBSnapshot.h:520
DBSnapshot & WithMultiTenant(bool value)
Definition DBSnapshot.h:749
void SetPreferredBackupWindow(PreferredBackupWindowT &&value)
Definition DBSnapshot.h:502
bool InstanceCreateTimeHasBeenSet() const
Definition DBSnapshot.h:212
DBSnapshot & WithBackupRetentionPeriod(int value)
Definition DBSnapshot.h:487
void SetSnapshotDatabaseTime(SnapshotDatabaseTimeT &&value)
Definition DBSnapshot.h:707
bool StorageThroughputHasBeenSet() const
Definition DBSnapshot.h:319
bool DBSnapshotIdentifierHasBeenSet() const
Definition DBSnapshot.h:49
void SetSnapshotAvailabilityZone(SnapshotAvailabilityZoneT &&value)
Definition DBSnapshot.h:806
void SetEncrypted(bool value)
Definition DBSnapshot.h:446
DBSnapshot & WithVpcId(VpcIdT &&value)
Definition DBSnapshot.h:200
void SetSourceRegion(SourceRegionT &&value)
Definition DBSnapshot.h:372
DBSnapshot & WithDBSnapshotArn(DBSnapshotArnT &&value)
Definition DBSnapshot.h:545
bool TimezoneHasBeenSet() const
Definition DBSnapshot.h:559
DBSnapshot & WithTimezone(TimezoneT &&value)
Definition DBSnapshot.h:566
void SetAdditionalStorageVolumes(AdditionalStorageVolumesT &&value)
Definition DBSnapshot.h:780
DBSnapshot & WithKmsKeyId(KmsKeyIdT &&value)
Definition DBSnapshot.h:527
void SetTagList(TagListT &&value)
Definition DBSnapshot.h:638
void SetAvailabilityZone(AvailabilityZoneT &&value)
Definition DBSnapshot.h:177
const Aws::String & GetStorageType() const
Definition DBSnapshot.h:407
DBSnapshot & WithStatus(StatusT &&value)
Definition DBSnapshot.h:146
void SetSnapshotCreateTime(SnapshotCreateTimeT &&value)
Definition DBSnapshot.h:89
const Aws::String & GetSourceRegion() const
Definition DBSnapshot.h:369
DBSnapshot & WithSourceDBSnapshotIdentifier(SourceDBSnapshotIdentifierT &&value)
Definition DBSnapshot.h:397
bool GetDedicatedLogVolume() const
Definition DBSnapshot.h:760
const Aws::String & GetDbiResourceId() const
Definition DBSnapshot.h:619
void SetStatus(StatusT &&value)
Definition DBSnapshot.h:141
void SetBackupRetentionPeriod(int value)
Definition DBSnapshot.h:483
DBSnapshot & AddAdditionalStorageVolumes(AdditionalStorageVolumesT &&value)
Definition DBSnapshot.h:790
const Aws::String & GetLicenseModel() const
Definition DBSnapshot.h:265
bool LicenseModelHasBeenSet() const
Definition DBSnapshot.h:266
bool PreferredBackupWindowHasBeenSet() const
Definition DBSnapshot.h:500
DBSnapshot & WithStorageThroughput(int value)
Definition DBSnapshot.h:324
const Aws::String & GetDBSnapshotIdentifier() const
Definition DBSnapshot.h:48
const Aws::String & GetTimezone() const
Definition DBSnapshot.h:558
DBSnapshot & WithAdditionalStorageVolumes(AdditionalStorageVolumesT &&value)
Definition DBSnapshot.h:785
void SetStorageType(StorageTypeT &&value)
Definition DBSnapshot.h:410
const Aws::String & GetDBInstanceIdentifier() const
Definition DBSnapshot.h:67
const Aws::String & GetSnapshotTarget() const
Definition DBSnapshot.h:660
void SetAllocatedStorage(int value)
Definition DBSnapshot.h:124
DBSnapshot & WithStorageType(StorageTypeT &&value)
Definition DBSnapshot.h:415
const Aws::String & GetSourceDBSnapshotIdentifier() const
Definition DBSnapshot.h:389
const Aws::Vector< Tag > & GetTagList() const
Definition DBSnapshot.h:635
DBSnapshot & WithInstanceCreateTime(InstanceCreateTimeT &&value)
Definition DBSnapshot.h:219
DBSnapshot & WithSnapshotType(SnapshotTypeT &&value)
Definition DBSnapshot.h:291
int GetBackupRetentionPeriod() const
Definition DBSnapshot.h:481
DBSnapshot & WithTdeCredentialArn(TdeCredentialArnT &&value)
Definition DBSnapshot.h:434
bool DedicatedLogVolumeHasBeenSet() const
Definition DBSnapshot.h:761
void SetSnapshotType(SnapshotTypeT &&value)
Definition DBSnapshot.h:286
void SetSourceDBSnapshotIdentifier(SourceDBSnapshotIdentifierT &&value)
Definition DBSnapshot.h:392
bool GetIAMDatabaseAuthenticationEnabled() const
Definition DBSnapshot.h:577
DBSnapshot & WithDBSystemId(DBSystemIdT &&value)
Definition DBSnapshot.h:732
DBSnapshot & WithIAMDatabaseAuthenticationEnabled(bool value)
Definition DBSnapshot.h:583
const Aws::String & GetAvailabilityZone() const
Definition DBSnapshot.h:174
bool StorageEncryptionTypeHasBeenSet() const
Definition DBSnapshot.h:466
bool SnapshotTargetHasBeenSet() const
Definition DBSnapshot.h:661
bool EngineVersionHasBeenSet() const
Definition DBSnapshot.h:248
DBSnapshot & WithDedicatedLogVolume(bool value)
Definition DBSnapshot.h:766
DBSnapshot & WithAvailabilityZone(AvailabilityZoneT &&value)
Definition DBSnapshot.h:182
const Aws::String & GetStatus() const
Definition DBSnapshot.h:138
bool MultiTenantHasBeenSet() const
Definition DBSnapshot.h:744
void SetEngine(EngineT &&value)
Definition DBSnapshot.h:107
const Aws::String & GetMasterUsername() const
Definition DBSnapshot.h:229
DBSnapshot & WithSnapshotTarget(SnapshotTargetT &&value)
Definition DBSnapshot.h:668
AWS_RDS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_RDS_API DBSnapshot()=default
DBSnapshot & WithEngine(EngineT &&value)
Definition DBSnapshot.h:112
const Aws::String & GetSnapshotType() const
Definition DBSnapshot.h:283
DBSnapshot & WithStorageEncryptionType(StorageEncryptionType value)
Definition DBSnapshot.h:471
bool ProcessorFeaturesHasBeenSet() const
Definition DBSnapshot.h:595
StorageEncryptionType GetStorageEncryptionType() const
Definition DBSnapshot.h:465
DBSnapshot & WithPreferredBackupWindow(PreferredBackupWindowT &&value)
Definition DBSnapshot.h:507
void SetMasterUsername(MasterUsernameT &&value)
Definition DBSnapshot.h:232
void SetIAMDatabaseAuthenticationEnabled(bool value)
Definition DBSnapshot.h:579
AWS_RDS_API DBSnapshot & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
DBSnapshot & WithDBSnapshotIdentifier(DBSnapshotIdentifierT &&value)
Definition DBSnapshot.h:56
void SetDBSystemId(DBSystemIdT &&value)
Definition DBSnapshot.h:727
DBSnapshot & WithEncrypted(bool value)
Definition DBSnapshot.h:450
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