AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DBClusterAutomatedBackup.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/RestoreWindow.h>
13#include <aws/rds/model/Tag.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Xml {
20class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace RDS {
24namespace Model {
25
34 public:
35 AWS_RDS_API DBClusterAutomatedBackup() = default;
38
39 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
43
46 inline const Aws::String& GetEngine() const { return m_engine; }
47 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
48 template <typename EngineT = Aws::String>
49 void SetEngine(EngineT&& value) {
50 m_engineHasBeenSet = true;
51 m_engine = std::forward<EngineT>(value);
52 }
53 template <typename EngineT = Aws::String>
55 SetEngine(std::forward<EngineT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetVpcId() const { return m_vpcId; }
65 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
66 template <typename VpcIdT = Aws::String>
67 void SetVpcId(VpcIdT&& value) {
68 m_vpcIdHasBeenSet = true;
69 m_vpcId = std::forward<VpcIdT>(value);
70 }
71 template <typename VpcIdT = Aws::String>
73 SetVpcId(std::forward<VpcIdT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::String& GetDBClusterAutomatedBackupsArn() const { return m_dBClusterAutomatedBackupsArn; }
83 inline bool DBClusterAutomatedBackupsArnHasBeenSet() const { return m_dBClusterAutomatedBackupsArnHasBeenSet; }
84 template <typename DBClusterAutomatedBackupsArnT = Aws::String>
85 void SetDBClusterAutomatedBackupsArn(DBClusterAutomatedBackupsArnT&& value) {
86 m_dBClusterAutomatedBackupsArnHasBeenSet = true;
87 m_dBClusterAutomatedBackupsArn = std::forward<DBClusterAutomatedBackupsArnT>(value);
88 }
89 template <typename DBClusterAutomatedBackupsArnT = Aws::String>
90 DBClusterAutomatedBackup& WithDBClusterAutomatedBackupsArn(DBClusterAutomatedBackupsArnT&& value) {
91 SetDBClusterAutomatedBackupsArn(std::forward<DBClusterAutomatedBackupsArnT>(value));
92 return *this;
93 }
95
97
101 inline const Aws::String& GetDBClusterIdentifier() const { return m_dBClusterIdentifier; }
102 inline bool DBClusterIdentifierHasBeenSet() const { return m_dBClusterIdentifierHasBeenSet; }
103 template <typename DBClusterIdentifierT = Aws::String>
104 void SetDBClusterIdentifier(DBClusterIdentifierT&& value) {
105 m_dBClusterIdentifierHasBeenSet = true;
106 m_dBClusterIdentifier = std::forward<DBClusterIdentifierT>(value);
107 }
108 template <typename DBClusterIdentifierT = Aws::String>
109 DBClusterAutomatedBackup& WithDBClusterIdentifier(DBClusterIdentifierT&& value) {
110 SetDBClusterIdentifier(std::forward<DBClusterIdentifierT>(value));
111 return *this;
112 }
114
116
117 inline const RestoreWindow& GetRestoreWindow() const { return m_restoreWindow; }
118 inline bool RestoreWindowHasBeenSet() const { return m_restoreWindowHasBeenSet; }
119 template <typename RestoreWindowT = RestoreWindow>
120 void SetRestoreWindow(RestoreWindowT&& value) {
121 m_restoreWindowHasBeenSet = true;
122 m_restoreWindow = std::forward<RestoreWindowT>(value);
123 }
124 template <typename RestoreWindowT = RestoreWindow>
126 SetRestoreWindow(std::forward<RestoreWindowT>(value));
127 return *this;
128 }
130
132
135 inline const Aws::String& GetMasterUsername() const { return m_masterUsername; }
136 inline bool MasterUsernameHasBeenSet() const { return m_masterUsernameHasBeenSet; }
137 template <typename MasterUsernameT = Aws::String>
138 void SetMasterUsername(MasterUsernameT&& value) {
139 m_masterUsernameHasBeenSet = true;
140 m_masterUsername = std::forward<MasterUsernameT>(value);
141 }
142 template <typename MasterUsernameT = Aws::String>
144 SetMasterUsername(std::forward<MasterUsernameT>(value));
145 return *this;
146 }
148
150
154 inline const Aws::String& GetDbClusterResourceId() const { return m_dbClusterResourceId; }
155 inline bool DbClusterResourceIdHasBeenSet() const { return m_dbClusterResourceIdHasBeenSet; }
156 template <typename DbClusterResourceIdT = Aws::String>
157 void SetDbClusterResourceId(DbClusterResourceIdT&& value) {
158 m_dbClusterResourceIdHasBeenSet = true;
159 m_dbClusterResourceId = std::forward<DbClusterResourceIdT>(value);
160 }
161 template <typename DbClusterResourceIdT = Aws::String>
162 DBClusterAutomatedBackup& WithDbClusterResourceId(DbClusterResourceIdT&& value) {
163 SetDbClusterResourceId(std::forward<DbClusterResourceIdT>(value));
164 return *this;
165 }
167
169
172 inline const Aws::String& GetRegion() const { return m_region; }
173 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
174 template <typename RegionT = Aws::String>
175 void SetRegion(RegionT&& value) {
176 m_regionHasBeenSet = true;
177 m_region = std::forward<RegionT>(value);
178 }
179 template <typename RegionT = Aws::String>
181 SetRegion(std::forward<RegionT>(value));
182 return *this;
183 }
185
187
190 inline const Aws::String& GetLicenseModel() const { return m_licenseModel; }
191 inline bool LicenseModelHasBeenSet() const { return m_licenseModelHasBeenSet; }
192 template <typename LicenseModelT = Aws::String>
193 void SetLicenseModel(LicenseModelT&& value) {
194 m_licenseModelHasBeenSet = true;
195 m_licenseModel = std::forward<LicenseModelT>(value);
196 }
197 template <typename LicenseModelT = Aws::String>
199 SetLicenseModel(std::forward<LicenseModelT>(value));
200 return *this;
201 }
203
205
209 inline const Aws::String& GetStatus() const { return m_status; }
210 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
211 template <typename StatusT = Aws::String>
212 void SetStatus(StatusT&& value) {
213 m_statusHasBeenSet = true;
214 m_status = std::forward<StatusT>(value);
215 }
216 template <typename StatusT = Aws::String>
218 SetStatus(std::forward<StatusT>(value));
219 return *this;
220 }
222
224
228 inline bool GetIAMDatabaseAuthenticationEnabled() const { return m_iAMDatabaseAuthenticationEnabled; }
229 inline bool IAMDatabaseAuthenticationEnabledHasBeenSet() const { return m_iAMDatabaseAuthenticationEnabledHasBeenSet; }
230 inline void SetIAMDatabaseAuthenticationEnabled(bool value) {
231 m_iAMDatabaseAuthenticationEnabledHasBeenSet = true;
232 m_iAMDatabaseAuthenticationEnabled = value;
233 }
236 return *this;
237 }
239
241
245 inline const Aws::Utils::DateTime& GetClusterCreateTime() const { return m_clusterCreateTime; }
246 inline bool ClusterCreateTimeHasBeenSet() const { return m_clusterCreateTimeHasBeenSet; }
247 template <typename ClusterCreateTimeT = Aws::Utils::DateTime>
248 void SetClusterCreateTime(ClusterCreateTimeT&& value) {
249 m_clusterCreateTimeHasBeenSet = true;
250 m_clusterCreateTime = std::forward<ClusterCreateTimeT>(value);
251 }
252 template <typename ClusterCreateTimeT = Aws::Utils::DateTime>
253 DBClusterAutomatedBackup& WithClusterCreateTime(ClusterCreateTimeT&& value) {
254 SetClusterCreateTime(std::forward<ClusterCreateTimeT>(value));
255 return *this;
256 }
258
260
263 inline bool GetStorageEncrypted() const { return m_storageEncrypted; }
264 inline bool StorageEncryptedHasBeenSet() const { return m_storageEncryptedHasBeenSet; }
265 inline void SetStorageEncrypted(bool value) {
266 m_storageEncryptedHasBeenSet = true;
267 m_storageEncrypted = value;
268 }
270 SetStorageEncrypted(value);
271 return *this;
272 }
274
276
282 inline int GetAllocatedStorage() const { return m_allocatedStorage; }
283 inline bool AllocatedStorageHasBeenSet() const { return m_allocatedStorageHasBeenSet; }
284 inline void SetAllocatedStorage(int value) {
285 m_allocatedStorageHasBeenSet = true;
286 m_allocatedStorage = value;
287 }
289 SetAllocatedStorage(value);
290 return *this;
291 }
293
295
298 inline const Aws::String& GetEngineVersion() const { return m_engineVersion; }
299 inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; }
300 template <typename EngineVersionT = Aws::String>
301 void SetEngineVersion(EngineVersionT&& value) {
302 m_engineVersionHasBeenSet = true;
303 m_engineVersion = std::forward<EngineVersionT>(value);
304 }
305 template <typename EngineVersionT = Aws::String>
307 SetEngineVersion(std::forward<EngineVersionT>(value));
308 return *this;
309 }
311
313
316 inline const Aws::String& GetDBClusterArn() const { return m_dBClusterArn; }
317 inline bool DBClusterArnHasBeenSet() const { return m_dBClusterArnHasBeenSet; }
318 template <typename DBClusterArnT = Aws::String>
319 void SetDBClusterArn(DBClusterArnT&& value) {
320 m_dBClusterArnHasBeenSet = true;
321 m_dBClusterArn = std::forward<DBClusterArnT>(value);
322 }
323 template <typename DBClusterArnT = Aws::String>
325 SetDBClusterArn(std::forward<DBClusterArnT>(value));
326 return *this;
327 }
329
331
334 inline int GetBackupRetentionPeriod() const { return m_backupRetentionPeriod; }
335 inline bool BackupRetentionPeriodHasBeenSet() const { return m_backupRetentionPeriodHasBeenSet; }
336 inline void SetBackupRetentionPeriod(int value) {
337 m_backupRetentionPeriodHasBeenSet = true;
338 m_backupRetentionPeriod = value;
339 }
342 return *this;
343 }
345
347
350 inline const Aws::String& GetEngineMode() const { return m_engineMode; }
351 inline bool EngineModeHasBeenSet() const { return m_engineModeHasBeenSet; }
352 template <typename EngineModeT = Aws::String>
353 void SetEngineMode(EngineModeT&& value) {
354 m_engineModeHasBeenSet = true;
355 m_engineMode = std::forward<EngineModeT>(value);
356 }
357 template <typename EngineModeT = Aws::String>
359 SetEngineMode(std::forward<EngineModeT>(value));
360 return *this;
361 }
363
365
371 inline const Aws::Vector<Aws::String>& GetAvailabilityZones() const { return m_availabilityZones; }
372 inline bool AvailabilityZonesHasBeenSet() const { return m_availabilityZonesHasBeenSet; }
373 template <typename AvailabilityZonesT = Aws::Vector<Aws::String>>
374 void SetAvailabilityZones(AvailabilityZonesT&& value) {
375 m_availabilityZonesHasBeenSet = true;
376 m_availabilityZones = std::forward<AvailabilityZonesT>(value);
377 }
378 template <typename AvailabilityZonesT = Aws::Vector<Aws::String>>
379 DBClusterAutomatedBackup& WithAvailabilityZones(AvailabilityZonesT&& value) {
380 SetAvailabilityZones(std::forward<AvailabilityZonesT>(value));
381 return *this;
382 }
383 template <typename AvailabilityZonesT = Aws::String>
384 DBClusterAutomatedBackup& AddAvailabilityZones(AvailabilityZonesT&& value) {
385 m_availabilityZonesHasBeenSet = true;
386 m_availabilityZones.emplace_back(std::forward<AvailabilityZonesT>(value));
387 return *this;
388 }
390
392
397 inline int GetPort() const { return m_port; }
398 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
399 inline void SetPort(int value) {
400 m_portHasBeenSet = true;
401 m_port = value;
402 }
404 SetPort(value);
405 return *this;
406 }
408
410
415 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
416 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
417 template <typename KmsKeyIdT = Aws::String>
418 void SetKmsKeyId(KmsKeyIdT&& value) {
419 m_kmsKeyIdHasBeenSet = true;
420 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
421 }
422 template <typename KmsKeyIdT = Aws::String>
424 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
425 return *this;
426 }
428
430
434 inline const Aws::String& GetStorageType() const { return m_storageType; }
435 inline bool StorageTypeHasBeenSet() const { return m_storageTypeHasBeenSet; }
436 template <typename StorageTypeT = Aws::String>
437 void SetStorageType(StorageTypeT&& value) {
438 m_storageTypeHasBeenSet = true;
439 m_storageType = std::forward<StorageTypeT>(value);
440 }
441 template <typename StorageTypeT = Aws::String>
443 SetStorageType(std::forward<StorageTypeT>(value));
444 return *this;
445 }
447
449
453 inline int GetIops() const { return m_iops; }
454 inline bool IopsHasBeenSet() const { return m_iopsHasBeenSet; }
455 inline void SetIops(int value) {
456 m_iopsHasBeenSet = true;
457 m_iops = value;
458 }
460 SetIops(value);
461 return *this;
462 }
464
466
472 inline int GetStorageThroughput() const { return m_storageThroughput; }
473 inline bool StorageThroughputHasBeenSet() const { return m_storageThroughputHasBeenSet; }
474 inline void SetStorageThroughput(int value) {
475 m_storageThroughputHasBeenSet = true;
476 m_storageThroughput = value;
477 }
480 return *this;
481 }
483
485
489 inline const Aws::String& GetAwsBackupRecoveryPointArn() const { return m_awsBackupRecoveryPointArn; }
490 inline bool AwsBackupRecoveryPointArnHasBeenSet() const { return m_awsBackupRecoveryPointArnHasBeenSet; }
491 template <typename AwsBackupRecoveryPointArnT = Aws::String>
492 void SetAwsBackupRecoveryPointArn(AwsBackupRecoveryPointArnT&& value) {
493 m_awsBackupRecoveryPointArnHasBeenSet = true;
494 m_awsBackupRecoveryPointArn = std::forward<AwsBackupRecoveryPointArnT>(value);
495 }
496 template <typename AwsBackupRecoveryPointArnT = Aws::String>
497 DBClusterAutomatedBackup& WithAwsBackupRecoveryPointArn(AwsBackupRecoveryPointArnT&& value) {
498 SetAwsBackupRecoveryPointArn(std::forward<AwsBackupRecoveryPointArnT>(value));
499 return *this;
500 }
502
504
505 inline const Aws::Vector<Tag>& GetTagList() const { return m_tagList; }
506 inline bool TagListHasBeenSet() const { return m_tagListHasBeenSet; }
507 template <typename TagListT = Aws::Vector<Tag>>
508 void SetTagList(TagListT&& value) {
509 m_tagListHasBeenSet = true;
510 m_tagList = std::forward<TagListT>(value);
511 }
512 template <typename TagListT = Aws::Vector<Tag>>
514 SetTagList(std::forward<TagListT>(value));
515 return *this;
516 }
517 template <typename TagListT = Tag>
519 m_tagListHasBeenSet = true;
520 m_tagList.emplace_back(std::forward<TagListT>(value));
521 return *this;
522 }
524 private:
525 Aws::String m_engine;
526
527 Aws::String m_vpcId;
528
529 Aws::String m_dBClusterAutomatedBackupsArn;
530
531 Aws::String m_dBClusterIdentifier;
532
533 RestoreWindow m_restoreWindow;
534
535 Aws::String m_masterUsername;
536
537 Aws::String m_dbClusterResourceId;
538
539 Aws::String m_region;
540
541 Aws::String m_licenseModel;
542
543 Aws::String m_status;
544
545 bool m_iAMDatabaseAuthenticationEnabled{false};
546
547 Aws::Utils::DateTime m_clusterCreateTime{};
548
549 bool m_storageEncrypted{false};
550
551 int m_allocatedStorage{0};
552
553 Aws::String m_engineVersion;
554
555 Aws::String m_dBClusterArn;
556
557 int m_backupRetentionPeriod{0};
558
559 Aws::String m_engineMode;
560
561 Aws::Vector<Aws::String> m_availabilityZones;
562
563 int m_port{0};
564
565 Aws::String m_kmsKeyId;
566
567 Aws::String m_storageType;
568
569 int m_iops{0};
570
571 int m_storageThroughput{0};
572
573 Aws::String m_awsBackupRecoveryPointArn;
574
575 Aws::Vector<Tag> m_tagList;
576 bool m_engineHasBeenSet = false;
577 bool m_vpcIdHasBeenSet = false;
578 bool m_dBClusterAutomatedBackupsArnHasBeenSet = false;
579 bool m_dBClusterIdentifierHasBeenSet = false;
580 bool m_restoreWindowHasBeenSet = false;
581 bool m_masterUsernameHasBeenSet = false;
582 bool m_dbClusterResourceIdHasBeenSet = false;
583 bool m_regionHasBeenSet = false;
584 bool m_licenseModelHasBeenSet = false;
585 bool m_statusHasBeenSet = false;
586 bool m_iAMDatabaseAuthenticationEnabledHasBeenSet = false;
587 bool m_clusterCreateTimeHasBeenSet = false;
588 bool m_storageEncryptedHasBeenSet = false;
589 bool m_allocatedStorageHasBeenSet = false;
590 bool m_engineVersionHasBeenSet = false;
591 bool m_dBClusterArnHasBeenSet = false;
592 bool m_backupRetentionPeriodHasBeenSet = false;
593 bool m_engineModeHasBeenSet = false;
594 bool m_availabilityZonesHasBeenSet = false;
595 bool m_portHasBeenSet = false;
596 bool m_kmsKeyIdHasBeenSet = false;
597 bool m_storageTypeHasBeenSet = false;
598 bool m_iopsHasBeenSet = false;
599 bool m_storageThroughputHasBeenSet = false;
600 bool m_awsBackupRecoveryPointArnHasBeenSet = false;
601 bool m_tagListHasBeenSet = false;
602};
603
604} // namespace Model
605} // namespace RDS
606} // namespace Aws
DBClusterAutomatedBackup & WithIops(int value)
void SetAvailabilityZones(AvailabilityZonesT &&value)
DBClusterAutomatedBackup & WithEngineVersion(EngineVersionT &&value)
AWS_RDS_API DBClusterAutomatedBackup(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_RDS_API DBClusterAutomatedBackup()=default
DBClusterAutomatedBackup & WithVpcId(VpcIdT &&value)
AWS_RDS_API DBClusterAutomatedBackup & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetDBClusterAutomatedBackupsArn(DBClusterAutomatedBackupsArnT &&value)
void SetClusterCreateTime(ClusterCreateTimeT &&value)
DBClusterAutomatedBackup & WithTagList(TagListT &&value)
void SetDbClusterResourceId(DbClusterResourceIdT &&value)
DBClusterAutomatedBackup & WithStorageEncrypted(bool value)
const Aws::String & GetDBClusterAutomatedBackupsArn() const
DBClusterAutomatedBackup & WithStorageType(StorageTypeT &&value)
DBClusterAutomatedBackup & WithStorageThroughput(int value)
DBClusterAutomatedBackup & AddAvailabilityZones(AvailabilityZonesT &&value)
void SetDBClusterIdentifier(DBClusterIdentifierT &&value)
DBClusterAutomatedBackup & WithIAMDatabaseAuthenticationEnabled(bool value)
DBClusterAutomatedBackup & WithLicenseModel(LicenseModelT &&value)
DBClusterAutomatedBackup & WithDBClusterAutomatedBackupsArn(DBClusterAutomatedBackupsArnT &&value)
DBClusterAutomatedBackup & WithAvailabilityZones(AvailabilityZonesT &&value)
DBClusterAutomatedBackup & WithDBClusterIdentifier(DBClusterIdentifierT &&value)
const Aws::Vector< Tag > & GetTagList() const
DBClusterAutomatedBackup & WithRegion(RegionT &&value)
DBClusterAutomatedBackup & WithAllocatedStorage(int value)
DBClusterAutomatedBackup & WithBackupRetentionPeriod(int value)
DBClusterAutomatedBackup & WithEngine(EngineT &&value)
DBClusterAutomatedBackup & WithPort(int value)
DBClusterAutomatedBackup & AddTagList(TagListT &&value)
const Aws::Utils::DateTime & GetClusterCreateTime() const
DBClusterAutomatedBackup & WithAwsBackupRecoveryPointArn(AwsBackupRecoveryPointArnT &&value)
DBClusterAutomatedBackup & WithClusterCreateTime(ClusterCreateTimeT &&value)
DBClusterAutomatedBackup & WithMasterUsername(MasterUsernameT &&value)
DBClusterAutomatedBackup & WithDbClusterResourceId(DbClusterResourceIdT &&value)
const Aws::Vector< Aws::String > & GetAvailabilityZones() const
void SetAwsBackupRecoveryPointArn(AwsBackupRecoveryPointArnT &&value)
DBClusterAutomatedBackup & WithEngineMode(EngineModeT &&value)
DBClusterAutomatedBackup & WithKmsKeyId(KmsKeyIdT &&value)
DBClusterAutomatedBackup & WithDBClusterArn(DBClusterArnT &&value)
DBClusterAutomatedBackup & WithStatus(StatusT &&value)
DBClusterAutomatedBackup & WithRestoreWindow(RestoreWindowT &&value)
AWS_RDS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_RDS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
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