AWS SDK for C++

AWS SDK for C++ Version 1.11.758

Loading...
Searching...
No Matches
DBClusterSnapshot.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/neptune/Neptune_EXPORTS.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace Neptune {
22namespace Model {
23
32 public:
33 AWS_NEPTUNE_API DBClusterSnapshot() = default;
34 AWS_NEPTUNE_API DBClusterSnapshot(const Aws::Utils::Xml::XmlNode& xmlNode);
35 AWS_NEPTUNE_API DBClusterSnapshot& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
36
37 AWS_NEPTUNE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
38 AWS_NEPTUNE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
39
41
45 inline const Aws::Vector<Aws::String>& GetAvailabilityZones() const { return m_availabilityZones; }
46 inline bool AvailabilityZonesHasBeenSet() const { return m_availabilityZonesHasBeenSet; }
47 template <typename AvailabilityZonesT = Aws::Vector<Aws::String>>
48 void SetAvailabilityZones(AvailabilityZonesT&& value) {
49 m_availabilityZonesHasBeenSet = true;
50 m_availabilityZones = std::forward<AvailabilityZonesT>(value);
51 }
52 template <typename AvailabilityZonesT = Aws::Vector<Aws::String>>
53 DBClusterSnapshot& WithAvailabilityZones(AvailabilityZonesT&& value) {
54 SetAvailabilityZones(std::forward<AvailabilityZonesT>(value));
55 return *this;
56 }
57 template <typename AvailabilityZonesT = Aws::String>
58 DBClusterSnapshot& AddAvailabilityZones(AvailabilityZonesT&& value) {
59 m_availabilityZonesHasBeenSet = true;
60 m_availabilityZones.emplace_back(std::forward<AvailabilityZonesT>(value));
61 return *this;
62 }
64
66
80 inline const Aws::String& GetDBClusterSnapshotIdentifier() const { return m_dBClusterSnapshotIdentifier; }
81 inline bool DBClusterSnapshotIdentifierHasBeenSet() const { return m_dBClusterSnapshotIdentifierHasBeenSet; }
82 template <typename DBClusterSnapshotIdentifierT = Aws::String>
83 void SetDBClusterSnapshotIdentifier(DBClusterSnapshotIdentifierT&& value) {
84 m_dBClusterSnapshotIdentifierHasBeenSet = true;
85 m_dBClusterSnapshotIdentifier = std::forward<DBClusterSnapshotIdentifierT>(value);
86 }
87 template <typename DBClusterSnapshotIdentifierT = Aws::String>
88 DBClusterSnapshot& WithDBClusterSnapshotIdentifier(DBClusterSnapshotIdentifierT&& value) {
89 SetDBClusterSnapshotIdentifier(std::forward<DBClusterSnapshotIdentifierT>(value));
90 return *this;
91 }
93
95
99 inline const Aws::String& GetDBClusterIdentifier() const { return m_dBClusterIdentifier; }
100 inline bool DBClusterIdentifierHasBeenSet() const { return m_dBClusterIdentifierHasBeenSet; }
101 template <typename DBClusterIdentifierT = Aws::String>
102 void SetDBClusterIdentifier(DBClusterIdentifierT&& value) {
103 m_dBClusterIdentifierHasBeenSet = true;
104 m_dBClusterIdentifier = std::forward<DBClusterIdentifierT>(value);
105 }
106 template <typename DBClusterIdentifierT = Aws::String>
107 DBClusterSnapshot& WithDBClusterIdentifier(DBClusterIdentifierT&& value) {
108 SetDBClusterIdentifier(std::forward<DBClusterIdentifierT>(value));
109 return *this;
110 }
112
114
118 inline const Aws::Utils::DateTime& GetSnapshotCreateTime() const { return m_snapshotCreateTime; }
119 inline bool SnapshotCreateTimeHasBeenSet() const { return m_snapshotCreateTimeHasBeenSet; }
120 template <typename SnapshotCreateTimeT = Aws::Utils::DateTime>
121 void SetSnapshotCreateTime(SnapshotCreateTimeT&& value) {
122 m_snapshotCreateTimeHasBeenSet = true;
123 m_snapshotCreateTime = std::forward<SnapshotCreateTimeT>(value);
124 }
125 template <typename SnapshotCreateTimeT = Aws::Utils::DateTime>
126 DBClusterSnapshot& WithSnapshotCreateTime(SnapshotCreateTimeT&& value) {
127 SetSnapshotCreateTime(std::forward<SnapshotCreateTimeT>(value));
128 return *this;
129 }
131
133
136 inline const Aws::String& GetEngine() const { return m_engine; }
137 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
138 template <typename EngineT = Aws::String>
139 void SetEngine(EngineT&& value) {
140 m_engineHasBeenSet = true;
141 m_engine = std::forward<EngineT>(value);
142 }
143 template <typename EngineT = Aws::String>
144 DBClusterSnapshot& WithEngine(EngineT&& value) {
145 SetEngine(std::forward<EngineT>(value));
146 return *this;
147 }
149
151
154 inline int GetAllocatedStorage() const { return m_allocatedStorage; }
155 inline bool AllocatedStorageHasBeenSet() const { return m_allocatedStorageHasBeenSet; }
156 inline void SetAllocatedStorage(int value) {
157 m_allocatedStorageHasBeenSet = true;
158 m_allocatedStorage = value;
159 }
161 SetAllocatedStorage(value);
162 return *this;
163 }
165
167
170 inline const Aws::String& GetStatus() const { return m_status; }
171 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
172 template <typename StatusT = Aws::String>
173 void SetStatus(StatusT&& value) {
174 m_statusHasBeenSet = true;
175 m_status = std::forward<StatusT>(value);
176 }
177 template <typename StatusT = Aws::String>
178 DBClusterSnapshot& WithStatus(StatusT&& value) {
179 SetStatus(std::forward<StatusT>(value));
180 return *this;
181 }
183
185
189 inline int GetPort() const { return m_port; }
190 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
191 inline void SetPort(int value) {
192 m_portHasBeenSet = true;
193 m_port = value;
194 }
195 inline DBClusterSnapshot& WithPort(int value) {
196 SetPort(value);
197 return *this;
198 }
200
202
205 inline const Aws::String& GetVpcId() const { return m_vpcId; }
206 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
207 template <typename VpcIdT = Aws::String>
208 void SetVpcId(VpcIdT&& value) {
209 m_vpcIdHasBeenSet = true;
210 m_vpcId = std::forward<VpcIdT>(value);
211 }
212 template <typename VpcIdT = Aws::String>
213 DBClusterSnapshot& WithVpcId(VpcIdT&& value) {
214 SetVpcId(std::forward<VpcIdT>(value));
215 return *this;
216 }
218
220
224 inline const Aws::Utils::DateTime& GetClusterCreateTime() const { return m_clusterCreateTime; }
225 inline bool ClusterCreateTimeHasBeenSet() const { return m_clusterCreateTimeHasBeenSet; }
226 template <typename ClusterCreateTimeT = Aws::Utils::DateTime>
227 void SetClusterCreateTime(ClusterCreateTimeT&& value) {
228 m_clusterCreateTimeHasBeenSet = true;
229 m_clusterCreateTime = std::forward<ClusterCreateTimeT>(value);
230 }
231 template <typename ClusterCreateTimeT = Aws::Utils::DateTime>
232 DBClusterSnapshot& WithClusterCreateTime(ClusterCreateTimeT&& value) {
233 SetClusterCreateTime(std::forward<ClusterCreateTimeT>(value));
234 return *this;
235 }
237
239
242 inline const Aws::String& GetMasterUsername() const { return m_masterUsername; }
243 inline bool MasterUsernameHasBeenSet() const { return m_masterUsernameHasBeenSet; }
244 template <typename MasterUsernameT = Aws::String>
245 void SetMasterUsername(MasterUsernameT&& value) {
246 m_masterUsernameHasBeenSet = true;
247 m_masterUsername = std::forward<MasterUsernameT>(value);
248 }
249 template <typename MasterUsernameT = Aws::String>
250 DBClusterSnapshot& WithMasterUsername(MasterUsernameT&& value) {
251 SetMasterUsername(std::forward<MasterUsernameT>(value));
252 return *this;
253 }
255
257
260 inline const Aws::String& GetEngineVersion() const { return m_engineVersion; }
261 inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; }
262 template <typename EngineVersionT = Aws::String>
263 void SetEngineVersion(EngineVersionT&& value) {
264 m_engineVersionHasBeenSet = true;
265 m_engineVersion = std::forward<EngineVersionT>(value);
266 }
267 template <typename EngineVersionT = Aws::String>
268 DBClusterSnapshot& WithEngineVersion(EngineVersionT&& value) {
269 SetEngineVersion(std::forward<EngineVersionT>(value));
270 return *this;
271 }
273
275
278 inline const Aws::String& GetLicenseModel() const { return m_licenseModel; }
279 inline bool LicenseModelHasBeenSet() const { return m_licenseModelHasBeenSet; }
280 template <typename LicenseModelT = Aws::String>
281 void SetLicenseModel(LicenseModelT&& value) {
282 m_licenseModelHasBeenSet = true;
283 m_licenseModel = std::forward<LicenseModelT>(value);
284 }
285 template <typename LicenseModelT = Aws::String>
286 DBClusterSnapshot& WithLicenseModel(LicenseModelT&& value) {
287 SetLicenseModel(std::forward<LicenseModelT>(value));
288 return *this;
289 }
291
293
296 inline const Aws::String& GetSnapshotType() const { return m_snapshotType; }
297 inline bool SnapshotTypeHasBeenSet() const { return m_snapshotTypeHasBeenSet; }
298 template <typename SnapshotTypeT = Aws::String>
299 void SetSnapshotType(SnapshotTypeT&& value) {
300 m_snapshotTypeHasBeenSet = true;
301 m_snapshotType = std::forward<SnapshotTypeT>(value);
302 }
303 template <typename SnapshotTypeT = Aws::String>
304 DBClusterSnapshot& WithSnapshotType(SnapshotTypeT&& value) {
305 SetSnapshotType(std::forward<SnapshotTypeT>(value));
306 return *this;
307 }
309
311
314 inline int GetPercentProgress() const { return m_percentProgress; }
315 inline bool PercentProgressHasBeenSet() const { return m_percentProgressHasBeenSet; }
316 inline void SetPercentProgress(int value) {
317 m_percentProgressHasBeenSet = true;
318 m_percentProgress = value;
319 }
321 SetPercentProgress(value);
322 return *this;
323 }
325
327
330 inline bool GetStorageEncrypted() const { return m_storageEncrypted; }
331 inline bool StorageEncryptedHasBeenSet() const { return m_storageEncryptedHasBeenSet; }
332 inline void SetStorageEncrypted(bool value) {
333 m_storageEncryptedHasBeenSet = true;
334 m_storageEncrypted = value;
335 }
337 SetStorageEncrypted(value);
338 return *this;
339 }
341
343
347 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
348 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
349 template <typename KmsKeyIdT = Aws::String>
350 void SetKmsKeyId(KmsKeyIdT&& value) {
351 m_kmsKeyIdHasBeenSet = true;
352 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
353 }
354 template <typename KmsKeyIdT = Aws::String>
355 DBClusterSnapshot& WithKmsKeyId(KmsKeyIdT&& value) {
356 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
357 return *this;
358 }
360
362
365 inline const Aws::String& GetDBClusterSnapshotArn() const { return m_dBClusterSnapshotArn; }
366 inline bool DBClusterSnapshotArnHasBeenSet() const { return m_dBClusterSnapshotArnHasBeenSet; }
367 template <typename DBClusterSnapshotArnT = Aws::String>
368 void SetDBClusterSnapshotArn(DBClusterSnapshotArnT&& value) {
369 m_dBClusterSnapshotArnHasBeenSet = true;
370 m_dBClusterSnapshotArn = std::forward<DBClusterSnapshotArnT>(value);
371 }
372 template <typename DBClusterSnapshotArnT = Aws::String>
373 DBClusterSnapshot& WithDBClusterSnapshotArn(DBClusterSnapshotArnT&& value) {
374 SetDBClusterSnapshotArn(std::forward<DBClusterSnapshotArnT>(value));
375 return *this;
376 }
378
380
385 inline const Aws::String& GetSourceDBClusterSnapshotArn() const { return m_sourceDBClusterSnapshotArn; }
386 inline bool SourceDBClusterSnapshotArnHasBeenSet() const { return m_sourceDBClusterSnapshotArnHasBeenSet; }
387 template <typename SourceDBClusterSnapshotArnT = Aws::String>
388 void SetSourceDBClusterSnapshotArn(SourceDBClusterSnapshotArnT&& value) {
389 m_sourceDBClusterSnapshotArnHasBeenSet = true;
390 m_sourceDBClusterSnapshotArn = std::forward<SourceDBClusterSnapshotArnT>(value);
391 }
392 template <typename SourceDBClusterSnapshotArnT = Aws::String>
393 DBClusterSnapshot& WithSourceDBClusterSnapshotArn(SourceDBClusterSnapshotArnT&& value) {
394 SetSourceDBClusterSnapshotArn(std::forward<SourceDBClusterSnapshotArnT>(value));
395 return *this;
396 }
398
400
404 inline bool GetIAMDatabaseAuthenticationEnabled() const { return m_iAMDatabaseAuthenticationEnabled; }
405 inline bool IAMDatabaseAuthenticationEnabledHasBeenSet() const { return m_iAMDatabaseAuthenticationEnabledHasBeenSet; }
406 inline void SetIAMDatabaseAuthenticationEnabled(bool value) {
407 m_iAMDatabaseAuthenticationEnabledHasBeenSet = true;
408 m_iAMDatabaseAuthenticationEnabled = value;
409 }
412 return *this;
413 }
415
417
420 inline const Aws::String& GetStorageType() const { return m_storageType; }
421 inline bool StorageTypeHasBeenSet() const { return m_storageTypeHasBeenSet; }
422 template <typename StorageTypeT = Aws::String>
423 void SetStorageType(StorageTypeT&& value) {
424 m_storageTypeHasBeenSet = true;
425 m_storageType = std::forward<StorageTypeT>(value);
426 }
427 template <typename StorageTypeT = Aws::String>
428 DBClusterSnapshot& WithStorageType(StorageTypeT&& value) {
429 SetStorageType(std::forward<StorageTypeT>(value));
430 return *this;
431 }
433 private:
434 Aws::Vector<Aws::String> m_availabilityZones;
435
436 Aws::String m_dBClusterSnapshotIdentifier;
437
438 Aws::String m_dBClusterIdentifier;
439
440 Aws::Utils::DateTime m_snapshotCreateTime{};
441
442 Aws::String m_engine;
443
444 int m_allocatedStorage{0};
445
446 Aws::String m_status;
447
448 int m_port{0};
449
450 Aws::String m_vpcId;
451
452 Aws::Utils::DateTime m_clusterCreateTime{};
453
454 Aws::String m_masterUsername;
455
456 Aws::String m_engineVersion;
457
458 Aws::String m_licenseModel;
459
460 Aws::String m_snapshotType;
461
462 int m_percentProgress{0};
463
464 bool m_storageEncrypted{false};
465
466 Aws::String m_kmsKeyId;
467
468 Aws::String m_dBClusterSnapshotArn;
469
470 Aws::String m_sourceDBClusterSnapshotArn;
471
472 bool m_iAMDatabaseAuthenticationEnabled{false};
473
474 Aws::String m_storageType;
475 bool m_availabilityZonesHasBeenSet = false;
476 bool m_dBClusterSnapshotIdentifierHasBeenSet = false;
477 bool m_dBClusterIdentifierHasBeenSet = false;
478 bool m_snapshotCreateTimeHasBeenSet = false;
479 bool m_engineHasBeenSet = false;
480 bool m_allocatedStorageHasBeenSet = false;
481 bool m_statusHasBeenSet = false;
482 bool m_portHasBeenSet = false;
483 bool m_vpcIdHasBeenSet = false;
484 bool m_clusterCreateTimeHasBeenSet = false;
485 bool m_masterUsernameHasBeenSet = false;
486 bool m_engineVersionHasBeenSet = false;
487 bool m_licenseModelHasBeenSet = false;
488 bool m_snapshotTypeHasBeenSet = false;
489 bool m_percentProgressHasBeenSet = false;
490 bool m_storageEncryptedHasBeenSet = false;
491 bool m_kmsKeyIdHasBeenSet = false;
492 bool m_dBClusterSnapshotArnHasBeenSet = false;
493 bool m_sourceDBClusterSnapshotArnHasBeenSet = false;
494 bool m_iAMDatabaseAuthenticationEnabledHasBeenSet = false;
495 bool m_storageTypeHasBeenSet = false;
496};
497
498} // namespace Model
499} // namespace Neptune
500} // namespace Aws
DBClusterSnapshot & WithStatus(StatusT &&value)
void SetSnapshotCreateTime(SnapshotCreateTimeT &&value)
DBClusterSnapshot & WithSnapshotType(SnapshotTypeT &&value)
AWS_NEPTUNE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetEngineVersion(EngineVersionT &&value)
const Aws::String & GetStorageType() const
void SetClusterCreateTime(ClusterCreateTimeT &&value)
const Aws::Utils::DateTime & GetSnapshotCreateTime() const
const Aws::String & GetEngine() const
void SetDBClusterIdentifier(DBClusterIdentifierT &&value)
void SetLicenseModel(LicenseModelT &&value)
const Aws::String & GetMasterUsername() const
DBClusterSnapshot & WithAvailabilityZones(AvailabilityZonesT &&value)
DBClusterSnapshot & WithStorageEncrypted(bool value)
DBClusterSnapshot & WithPercentProgress(int value)
AWS_NEPTUNE_API DBClusterSnapshot()=default
DBClusterSnapshot & WithLicenseModel(LicenseModelT &&value)
DBClusterSnapshot & AddAvailabilityZones(AvailabilityZonesT &&value)
const Aws::String & GetSnapshotType() const
void SetSourceDBClusterSnapshotArn(SourceDBClusterSnapshotArnT &&value)
DBClusterSnapshot & WithAllocatedStorage(int value)
DBClusterSnapshot & WithIAMDatabaseAuthenticationEnabled(bool value)
void SetStorageType(StorageTypeT &&value)
DBClusterSnapshot & WithMasterUsername(MasterUsernameT &&value)
DBClusterSnapshot & WithStorageType(StorageTypeT &&value)
const Aws::String & GetKmsKeyId() const
AWS_NEPTUNE_API DBClusterSnapshot & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetSnapshotType(SnapshotTypeT &&value)
const Aws::String & GetLicenseModel() const
DBClusterSnapshot & WithSnapshotCreateTime(SnapshotCreateTimeT &&value)
void SetDBClusterSnapshotIdentifier(DBClusterSnapshotIdentifierT &&value)
AWS_NEPTUNE_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetDBClusterSnapshotArn() const
AWS_NEPTUNE_API DBClusterSnapshot(const Aws::Utils::Xml::XmlNode &xmlNode)
DBClusterSnapshot & WithKmsKeyId(KmsKeyIdT &&value)
const Aws::String & GetSourceDBClusterSnapshotArn() const
const Aws::Utils::DateTime & GetClusterCreateTime() const
DBClusterSnapshot & WithDBClusterSnapshotArn(DBClusterSnapshotArnT &&value)
DBClusterSnapshot & WithClusterCreateTime(ClusterCreateTimeT &&value)
DBClusterSnapshot & WithVpcId(VpcIdT &&value)
void SetDBClusterSnapshotArn(DBClusterSnapshotArnT &&value)
const Aws::String & GetDBClusterSnapshotIdentifier() const
const Aws::String & GetDBClusterIdentifier() const
const Aws::Vector< Aws::String > & GetAvailabilityZones() const
DBClusterSnapshot & WithSourceDBClusterSnapshotArn(SourceDBClusterSnapshotArnT &&value)
const Aws::String & GetStatus() const
DBClusterSnapshot & WithEngineVersion(EngineVersionT &&value)
void SetAvailabilityZones(AvailabilityZonesT &&value)
DBClusterSnapshot & WithEngine(EngineT &&value)
DBClusterSnapshot & WithDBClusterSnapshotIdentifier(DBClusterSnapshotIdentifierT &&value)
void SetMasterUsername(MasterUsernameT &&value)
DBClusterSnapshot & WithPort(int value)
const Aws::String & GetEngineVersion() const
DBClusterSnapshot & WithDBClusterIdentifier(DBClusterIdentifierT &&value)
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