AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DBClusterAutomatedBackup.h
1
6#pragma once
7#include <aws/rds/RDS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/rds/model/RestoreWindow.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace RDS
25{
26namespace Model
27{
28
37 {
38 public:
39 AWS_RDS_API DBClusterAutomatedBackup() = default;
42
43 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
44 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
45
46
48
51 inline const Aws::String& GetEngine() const { return m_engine; }
52 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
53 template<typename EngineT = Aws::String>
54 void SetEngine(EngineT&& value) { m_engineHasBeenSet = true; m_engine = std::forward<EngineT>(value); }
55 template<typename EngineT = Aws::String>
56 DBClusterAutomatedBackup& WithEngine(EngineT&& value) { SetEngine(std::forward<EngineT>(value)); return *this;}
58
60
63 inline const Aws::String& GetVpcId() const { return m_vpcId; }
64 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
65 template<typename VpcIdT = Aws::String>
66 void SetVpcId(VpcIdT&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::forward<VpcIdT>(value); }
67 template<typename VpcIdT = Aws::String>
68 DBClusterAutomatedBackup& WithVpcId(VpcIdT&& value) { SetVpcId(std::forward<VpcIdT>(value)); return *this;}
70
72
75 inline const Aws::String& GetDBClusterAutomatedBackupsArn() const { return m_dBClusterAutomatedBackupsArn; }
76 inline bool DBClusterAutomatedBackupsArnHasBeenSet() const { return m_dBClusterAutomatedBackupsArnHasBeenSet; }
77 template<typename DBClusterAutomatedBackupsArnT = Aws::String>
78 void SetDBClusterAutomatedBackupsArn(DBClusterAutomatedBackupsArnT&& value) { m_dBClusterAutomatedBackupsArnHasBeenSet = true; m_dBClusterAutomatedBackupsArn = std::forward<DBClusterAutomatedBackupsArnT>(value); }
79 template<typename DBClusterAutomatedBackupsArnT = Aws::String>
80 DBClusterAutomatedBackup& WithDBClusterAutomatedBackupsArn(DBClusterAutomatedBackupsArnT&& value) { SetDBClusterAutomatedBackupsArn(std::forward<DBClusterAutomatedBackupsArnT>(value)); return *this;}
82
84
88 inline const Aws::String& GetDBClusterIdentifier() const { return m_dBClusterIdentifier; }
89 inline bool DBClusterIdentifierHasBeenSet() const { return m_dBClusterIdentifierHasBeenSet; }
90 template<typename DBClusterIdentifierT = Aws::String>
91 void SetDBClusterIdentifier(DBClusterIdentifierT&& value) { m_dBClusterIdentifierHasBeenSet = true; m_dBClusterIdentifier = std::forward<DBClusterIdentifierT>(value); }
92 template<typename DBClusterIdentifierT = Aws::String>
93 DBClusterAutomatedBackup& WithDBClusterIdentifier(DBClusterIdentifierT&& value) { SetDBClusterIdentifier(std::forward<DBClusterIdentifierT>(value)); return *this;}
95
97
98 inline const RestoreWindow& GetRestoreWindow() const { return m_restoreWindow; }
99 inline bool RestoreWindowHasBeenSet() const { return m_restoreWindowHasBeenSet; }
100 template<typename RestoreWindowT = RestoreWindow>
101 void SetRestoreWindow(RestoreWindowT&& value) { m_restoreWindowHasBeenSet = true; m_restoreWindow = std::forward<RestoreWindowT>(value); }
102 template<typename RestoreWindowT = RestoreWindow>
103 DBClusterAutomatedBackup& WithRestoreWindow(RestoreWindowT&& value) { SetRestoreWindow(std::forward<RestoreWindowT>(value)); return *this;}
105
107
110 inline const Aws::String& GetMasterUsername() const { return m_masterUsername; }
111 inline bool MasterUsernameHasBeenSet() const { return m_masterUsernameHasBeenSet; }
112 template<typename MasterUsernameT = Aws::String>
113 void SetMasterUsername(MasterUsernameT&& value) { m_masterUsernameHasBeenSet = true; m_masterUsername = std::forward<MasterUsernameT>(value); }
114 template<typename MasterUsernameT = Aws::String>
115 DBClusterAutomatedBackup& WithMasterUsername(MasterUsernameT&& value) { SetMasterUsername(std::forward<MasterUsernameT>(value)); return *this;}
117
119
123 inline const Aws::String& GetDbClusterResourceId() const { return m_dbClusterResourceId; }
124 inline bool DbClusterResourceIdHasBeenSet() const { return m_dbClusterResourceIdHasBeenSet; }
125 template<typename DbClusterResourceIdT = Aws::String>
126 void SetDbClusterResourceId(DbClusterResourceIdT&& value) { m_dbClusterResourceIdHasBeenSet = true; m_dbClusterResourceId = std::forward<DbClusterResourceIdT>(value); }
127 template<typename DbClusterResourceIdT = Aws::String>
128 DBClusterAutomatedBackup& WithDbClusterResourceId(DbClusterResourceIdT&& value) { SetDbClusterResourceId(std::forward<DbClusterResourceIdT>(value)); return *this;}
130
132
135 inline const Aws::String& GetRegion() const { return m_region; }
136 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
137 template<typename RegionT = Aws::String>
138 void SetRegion(RegionT&& value) { m_regionHasBeenSet = true; m_region = std::forward<RegionT>(value); }
139 template<typename RegionT = Aws::String>
140 DBClusterAutomatedBackup& WithRegion(RegionT&& value) { SetRegion(std::forward<RegionT>(value)); return *this;}
142
144
147 inline const Aws::String& GetLicenseModel() const { return m_licenseModel; }
148 inline bool LicenseModelHasBeenSet() const { return m_licenseModelHasBeenSet; }
149 template<typename LicenseModelT = Aws::String>
150 void SetLicenseModel(LicenseModelT&& value) { m_licenseModelHasBeenSet = true; m_licenseModel = std::forward<LicenseModelT>(value); }
151 template<typename LicenseModelT = Aws::String>
152 DBClusterAutomatedBackup& WithLicenseModel(LicenseModelT&& value) { SetLicenseModel(std::forward<LicenseModelT>(value)); return *this;}
154
156
160 inline const Aws::String& GetStatus() const { return m_status; }
161 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
162 template<typename StatusT = Aws::String>
163 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
164 template<typename StatusT = Aws::String>
165 DBClusterAutomatedBackup& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
167
169
173 inline bool GetIAMDatabaseAuthenticationEnabled() const { return m_iAMDatabaseAuthenticationEnabled; }
174 inline bool IAMDatabaseAuthenticationEnabledHasBeenSet() const { return m_iAMDatabaseAuthenticationEnabledHasBeenSet; }
175 inline void SetIAMDatabaseAuthenticationEnabled(bool value) { m_iAMDatabaseAuthenticationEnabledHasBeenSet = true; m_iAMDatabaseAuthenticationEnabled = value; }
178
180
184 inline const Aws::Utils::DateTime& GetClusterCreateTime() const { return m_clusterCreateTime; }
185 inline bool ClusterCreateTimeHasBeenSet() const { return m_clusterCreateTimeHasBeenSet; }
186 template<typename ClusterCreateTimeT = Aws::Utils::DateTime>
187 void SetClusterCreateTime(ClusterCreateTimeT&& value) { m_clusterCreateTimeHasBeenSet = true; m_clusterCreateTime = std::forward<ClusterCreateTimeT>(value); }
188 template<typename ClusterCreateTimeT = Aws::Utils::DateTime>
189 DBClusterAutomatedBackup& WithClusterCreateTime(ClusterCreateTimeT&& value) { SetClusterCreateTime(std::forward<ClusterCreateTimeT>(value)); return *this;}
191
193
196 inline bool GetStorageEncrypted() const { return m_storageEncrypted; }
197 inline bool StorageEncryptedHasBeenSet() const { return m_storageEncryptedHasBeenSet; }
198 inline void SetStorageEncrypted(bool value) { m_storageEncryptedHasBeenSet = true; m_storageEncrypted = value; }
199 inline DBClusterAutomatedBackup& WithStorageEncrypted(bool value) { SetStorageEncrypted(value); return *this;}
201
203
209 inline int GetAllocatedStorage() const { return m_allocatedStorage; }
210 inline bool AllocatedStorageHasBeenSet() const { return m_allocatedStorageHasBeenSet; }
211 inline void SetAllocatedStorage(int value) { m_allocatedStorageHasBeenSet = true; m_allocatedStorage = value; }
212 inline DBClusterAutomatedBackup& WithAllocatedStorage(int value) { SetAllocatedStorage(value); return *this;}
214
216
219 inline const Aws::String& GetEngineVersion() const { return m_engineVersion; }
220 inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; }
221 template<typename EngineVersionT = Aws::String>
222 void SetEngineVersion(EngineVersionT&& value) { m_engineVersionHasBeenSet = true; m_engineVersion = std::forward<EngineVersionT>(value); }
223 template<typename EngineVersionT = Aws::String>
224 DBClusterAutomatedBackup& WithEngineVersion(EngineVersionT&& value) { SetEngineVersion(std::forward<EngineVersionT>(value)); return *this;}
226
228
231 inline const Aws::String& GetDBClusterArn() const { return m_dBClusterArn; }
232 inline bool DBClusterArnHasBeenSet() const { return m_dBClusterArnHasBeenSet; }
233 template<typename DBClusterArnT = Aws::String>
234 void SetDBClusterArn(DBClusterArnT&& value) { m_dBClusterArnHasBeenSet = true; m_dBClusterArn = std::forward<DBClusterArnT>(value); }
235 template<typename DBClusterArnT = Aws::String>
236 DBClusterAutomatedBackup& WithDBClusterArn(DBClusterArnT&& value) { SetDBClusterArn(std::forward<DBClusterArnT>(value)); return *this;}
238
240
243 inline int GetBackupRetentionPeriod() const { return m_backupRetentionPeriod; }
244 inline bool BackupRetentionPeriodHasBeenSet() const { return m_backupRetentionPeriodHasBeenSet; }
245 inline void SetBackupRetentionPeriod(int value) { m_backupRetentionPeriodHasBeenSet = true; m_backupRetentionPeriod = value; }
248
250
253 inline const Aws::String& GetEngineMode() const { return m_engineMode; }
254 inline bool EngineModeHasBeenSet() const { return m_engineModeHasBeenSet; }
255 template<typename EngineModeT = Aws::String>
256 void SetEngineMode(EngineModeT&& value) { m_engineModeHasBeenSet = true; m_engineMode = std::forward<EngineModeT>(value); }
257 template<typename EngineModeT = Aws::String>
258 DBClusterAutomatedBackup& WithEngineMode(EngineModeT&& value) { SetEngineMode(std::forward<EngineModeT>(value)); return *this;}
260
262
268 inline const Aws::Vector<Aws::String>& GetAvailabilityZones() const { return m_availabilityZones; }
269 inline bool AvailabilityZonesHasBeenSet() const { return m_availabilityZonesHasBeenSet; }
270 template<typename AvailabilityZonesT = Aws::Vector<Aws::String>>
271 void SetAvailabilityZones(AvailabilityZonesT&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = std::forward<AvailabilityZonesT>(value); }
272 template<typename AvailabilityZonesT = Aws::Vector<Aws::String>>
273 DBClusterAutomatedBackup& WithAvailabilityZones(AvailabilityZonesT&& value) { SetAvailabilityZones(std::forward<AvailabilityZonesT>(value)); return *this;}
274 template<typename AvailabilityZonesT = Aws::String>
275 DBClusterAutomatedBackup& AddAvailabilityZones(AvailabilityZonesT&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.emplace_back(std::forward<AvailabilityZonesT>(value)); return *this; }
277
279
284 inline int GetPort() const { return m_port; }
285 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
286 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
287 inline DBClusterAutomatedBackup& WithPort(int value) { SetPort(value); return *this;}
289
291
296 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
297 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
298 template<typename KmsKeyIdT = Aws::String>
299 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
300 template<typename KmsKeyIdT = Aws::String>
301 DBClusterAutomatedBackup& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
303
305
309 inline const Aws::String& GetStorageType() const { return m_storageType; }
310 inline bool StorageTypeHasBeenSet() const { return m_storageTypeHasBeenSet; }
311 template<typename StorageTypeT = Aws::String>
312 void SetStorageType(StorageTypeT&& value) { m_storageTypeHasBeenSet = true; m_storageType = std::forward<StorageTypeT>(value); }
313 template<typename StorageTypeT = Aws::String>
314 DBClusterAutomatedBackup& WithStorageType(StorageTypeT&& value) { SetStorageType(std::forward<StorageTypeT>(value)); return *this;}
316
318
322 inline int GetIops() const { return m_iops; }
323 inline bool IopsHasBeenSet() const { return m_iopsHasBeenSet; }
324 inline void SetIops(int value) { m_iopsHasBeenSet = true; m_iops = value; }
325 inline DBClusterAutomatedBackup& WithIops(int value) { SetIops(value); return *this;}
327
329
333 inline const Aws::String& GetAwsBackupRecoveryPointArn() const { return m_awsBackupRecoveryPointArn; }
334 inline bool AwsBackupRecoveryPointArnHasBeenSet() const { return m_awsBackupRecoveryPointArnHasBeenSet; }
335 template<typename AwsBackupRecoveryPointArnT = Aws::String>
336 void SetAwsBackupRecoveryPointArn(AwsBackupRecoveryPointArnT&& value) { m_awsBackupRecoveryPointArnHasBeenSet = true; m_awsBackupRecoveryPointArn = std::forward<AwsBackupRecoveryPointArnT>(value); }
337 template<typename AwsBackupRecoveryPointArnT = Aws::String>
338 DBClusterAutomatedBackup& WithAwsBackupRecoveryPointArn(AwsBackupRecoveryPointArnT&& value) { SetAwsBackupRecoveryPointArn(std::forward<AwsBackupRecoveryPointArnT>(value)); return *this;}
340
342
348 inline int GetStorageThroughput() const { return m_storageThroughput; }
349 inline bool StorageThroughputHasBeenSet() const { return m_storageThroughputHasBeenSet; }
350 inline void SetStorageThroughput(int value) { m_storageThroughputHasBeenSet = true; m_storageThroughput = value; }
351 inline DBClusterAutomatedBackup& WithStorageThroughput(int value) { SetStorageThroughput(value); return *this;}
353 private:
354
355 Aws::String m_engine;
356 bool m_engineHasBeenSet = false;
357
358 Aws::String m_vpcId;
359 bool m_vpcIdHasBeenSet = false;
360
361 Aws::String m_dBClusterAutomatedBackupsArn;
362 bool m_dBClusterAutomatedBackupsArnHasBeenSet = false;
363
364 Aws::String m_dBClusterIdentifier;
365 bool m_dBClusterIdentifierHasBeenSet = false;
366
367 RestoreWindow m_restoreWindow;
368 bool m_restoreWindowHasBeenSet = false;
369
370 Aws::String m_masterUsername;
371 bool m_masterUsernameHasBeenSet = false;
372
373 Aws::String m_dbClusterResourceId;
374 bool m_dbClusterResourceIdHasBeenSet = false;
375
376 Aws::String m_region;
377 bool m_regionHasBeenSet = false;
378
379 Aws::String m_licenseModel;
380 bool m_licenseModelHasBeenSet = false;
381
382 Aws::String m_status;
383 bool m_statusHasBeenSet = false;
384
385 bool m_iAMDatabaseAuthenticationEnabled{false};
386 bool m_iAMDatabaseAuthenticationEnabledHasBeenSet = false;
387
388 Aws::Utils::DateTime m_clusterCreateTime{};
389 bool m_clusterCreateTimeHasBeenSet = false;
390
391 bool m_storageEncrypted{false};
392 bool m_storageEncryptedHasBeenSet = false;
393
394 int m_allocatedStorage{0};
395 bool m_allocatedStorageHasBeenSet = false;
396
397 Aws::String m_engineVersion;
398 bool m_engineVersionHasBeenSet = false;
399
400 Aws::String m_dBClusterArn;
401 bool m_dBClusterArnHasBeenSet = false;
402
403 int m_backupRetentionPeriod{0};
404 bool m_backupRetentionPeriodHasBeenSet = false;
405
406 Aws::String m_engineMode;
407 bool m_engineModeHasBeenSet = false;
408
409 Aws::Vector<Aws::String> m_availabilityZones;
410 bool m_availabilityZonesHasBeenSet = false;
411
412 int m_port{0};
413 bool m_portHasBeenSet = false;
414
415 Aws::String m_kmsKeyId;
416 bool m_kmsKeyIdHasBeenSet = false;
417
418 Aws::String m_storageType;
419 bool m_storageTypeHasBeenSet = false;
420
421 int m_iops{0};
422 bool m_iopsHasBeenSet = false;
423
424 Aws::String m_awsBackupRecoveryPointArn;
425 bool m_awsBackupRecoveryPointArnHasBeenSet = false;
426
427 int m_storageThroughput{0};
428 bool m_storageThroughputHasBeenSet = false;
429 };
430
431} // namespace Model
432} // namespace RDS
433} // 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)
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)
DBClusterAutomatedBackup & WithRegion(RegionT &&value)
DBClusterAutomatedBackup & WithAllocatedStorage(int value)
DBClusterAutomatedBackup & WithBackupRetentionPeriod(int value)
DBClusterAutomatedBackup & WithEngine(EngineT &&value)
DBClusterAutomatedBackup & WithPort(int 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