AWS SDK for C++

AWS SDK for C++ Version 1.11.716

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
461 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
462 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
463 template <typename KmsKeyIdT = Aws::String>
464 void SetKmsKeyId(KmsKeyIdT&& value) {
465 m_kmsKeyIdHasBeenSet = true;
466 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
467 }
468 template <typename KmsKeyIdT = Aws::String>
469 DBSnapshot& WithKmsKeyId(KmsKeyIdT&& value) {
470 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
471 return *this;
472 }
474
476
479 inline const Aws::String& GetDBSnapshotArn() const { return m_dBSnapshotArn; }
480 inline bool DBSnapshotArnHasBeenSet() const { return m_dBSnapshotArnHasBeenSet; }
481 template <typename DBSnapshotArnT = Aws::String>
482 void SetDBSnapshotArn(DBSnapshotArnT&& value) {
483 m_dBSnapshotArnHasBeenSet = true;
484 m_dBSnapshotArn = std::forward<DBSnapshotArnT>(value);
485 }
486 template <typename DBSnapshotArnT = Aws::String>
487 DBSnapshot& WithDBSnapshotArn(DBSnapshotArnT&& value) {
488 SetDBSnapshotArn(std::forward<DBSnapshotArnT>(value));
489 return *this;
490 }
492
494
500 inline const Aws::String& GetTimezone() const { return m_timezone; }
501 inline bool TimezoneHasBeenSet() const { return m_timezoneHasBeenSet; }
502 template <typename TimezoneT = Aws::String>
503 void SetTimezone(TimezoneT&& value) {
504 m_timezoneHasBeenSet = true;
505 m_timezone = std::forward<TimezoneT>(value);
506 }
507 template <typename TimezoneT = Aws::String>
508 DBSnapshot& WithTimezone(TimezoneT&& value) {
509 SetTimezone(std::forward<TimezoneT>(value));
510 return *this;
511 }
513
515
519 inline bool GetIAMDatabaseAuthenticationEnabled() const { return m_iAMDatabaseAuthenticationEnabled; }
520 inline bool IAMDatabaseAuthenticationEnabledHasBeenSet() const { return m_iAMDatabaseAuthenticationEnabledHasBeenSet; }
521 inline void SetIAMDatabaseAuthenticationEnabled(bool value) {
522 m_iAMDatabaseAuthenticationEnabledHasBeenSet = true;
523 m_iAMDatabaseAuthenticationEnabled = value;
524 }
527 return *this;
528 }
530
532
536 inline const Aws::Vector<ProcessorFeature>& GetProcessorFeatures() const { return m_processorFeatures; }
537 inline bool ProcessorFeaturesHasBeenSet() const { return m_processorFeaturesHasBeenSet; }
538 template <typename ProcessorFeaturesT = Aws::Vector<ProcessorFeature>>
539 void SetProcessorFeatures(ProcessorFeaturesT&& value) {
540 m_processorFeaturesHasBeenSet = true;
541 m_processorFeatures = std::forward<ProcessorFeaturesT>(value);
542 }
543 template <typename ProcessorFeaturesT = Aws::Vector<ProcessorFeature>>
544 DBSnapshot& WithProcessorFeatures(ProcessorFeaturesT&& value) {
545 SetProcessorFeatures(std::forward<ProcessorFeaturesT>(value));
546 return *this;
547 }
548 template <typename ProcessorFeaturesT = ProcessorFeature>
549 DBSnapshot& AddProcessorFeatures(ProcessorFeaturesT&& value) {
550 m_processorFeaturesHasBeenSet = true;
551 m_processorFeatures.emplace_back(std::forward<ProcessorFeaturesT>(value));
552 return *this;
553 }
555
557
561 inline const Aws::String& GetDbiResourceId() const { return m_dbiResourceId; }
562 inline bool DbiResourceIdHasBeenSet() const { return m_dbiResourceIdHasBeenSet; }
563 template <typename DbiResourceIdT = Aws::String>
564 void SetDbiResourceId(DbiResourceIdT&& value) {
565 m_dbiResourceIdHasBeenSet = true;
566 m_dbiResourceId = std::forward<DbiResourceIdT>(value);
567 }
568 template <typename DbiResourceIdT = Aws::String>
569 DBSnapshot& WithDbiResourceId(DbiResourceIdT&& value) {
570 SetDbiResourceId(std::forward<DbiResourceIdT>(value));
571 return *this;
572 }
574
576
577 inline const Aws::Vector<Tag>& GetTagList() const { return m_tagList; }
578 inline bool TagListHasBeenSet() const { return m_tagListHasBeenSet; }
579 template <typename TagListT = Aws::Vector<Tag>>
580 void SetTagList(TagListT&& value) {
581 m_tagListHasBeenSet = true;
582 m_tagList = std::forward<TagListT>(value);
583 }
584 template <typename TagListT = Aws::Vector<Tag>>
585 DBSnapshot& WithTagList(TagListT&& value) {
586 SetTagList(std::forward<TagListT>(value));
587 return *this;
588 }
589 template <typename TagListT = Tag>
590 DBSnapshot& AddTagList(TagListT&& value) {
591 m_tagListHasBeenSet = true;
592 m_tagList.emplace_back(std::forward<TagListT>(value));
593 return *this;
594 }
596
598
602 inline const Aws::String& GetSnapshotTarget() const { return m_snapshotTarget; }
603 inline bool SnapshotTargetHasBeenSet() const { return m_snapshotTargetHasBeenSet; }
604 template <typename SnapshotTargetT = Aws::String>
605 void SetSnapshotTarget(SnapshotTargetT&& value) {
606 m_snapshotTargetHasBeenSet = true;
607 m_snapshotTarget = std::forward<SnapshotTargetT>(value);
608 }
609 template <typename SnapshotTargetT = Aws::String>
610 DBSnapshot& WithSnapshotTarget(SnapshotTargetT&& value) {
611 SetSnapshotTarget(std::forward<SnapshotTargetT>(value));
612 return *this;
613 }
615
617
621 inline const Aws::Utils::DateTime& GetOriginalSnapshotCreateTime() const { return m_originalSnapshotCreateTime; }
622 inline bool OriginalSnapshotCreateTimeHasBeenSet() const { return m_originalSnapshotCreateTimeHasBeenSet; }
623 template <typename OriginalSnapshotCreateTimeT = Aws::Utils::DateTime>
624 void SetOriginalSnapshotCreateTime(OriginalSnapshotCreateTimeT&& value) {
625 m_originalSnapshotCreateTimeHasBeenSet = true;
626 m_originalSnapshotCreateTime = std::forward<OriginalSnapshotCreateTimeT>(value);
627 }
628 template <typename OriginalSnapshotCreateTimeT = Aws::Utils::DateTime>
629 DBSnapshot& WithOriginalSnapshotCreateTime(OriginalSnapshotCreateTimeT&& value) {
630 SetOriginalSnapshotCreateTime(std::forward<OriginalSnapshotCreateTimeT>(value));
631 return *this;
632 }
634
636
646 inline const Aws::Utils::DateTime& GetSnapshotDatabaseTime() const { return m_snapshotDatabaseTime; }
647 inline bool SnapshotDatabaseTimeHasBeenSet() const { return m_snapshotDatabaseTimeHasBeenSet; }
648 template <typename SnapshotDatabaseTimeT = Aws::Utils::DateTime>
649 void SetSnapshotDatabaseTime(SnapshotDatabaseTimeT&& value) {
650 m_snapshotDatabaseTimeHasBeenSet = true;
651 m_snapshotDatabaseTime = std::forward<SnapshotDatabaseTimeT>(value);
652 }
653 template <typename SnapshotDatabaseTimeT = Aws::Utils::DateTime>
654 DBSnapshot& WithSnapshotDatabaseTime(SnapshotDatabaseTimeT&& value) {
655 SetSnapshotDatabaseTime(std::forward<SnapshotDatabaseTimeT>(value));
656 return *this;
657 }
659
661
666 inline const Aws::String& GetDBSystemId() const { return m_dBSystemId; }
667 inline bool DBSystemIdHasBeenSet() const { return m_dBSystemIdHasBeenSet; }
668 template <typename DBSystemIdT = Aws::String>
669 void SetDBSystemId(DBSystemIdT&& value) {
670 m_dBSystemIdHasBeenSet = true;
671 m_dBSystemId = std::forward<DBSystemIdT>(value);
672 }
673 template <typename DBSystemIdT = Aws::String>
674 DBSnapshot& WithDBSystemId(DBSystemIdT&& value) {
675 SetDBSystemId(std::forward<DBSystemIdT>(value));
676 return *this;
677 }
679
681
685 inline bool GetMultiTenant() const { return m_multiTenant; }
686 inline bool MultiTenantHasBeenSet() const { return m_multiTenantHasBeenSet; }
687 inline void SetMultiTenant(bool value) {
688 m_multiTenantHasBeenSet = true;
689 m_multiTenant = value;
690 }
691 inline DBSnapshot& WithMultiTenant(bool value) {
692 SetMultiTenant(value);
693 return *this;
694 }
696
698
702 inline bool GetDedicatedLogVolume() const { return m_dedicatedLogVolume; }
703 inline bool DedicatedLogVolumeHasBeenSet() const { return m_dedicatedLogVolumeHasBeenSet; }
704 inline void SetDedicatedLogVolume(bool value) {
705 m_dedicatedLogVolumeHasBeenSet = true;
706 m_dedicatedLogVolume = value;
707 }
708 inline DBSnapshot& WithDedicatedLogVolume(bool value) {
710 return *this;
711 }
713
715
720 inline const Aws::String& GetSnapshotAvailabilityZone() const { return m_snapshotAvailabilityZone; }
721 inline bool SnapshotAvailabilityZoneHasBeenSet() const { return m_snapshotAvailabilityZoneHasBeenSet; }
722 template <typename SnapshotAvailabilityZoneT = Aws::String>
723 void SetSnapshotAvailabilityZone(SnapshotAvailabilityZoneT&& value) {
724 m_snapshotAvailabilityZoneHasBeenSet = true;
725 m_snapshotAvailabilityZone = std::forward<SnapshotAvailabilityZoneT>(value);
726 }
727 template <typename SnapshotAvailabilityZoneT = Aws::String>
728 DBSnapshot& WithSnapshotAvailabilityZone(SnapshotAvailabilityZoneT&& value) {
729 SetSnapshotAvailabilityZone(std::forward<SnapshotAvailabilityZoneT>(value));
730 return *this;
731 }
733
735
739 inline const Aws::Vector<AdditionalStorageVolume>& GetAdditionalStorageVolumes() const { return m_additionalStorageVolumes; }
740 inline bool AdditionalStorageVolumesHasBeenSet() const { return m_additionalStorageVolumesHasBeenSet; }
741 template <typename AdditionalStorageVolumesT = Aws::Vector<AdditionalStorageVolume>>
742 void SetAdditionalStorageVolumes(AdditionalStorageVolumesT&& value) {
743 m_additionalStorageVolumesHasBeenSet = true;
744 m_additionalStorageVolumes = std::forward<AdditionalStorageVolumesT>(value);
745 }
746 template <typename AdditionalStorageVolumesT = Aws::Vector<AdditionalStorageVolume>>
747 DBSnapshot& WithAdditionalStorageVolumes(AdditionalStorageVolumesT&& value) {
748 SetAdditionalStorageVolumes(std::forward<AdditionalStorageVolumesT>(value));
749 return *this;
750 }
751 template <typename AdditionalStorageVolumesT = AdditionalStorageVolume>
752 DBSnapshot& AddAdditionalStorageVolumes(AdditionalStorageVolumesT&& value) {
753 m_additionalStorageVolumesHasBeenSet = true;
754 m_additionalStorageVolumes.emplace_back(std::forward<AdditionalStorageVolumesT>(value));
755 return *this;
756 }
758 private:
759 Aws::String m_dBSnapshotIdentifier;
760
761 Aws::String m_dBInstanceIdentifier;
762
763 Aws::Utils::DateTime m_snapshotCreateTime{};
764
765 Aws::String m_engine;
766
767 int m_allocatedStorage{0};
768
769 Aws::String m_status;
770
771 int m_port{0};
772
773 Aws::String m_availabilityZone;
774
775 Aws::String m_vpcId;
776
777 Aws::Utils::DateTime m_instanceCreateTime{};
778
779 Aws::String m_masterUsername;
780
781 Aws::String m_engineVersion;
782
783 Aws::String m_licenseModel;
784
785 Aws::String m_snapshotType;
786
787 int m_iops{0};
788
789 int m_storageThroughput{0};
790
791 Aws::String m_optionGroupName;
792
793 int m_percentProgress{0};
794
795 Aws::String m_sourceRegion;
796
797 Aws::String m_sourceDBSnapshotIdentifier;
798
799 Aws::String m_storageType;
800
801 Aws::String m_tdeCredentialArn;
802
803 bool m_encrypted{false};
804
805 Aws::String m_kmsKeyId;
806
807 Aws::String m_dBSnapshotArn;
808
809 Aws::String m_timezone;
810
811 bool m_iAMDatabaseAuthenticationEnabled{false};
812
813 Aws::Vector<ProcessorFeature> m_processorFeatures;
814
815 Aws::String m_dbiResourceId;
816
817 Aws::Vector<Tag> m_tagList;
818
819 Aws::String m_snapshotTarget;
820
821 Aws::Utils::DateTime m_originalSnapshotCreateTime{};
822
823 Aws::Utils::DateTime m_snapshotDatabaseTime{};
824
825 Aws::String m_dBSystemId;
826
827 bool m_multiTenant{false};
828
829 bool m_dedicatedLogVolume{false};
830
831 Aws::String m_snapshotAvailabilityZone;
832
833 Aws::Vector<AdditionalStorageVolume> m_additionalStorageVolumes;
834 bool m_dBSnapshotIdentifierHasBeenSet = false;
835 bool m_dBInstanceIdentifierHasBeenSet = false;
836 bool m_snapshotCreateTimeHasBeenSet = false;
837 bool m_engineHasBeenSet = false;
838 bool m_allocatedStorageHasBeenSet = false;
839 bool m_statusHasBeenSet = false;
840 bool m_portHasBeenSet = false;
841 bool m_availabilityZoneHasBeenSet = false;
842 bool m_vpcIdHasBeenSet = false;
843 bool m_instanceCreateTimeHasBeenSet = false;
844 bool m_masterUsernameHasBeenSet = false;
845 bool m_engineVersionHasBeenSet = false;
846 bool m_licenseModelHasBeenSet = false;
847 bool m_snapshotTypeHasBeenSet = false;
848 bool m_iopsHasBeenSet = false;
849 bool m_storageThroughputHasBeenSet = false;
850 bool m_optionGroupNameHasBeenSet = false;
851 bool m_percentProgressHasBeenSet = false;
852 bool m_sourceRegionHasBeenSet = false;
853 bool m_sourceDBSnapshotIdentifierHasBeenSet = false;
854 bool m_storageTypeHasBeenSet = false;
855 bool m_tdeCredentialArnHasBeenSet = false;
856 bool m_encryptedHasBeenSet = false;
857 bool m_kmsKeyIdHasBeenSet = false;
858 bool m_dBSnapshotArnHasBeenSet = false;
859 bool m_timezoneHasBeenSet = false;
860 bool m_iAMDatabaseAuthenticationEnabledHasBeenSet = false;
861 bool m_processorFeaturesHasBeenSet = false;
862 bool m_dbiResourceIdHasBeenSet = false;
863 bool m_tagListHasBeenSet = false;
864 bool m_snapshotTargetHasBeenSet = false;
865 bool m_originalSnapshotCreateTimeHasBeenSet = false;
866 bool m_snapshotDatabaseTimeHasBeenSet = false;
867 bool m_dBSystemIdHasBeenSet = false;
868 bool m_multiTenantHasBeenSet = false;
869 bool m_dedicatedLogVolumeHasBeenSet = false;
870 bool m_snapshotAvailabilityZoneHasBeenSet = false;
871 bool m_additionalStorageVolumesHasBeenSet = false;
872};
873
874} // namespace Model
875} // namespace RDS
876} // namespace Aws
DBSnapshot & WithSnapshotAvailabilityZone(SnapshotAvailabilityZoneT &&value)
Definition DBSnapshot.h:728
void SetTimezone(TimezoneT &&value)
Definition DBSnapshot.h:503
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:667
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:739
void SetOriginalSnapshotCreateTime(OriginalSnapshotCreateTimeT &&value)
Definition DBSnapshot.h:624
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:687
void SetDbiResourceId(DbiResourceIdT &&value)
Definition DBSnapshot.h:564
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:647
bool EncryptedHasBeenSet() const
Definition DBSnapshot.h:444
bool DBInstanceIdentifierHasBeenSet() const
Definition DBSnapshot.h:67
DBSnapshot & AddProcessorFeatures(ProcessorFeaturesT &&value)
Definition DBSnapshot.h:549
bool TdeCredentialArnHasBeenSet() const
Definition DBSnapshot.h:426
const Aws::String & GetDBSnapshotArn() const
Definition DBSnapshot.h:479
void SetSnapshotTarget(SnapshotTargetT &&value)
Definition DBSnapshot.h:605
bool AllocatedStorageHasBeenSet() const
Definition DBSnapshot.h:122
void SetProcessorFeatures(ProcessorFeaturesT &&value)
Definition DBSnapshot.h:539
const Aws::Vector< ProcessorFeature > & GetProcessorFeatures() const
Definition DBSnapshot.h:536
bool SourceRegionHasBeenSet() const
Definition DBSnapshot.h:369
DBSnapshot & WithMasterUsername(MasterUsernameT &&value)
Definition DBSnapshot.h:236
bool DbiResourceIdHasBeenSet() const
Definition DBSnapshot.h:562
void SetVpcId(VpcIdT &&value)
Definition DBSnapshot.h:194
const Aws::String & GetKmsKeyId() const
Definition DBSnapshot.h:461
void SetTdeCredentialArn(TdeCredentialArnT &&value)
Definition DBSnapshot.h:428
bool SnapshotCreateTimeHasBeenSet() const
Definition DBSnapshot.h:86
bool AdditionalStorageVolumesHasBeenSet() const
Definition DBSnapshot.h:740
DBSnapshot & WithOriginalSnapshotCreateTime(OriginalSnapshotCreateTimeT &&value)
Definition DBSnapshot.h:629
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:544
bool SnapshotTypeHasBeenSet() const
Definition DBSnapshot.h:283
void SetLicenseModel(LicenseModelT &&value)
Definition DBSnapshot.h:267
DBSnapshot & AddTagList(TagListT &&value)
Definition DBSnapshot.h:590
const Aws::Utils::DateTime & GetSnapshotDatabaseTime() const
Definition DBSnapshot.h:646
bool IAMDatabaseAuthenticationEnabledHasBeenSet() const
Definition DBSnapshot.h:520
void SetKmsKeyId(KmsKeyIdT &&value)
Definition DBSnapshot.h:464
bool DBSnapshotArnHasBeenSet() const
Definition DBSnapshot.h:480
DBSnapshot & WithDbiResourceId(DbiResourceIdT &&value)
Definition DBSnapshot.h:569
DBSnapshot & WithSnapshotDatabaseTime(SnapshotDatabaseTimeT &&value)
Definition DBSnapshot.h:654
DBSnapshot & WithAllocatedStorage(int value)
Definition DBSnapshot.h:127
DBSnapshot & WithTagList(TagListT &&value)
Definition DBSnapshot.h:585
DBSnapshot & WithLicenseModel(LicenseModelT &&value)
Definition DBSnapshot.h:272
const Aws::String & GetDBSystemId() const
Definition DBSnapshot.h:666
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:704
void SetInstanceCreateTime(InstanceCreateTimeT &&value)
Definition DBSnapshot.h:213
DBSnapshot & WithDBInstanceIdentifier(DBInstanceIdentifierT &&value)
Definition DBSnapshot.h:74
bool OriginalSnapshotCreateTimeHasBeenSet() const
Definition DBSnapshot.h:622
void SetDBSnapshotArn(DBSnapshotArnT &&value)
Definition DBSnapshot.h:482
const Aws::Utils::DateTime & GetOriginalSnapshotCreateTime() const
Definition DBSnapshot.h:621
const Aws::String & GetSnapshotAvailabilityZone() const
Definition DBSnapshot.h:720
void SetEngineVersion(EngineVersionT &&value)
Definition DBSnapshot.h:249
bool SnapshotAvailabilityZoneHasBeenSet() const
Definition DBSnapshot.h:721
bool KmsKeyIdHasBeenSet() const
Definition DBSnapshot.h:462
DBSnapshot & WithMultiTenant(bool value)
Definition DBSnapshot.h:691
bool InstanceCreateTimeHasBeenSet() const
Definition DBSnapshot.h:211
void SetSnapshotDatabaseTime(SnapshotDatabaseTimeT &&value)
Definition DBSnapshot.h:649
bool StorageThroughputHasBeenSet() const
Definition DBSnapshot.h:318
bool DBSnapshotIdentifierHasBeenSet() const
Definition DBSnapshot.h:48
void SetSnapshotAvailabilityZone(SnapshotAvailabilityZoneT &&value)
Definition DBSnapshot.h:723
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:487
bool TimezoneHasBeenSet() const
Definition DBSnapshot.h:501
DBSnapshot & WithTimezone(TimezoneT &&value)
Definition DBSnapshot.h:508
void SetAdditionalStorageVolumes(AdditionalStorageVolumesT &&value)
Definition DBSnapshot.h:742
DBSnapshot & WithKmsKeyId(KmsKeyIdT &&value)
Definition DBSnapshot.h:469
void SetTagList(TagListT &&value)
Definition DBSnapshot.h:580
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:702
const Aws::String & GetDbiResourceId() const
Definition DBSnapshot.h:561
void SetStatus(StatusT &&value)
Definition DBSnapshot.h:140
DBSnapshot & AddAdditionalStorageVolumes(AdditionalStorageVolumesT &&value)
Definition DBSnapshot.h:752
const Aws::String & GetLicenseModel() const
Definition DBSnapshot.h:264
bool LicenseModelHasBeenSet() const
Definition DBSnapshot.h:265
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:500
DBSnapshot & WithAdditionalStorageVolumes(AdditionalStorageVolumesT &&value)
Definition DBSnapshot.h:747
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:602
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:577
DBSnapshot & WithInstanceCreateTime(InstanceCreateTimeT &&value)
Definition DBSnapshot.h:218
DBSnapshot & WithSnapshotType(SnapshotTypeT &&value)
Definition DBSnapshot.h:290
DBSnapshot & WithTdeCredentialArn(TdeCredentialArnT &&value)
Definition DBSnapshot.h:433
bool DedicatedLogVolumeHasBeenSet() const
Definition DBSnapshot.h:703
void SetSnapshotType(SnapshotTypeT &&value)
Definition DBSnapshot.h:285
void SetSourceDBSnapshotIdentifier(SourceDBSnapshotIdentifierT &&value)
Definition DBSnapshot.h:391
bool GetIAMDatabaseAuthenticationEnabled() const
Definition DBSnapshot.h:519
DBSnapshot & WithDBSystemId(DBSystemIdT &&value)
Definition DBSnapshot.h:674
DBSnapshot & WithIAMDatabaseAuthenticationEnabled(bool value)
Definition DBSnapshot.h:525
const Aws::String & GetAvailabilityZone() const
Definition DBSnapshot.h:173
bool SnapshotTargetHasBeenSet() const
Definition DBSnapshot.h:603
bool EngineVersionHasBeenSet() const
Definition DBSnapshot.h:247
DBSnapshot & WithDedicatedLogVolume(bool value)
Definition DBSnapshot.h:708
DBSnapshot & WithAvailabilityZone(AvailabilityZoneT &&value)
Definition DBSnapshot.h:181
const Aws::String & GetStatus() const
Definition DBSnapshot.h:137
bool MultiTenantHasBeenSet() const
Definition DBSnapshot.h:686
void SetEngine(EngineT &&value)
Definition DBSnapshot.h:106
const Aws::String & GetMasterUsername() const
Definition DBSnapshot.h:228
DBSnapshot & WithSnapshotTarget(SnapshotTargetT &&value)
Definition DBSnapshot.h:610
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:537
void SetMasterUsername(MasterUsernameT &&value)
Definition DBSnapshot.h:231
void SetIAMDatabaseAuthenticationEnabled(bool value)
Definition DBSnapshot.h:521
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:669
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