AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DBClusterSnapshot.h
1
6#pragma once
7#include <aws/neptune/Neptune_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace Neptune
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_NEPTUNE_API DBClusterSnapshot() = default;
39 AWS_NEPTUNE_API DBClusterSnapshot(const Aws::Utils::Xml::XmlNode& xmlNode);
40 AWS_NEPTUNE_API DBClusterSnapshot& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
41
42 AWS_NEPTUNE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_NEPTUNE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
51 inline const Aws::Vector<Aws::String>& GetAvailabilityZones() const { return m_availabilityZones; }
52 inline bool AvailabilityZonesHasBeenSet() const { return m_availabilityZonesHasBeenSet; }
53 template<typename AvailabilityZonesT = Aws::Vector<Aws::String>>
54 void SetAvailabilityZones(AvailabilityZonesT&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = std::forward<AvailabilityZonesT>(value); }
55 template<typename AvailabilityZonesT = Aws::Vector<Aws::String>>
56 DBClusterSnapshot& WithAvailabilityZones(AvailabilityZonesT&& value) { SetAvailabilityZones(std::forward<AvailabilityZonesT>(value)); return *this;}
57 template<typename AvailabilityZonesT = Aws::String>
58 DBClusterSnapshot& AddAvailabilityZones(AvailabilityZonesT&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.emplace_back(std::forward<AvailabilityZonesT>(value)); return *this; }
60
62
76 inline const Aws::String& GetDBClusterSnapshotIdentifier() const { return m_dBClusterSnapshotIdentifier; }
77 inline bool DBClusterSnapshotIdentifierHasBeenSet() const { return m_dBClusterSnapshotIdentifierHasBeenSet; }
78 template<typename DBClusterSnapshotIdentifierT = Aws::String>
79 void SetDBClusterSnapshotIdentifier(DBClusterSnapshotIdentifierT&& value) { m_dBClusterSnapshotIdentifierHasBeenSet = true; m_dBClusterSnapshotIdentifier = std::forward<DBClusterSnapshotIdentifierT>(value); }
80 template<typename DBClusterSnapshotIdentifierT = Aws::String>
81 DBClusterSnapshot& WithDBClusterSnapshotIdentifier(DBClusterSnapshotIdentifierT&& value) { SetDBClusterSnapshotIdentifier(std::forward<DBClusterSnapshotIdentifierT>(value)); return *this;}
83
85
89 inline const Aws::String& GetDBClusterIdentifier() const { return m_dBClusterIdentifier; }
90 inline bool DBClusterIdentifierHasBeenSet() const { return m_dBClusterIdentifierHasBeenSet; }
91 template<typename DBClusterIdentifierT = Aws::String>
92 void SetDBClusterIdentifier(DBClusterIdentifierT&& value) { m_dBClusterIdentifierHasBeenSet = true; m_dBClusterIdentifier = std::forward<DBClusterIdentifierT>(value); }
93 template<typename DBClusterIdentifierT = Aws::String>
94 DBClusterSnapshot& WithDBClusterIdentifier(DBClusterIdentifierT&& value) { SetDBClusterIdentifier(std::forward<DBClusterIdentifierT>(value)); return *this;}
96
98
102 inline const Aws::Utils::DateTime& GetSnapshotCreateTime() const { return m_snapshotCreateTime; }
103 inline bool SnapshotCreateTimeHasBeenSet() const { return m_snapshotCreateTimeHasBeenSet; }
104 template<typename SnapshotCreateTimeT = Aws::Utils::DateTime>
105 void SetSnapshotCreateTime(SnapshotCreateTimeT&& value) { m_snapshotCreateTimeHasBeenSet = true; m_snapshotCreateTime = std::forward<SnapshotCreateTimeT>(value); }
106 template<typename SnapshotCreateTimeT = Aws::Utils::DateTime>
107 DBClusterSnapshot& WithSnapshotCreateTime(SnapshotCreateTimeT&& value) { SetSnapshotCreateTime(std::forward<SnapshotCreateTimeT>(value)); return *this;}
109
111
114 inline const Aws::String& GetEngine() const { return m_engine; }
115 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
116 template<typename EngineT = Aws::String>
117 void SetEngine(EngineT&& value) { m_engineHasBeenSet = true; m_engine = std::forward<EngineT>(value); }
118 template<typename EngineT = Aws::String>
119 DBClusterSnapshot& WithEngine(EngineT&& value) { SetEngine(std::forward<EngineT>(value)); return *this;}
121
123
126 inline int GetAllocatedStorage() const { return m_allocatedStorage; }
127 inline bool AllocatedStorageHasBeenSet() const { return m_allocatedStorageHasBeenSet; }
128 inline void SetAllocatedStorage(int value) { m_allocatedStorageHasBeenSet = true; m_allocatedStorage = value; }
129 inline DBClusterSnapshot& WithAllocatedStorage(int value) { SetAllocatedStorage(value); return *this;}
131
133
136 inline const Aws::String& GetStatus() const { return m_status; }
137 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
138 template<typename StatusT = Aws::String>
139 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
140 template<typename StatusT = Aws::String>
141 DBClusterSnapshot& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
143
145
149 inline int GetPort() const { return m_port; }
150 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
151 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
152 inline DBClusterSnapshot& WithPort(int value) { SetPort(value); return *this;}
154
156
159 inline const Aws::String& GetVpcId() const { return m_vpcId; }
160 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
161 template<typename VpcIdT = Aws::String>
162 void SetVpcId(VpcIdT&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::forward<VpcIdT>(value); }
163 template<typename VpcIdT = Aws::String>
164 DBClusterSnapshot& WithVpcId(VpcIdT&& value) { SetVpcId(std::forward<VpcIdT>(value)); return *this;}
166
168
172 inline const Aws::Utils::DateTime& GetClusterCreateTime() const { return m_clusterCreateTime; }
173 inline bool ClusterCreateTimeHasBeenSet() const { return m_clusterCreateTimeHasBeenSet; }
174 template<typename ClusterCreateTimeT = Aws::Utils::DateTime>
175 void SetClusterCreateTime(ClusterCreateTimeT&& value) { m_clusterCreateTimeHasBeenSet = true; m_clusterCreateTime = std::forward<ClusterCreateTimeT>(value); }
176 template<typename ClusterCreateTimeT = Aws::Utils::DateTime>
177 DBClusterSnapshot& WithClusterCreateTime(ClusterCreateTimeT&& value) { SetClusterCreateTime(std::forward<ClusterCreateTimeT>(value)); return *this;}
179
181
184 inline const Aws::String& GetMasterUsername() const { return m_masterUsername; }
185 inline bool MasterUsernameHasBeenSet() const { return m_masterUsernameHasBeenSet; }
186 template<typename MasterUsernameT = Aws::String>
187 void SetMasterUsername(MasterUsernameT&& value) { m_masterUsernameHasBeenSet = true; m_masterUsername = std::forward<MasterUsernameT>(value); }
188 template<typename MasterUsernameT = Aws::String>
189 DBClusterSnapshot& WithMasterUsername(MasterUsernameT&& value) { SetMasterUsername(std::forward<MasterUsernameT>(value)); return *this;}
191
193
196 inline const Aws::String& GetEngineVersion() const { return m_engineVersion; }
197 inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; }
198 template<typename EngineVersionT = Aws::String>
199 void SetEngineVersion(EngineVersionT&& value) { m_engineVersionHasBeenSet = true; m_engineVersion = std::forward<EngineVersionT>(value); }
200 template<typename EngineVersionT = Aws::String>
201 DBClusterSnapshot& WithEngineVersion(EngineVersionT&& value) { SetEngineVersion(std::forward<EngineVersionT>(value)); return *this;}
203
205
208 inline const Aws::String& GetLicenseModel() const { return m_licenseModel; }
209 inline bool LicenseModelHasBeenSet() const { return m_licenseModelHasBeenSet; }
210 template<typename LicenseModelT = Aws::String>
211 void SetLicenseModel(LicenseModelT&& value) { m_licenseModelHasBeenSet = true; m_licenseModel = std::forward<LicenseModelT>(value); }
212 template<typename LicenseModelT = Aws::String>
213 DBClusterSnapshot& WithLicenseModel(LicenseModelT&& value) { SetLicenseModel(std::forward<LicenseModelT>(value)); return *this;}
215
217
220 inline const Aws::String& GetSnapshotType() const { return m_snapshotType; }
221 inline bool SnapshotTypeHasBeenSet() const { return m_snapshotTypeHasBeenSet; }
222 template<typename SnapshotTypeT = Aws::String>
223 void SetSnapshotType(SnapshotTypeT&& value) { m_snapshotTypeHasBeenSet = true; m_snapshotType = std::forward<SnapshotTypeT>(value); }
224 template<typename SnapshotTypeT = Aws::String>
225 DBClusterSnapshot& WithSnapshotType(SnapshotTypeT&& value) { SetSnapshotType(std::forward<SnapshotTypeT>(value)); return *this;}
227
229
232 inline int GetPercentProgress() const { return m_percentProgress; }
233 inline bool PercentProgressHasBeenSet() const { return m_percentProgressHasBeenSet; }
234 inline void SetPercentProgress(int value) { m_percentProgressHasBeenSet = true; m_percentProgress = value; }
235 inline DBClusterSnapshot& WithPercentProgress(int value) { SetPercentProgress(value); return *this;}
237
239
242 inline bool GetStorageEncrypted() const { return m_storageEncrypted; }
243 inline bool StorageEncryptedHasBeenSet() const { return m_storageEncryptedHasBeenSet; }
244 inline void SetStorageEncrypted(bool value) { m_storageEncryptedHasBeenSet = true; m_storageEncrypted = value; }
245 inline DBClusterSnapshot& WithStorageEncrypted(bool value) { SetStorageEncrypted(value); return *this;}
247
249
253 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
254 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
255 template<typename KmsKeyIdT = Aws::String>
256 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
257 template<typename KmsKeyIdT = Aws::String>
258 DBClusterSnapshot& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
260
262
265 inline const Aws::String& GetDBClusterSnapshotArn() const { return m_dBClusterSnapshotArn; }
266 inline bool DBClusterSnapshotArnHasBeenSet() const { return m_dBClusterSnapshotArnHasBeenSet; }
267 template<typename DBClusterSnapshotArnT = Aws::String>
268 void SetDBClusterSnapshotArn(DBClusterSnapshotArnT&& value) { m_dBClusterSnapshotArnHasBeenSet = true; m_dBClusterSnapshotArn = std::forward<DBClusterSnapshotArnT>(value); }
269 template<typename DBClusterSnapshotArnT = Aws::String>
270 DBClusterSnapshot& WithDBClusterSnapshotArn(DBClusterSnapshotArnT&& value) { SetDBClusterSnapshotArn(std::forward<DBClusterSnapshotArnT>(value)); return *this;}
272
274
279 inline const Aws::String& GetSourceDBClusterSnapshotArn() const { return m_sourceDBClusterSnapshotArn; }
280 inline bool SourceDBClusterSnapshotArnHasBeenSet() const { return m_sourceDBClusterSnapshotArnHasBeenSet; }
281 template<typename SourceDBClusterSnapshotArnT = Aws::String>
282 void SetSourceDBClusterSnapshotArn(SourceDBClusterSnapshotArnT&& value) { m_sourceDBClusterSnapshotArnHasBeenSet = true; m_sourceDBClusterSnapshotArn = std::forward<SourceDBClusterSnapshotArnT>(value); }
283 template<typename SourceDBClusterSnapshotArnT = Aws::String>
284 DBClusterSnapshot& WithSourceDBClusterSnapshotArn(SourceDBClusterSnapshotArnT&& value) { SetSourceDBClusterSnapshotArn(std::forward<SourceDBClusterSnapshotArnT>(value)); return *this;}
286
288
292 inline bool GetIAMDatabaseAuthenticationEnabled() const { return m_iAMDatabaseAuthenticationEnabled; }
293 inline bool IAMDatabaseAuthenticationEnabledHasBeenSet() const { return m_iAMDatabaseAuthenticationEnabledHasBeenSet; }
294 inline void SetIAMDatabaseAuthenticationEnabled(bool value) { m_iAMDatabaseAuthenticationEnabledHasBeenSet = true; m_iAMDatabaseAuthenticationEnabled = value; }
297
299
302 inline const Aws::String& GetStorageType() const { return m_storageType; }
303 inline bool StorageTypeHasBeenSet() const { return m_storageTypeHasBeenSet; }
304 template<typename StorageTypeT = Aws::String>
305 void SetStorageType(StorageTypeT&& value) { m_storageTypeHasBeenSet = true; m_storageType = std::forward<StorageTypeT>(value); }
306 template<typename StorageTypeT = Aws::String>
307 DBClusterSnapshot& WithStorageType(StorageTypeT&& value) { SetStorageType(std::forward<StorageTypeT>(value)); return *this;}
309 private:
310
311 Aws::Vector<Aws::String> m_availabilityZones;
312 bool m_availabilityZonesHasBeenSet = false;
313
314 Aws::String m_dBClusterSnapshotIdentifier;
315 bool m_dBClusterSnapshotIdentifierHasBeenSet = false;
316
317 Aws::String m_dBClusterIdentifier;
318 bool m_dBClusterIdentifierHasBeenSet = false;
319
320 Aws::Utils::DateTime m_snapshotCreateTime{};
321 bool m_snapshotCreateTimeHasBeenSet = false;
322
323 Aws::String m_engine;
324 bool m_engineHasBeenSet = false;
325
326 int m_allocatedStorage{0};
327 bool m_allocatedStorageHasBeenSet = false;
328
329 Aws::String m_status;
330 bool m_statusHasBeenSet = false;
331
332 int m_port{0};
333 bool m_portHasBeenSet = false;
334
335 Aws::String m_vpcId;
336 bool m_vpcIdHasBeenSet = false;
337
338 Aws::Utils::DateTime m_clusterCreateTime{};
339 bool m_clusterCreateTimeHasBeenSet = false;
340
341 Aws::String m_masterUsername;
342 bool m_masterUsernameHasBeenSet = false;
343
344 Aws::String m_engineVersion;
345 bool m_engineVersionHasBeenSet = false;
346
347 Aws::String m_licenseModel;
348 bool m_licenseModelHasBeenSet = false;
349
350 Aws::String m_snapshotType;
351 bool m_snapshotTypeHasBeenSet = false;
352
353 int m_percentProgress{0};
354 bool m_percentProgressHasBeenSet = false;
355
356 bool m_storageEncrypted{false};
357 bool m_storageEncryptedHasBeenSet = false;
358
359 Aws::String m_kmsKeyId;
360 bool m_kmsKeyIdHasBeenSet = false;
361
362 Aws::String m_dBClusterSnapshotArn;
363 bool m_dBClusterSnapshotArnHasBeenSet = false;
364
365 Aws::String m_sourceDBClusterSnapshotArn;
366 bool m_sourceDBClusterSnapshotArnHasBeenSet = false;
367
368 bool m_iAMDatabaseAuthenticationEnabled{false};
369 bool m_iAMDatabaseAuthenticationEnabledHasBeenSet = false;
370
371 Aws::String m_storageType;
372 bool m_storageTypeHasBeenSet = false;
373 };
374
375} // namespace Model
376} // namespace Neptune
377} // 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