AWS SDK for C++

AWS SDK for C++ Version 1.11.748

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/docdb/DocDB_EXPORTS.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace DocDB {
22namespace Model {
23
30 public:
31 AWS_DOCDB_API DBClusterSnapshot() = default;
32 AWS_DOCDB_API DBClusterSnapshot(const Aws::Utils::Xml::XmlNode& xmlNode);
34
35 AWS_DOCDB_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
36 AWS_DOCDB_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
37
39
43 inline const Aws::Vector<Aws::String>& GetAvailabilityZones() const { return m_availabilityZones; }
44 inline bool AvailabilityZonesHasBeenSet() const { return m_availabilityZonesHasBeenSet; }
45 template <typename AvailabilityZonesT = Aws::Vector<Aws::String>>
46 void SetAvailabilityZones(AvailabilityZonesT&& value) {
47 m_availabilityZonesHasBeenSet = true;
48 m_availabilityZones = std::forward<AvailabilityZonesT>(value);
49 }
50 template <typename AvailabilityZonesT = Aws::Vector<Aws::String>>
51 DBClusterSnapshot& WithAvailabilityZones(AvailabilityZonesT&& value) {
52 SetAvailabilityZones(std::forward<AvailabilityZonesT>(value));
53 return *this;
54 }
55 template <typename AvailabilityZonesT = Aws::String>
56 DBClusterSnapshot& AddAvailabilityZones(AvailabilityZonesT&& value) {
57 m_availabilityZonesHasBeenSet = true;
58 m_availabilityZones.emplace_back(std::forward<AvailabilityZonesT>(value));
59 return *this;
60 }
62
64
67 inline const Aws::String& GetDBClusterSnapshotIdentifier() const { return m_dBClusterSnapshotIdentifier; }
68 inline bool DBClusterSnapshotIdentifierHasBeenSet() const { return m_dBClusterSnapshotIdentifierHasBeenSet; }
69 template <typename DBClusterSnapshotIdentifierT = Aws::String>
70 void SetDBClusterSnapshotIdentifier(DBClusterSnapshotIdentifierT&& value) {
71 m_dBClusterSnapshotIdentifierHasBeenSet = true;
72 m_dBClusterSnapshotIdentifier = std::forward<DBClusterSnapshotIdentifierT>(value);
73 }
74 template <typename DBClusterSnapshotIdentifierT = Aws::String>
75 DBClusterSnapshot& WithDBClusterSnapshotIdentifier(DBClusterSnapshotIdentifierT&& value) {
76 SetDBClusterSnapshotIdentifier(std::forward<DBClusterSnapshotIdentifierT>(value));
77 return *this;
78 }
80
82
86 inline const Aws::String& GetDBClusterIdentifier() const { return m_dBClusterIdentifier; }
87 inline bool DBClusterIdentifierHasBeenSet() const { return m_dBClusterIdentifierHasBeenSet; }
88 template <typename DBClusterIdentifierT = Aws::String>
89 void SetDBClusterIdentifier(DBClusterIdentifierT&& value) {
90 m_dBClusterIdentifierHasBeenSet = true;
91 m_dBClusterIdentifier = std::forward<DBClusterIdentifierT>(value);
92 }
93 template <typename DBClusterIdentifierT = Aws::String>
94 DBClusterSnapshot& WithDBClusterIdentifier(DBClusterIdentifierT&& value) {
95 SetDBClusterIdentifier(std::forward<DBClusterIdentifierT>(value));
96 return *this;
97 }
99
101
104 inline const Aws::Utils::DateTime& GetSnapshotCreateTime() const { return m_snapshotCreateTime; }
105 inline bool SnapshotCreateTimeHasBeenSet() const { return m_snapshotCreateTimeHasBeenSet; }
106 template <typename SnapshotCreateTimeT = Aws::Utils::DateTime>
107 void SetSnapshotCreateTime(SnapshotCreateTimeT&& value) {
108 m_snapshotCreateTimeHasBeenSet = true;
109 m_snapshotCreateTime = std::forward<SnapshotCreateTimeT>(value);
110 }
111 template <typename SnapshotCreateTimeT = Aws::Utils::DateTime>
112 DBClusterSnapshot& WithSnapshotCreateTime(SnapshotCreateTimeT&& value) {
113 SetSnapshotCreateTime(std::forward<SnapshotCreateTimeT>(value));
114 return *this;
115 }
117
119
122 inline const Aws::String& GetEngine() const { return m_engine; }
123 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
124 template <typename EngineT = Aws::String>
125 void SetEngine(EngineT&& value) {
126 m_engineHasBeenSet = true;
127 m_engine = std::forward<EngineT>(value);
128 }
129 template <typename EngineT = Aws::String>
130 DBClusterSnapshot& WithEngine(EngineT&& value) {
131 SetEngine(std::forward<EngineT>(value));
132 return *this;
133 }
135
137
140 inline const Aws::String& GetStatus() const { return m_status; }
141 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
142 template <typename StatusT = Aws::String>
143 void SetStatus(StatusT&& value) {
144 m_statusHasBeenSet = true;
145 m_status = std::forward<StatusT>(value);
146 }
147 template <typename StatusT = Aws::String>
148 DBClusterSnapshot& WithStatus(StatusT&& value) {
149 SetStatus(std::forward<StatusT>(value));
150 return *this;
151 }
153
155
159 inline int GetPort() const { return m_port; }
160 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
161 inline void SetPort(int value) {
162 m_portHasBeenSet = true;
163 m_port = value;
164 }
165 inline DBClusterSnapshot& WithPort(int value) {
166 SetPort(value);
167 return *this;
168 }
170
172
176 inline const Aws::String& GetVpcId() const { return m_vpcId; }
177 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
178 template <typename VpcIdT = Aws::String>
179 void SetVpcId(VpcIdT&& value) {
180 m_vpcIdHasBeenSet = true;
181 m_vpcId = std::forward<VpcIdT>(value);
182 }
183 template <typename VpcIdT = Aws::String>
184 DBClusterSnapshot& WithVpcId(VpcIdT&& value) {
185 SetVpcId(std::forward<VpcIdT>(value));
186 return *this;
187 }
189
191
195 inline const Aws::Utils::DateTime& GetClusterCreateTime() const { return m_clusterCreateTime; }
196 inline bool ClusterCreateTimeHasBeenSet() const { return m_clusterCreateTimeHasBeenSet; }
197 template <typename ClusterCreateTimeT = Aws::Utils::DateTime>
198 void SetClusterCreateTime(ClusterCreateTimeT&& value) {
199 m_clusterCreateTimeHasBeenSet = true;
200 m_clusterCreateTime = std::forward<ClusterCreateTimeT>(value);
201 }
202 template <typename ClusterCreateTimeT = Aws::Utils::DateTime>
203 DBClusterSnapshot& WithClusterCreateTime(ClusterCreateTimeT&& value) {
204 SetClusterCreateTime(std::forward<ClusterCreateTimeT>(value));
205 return *this;
206 }
208
210
213 inline const Aws::String& GetMasterUsername() const { return m_masterUsername; }
214 inline bool MasterUsernameHasBeenSet() const { return m_masterUsernameHasBeenSet; }
215 template <typename MasterUsernameT = Aws::String>
216 void SetMasterUsername(MasterUsernameT&& value) {
217 m_masterUsernameHasBeenSet = true;
218 m_masterUsername = std::forward<MasterUsernameT>(value);
219 }
220 template <typename MasterUsernameT = Aws::String>
221 DBClusterSnapshot& WithMasterUsername(MasterUsernameT&& value) {
222 SetMasterUsername(std::forward<MasterUsernameT>(value));
223 return *this;
224 }
226
228
231 inline const Aws::String& GetEngineVersion() const { return m_engineVersion; }
232 inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; }
233 template <typename EngineVersionT = Aws::String>
234 void SetEngineVersion(EngineVersionT&& value) {
235 m_engineVersionHasBeenSet = true;
236 m_engineVersion = std::forward<EngineVersionT>(value);
237 }
238 template <typename EngineVersionT = Aws::String>
239 DBClusterSnapshot& WithEngineVersion(EngineVersionT&& value) {
240 SetEngineVersion(std::forward<EngineVersionT>(value));
241 return *this;
242 }
244
246
249 inline const Aws::String& GetSnapshotType() const { return m_snapshotType; }
250 inline bool SnapshotTypeHasBeenSet() const { return m_snapshotTypeHasBeenSet; }
251 template <typename SnapshotTypeT = Aws::String>
252 void SetSnapshotType(SnapshotTypeT&& value) {
253 m_snapshotTypeHasBeenSet = true;
254 m_snapshotType = std::forward<SnapshotTypeT>(value);
255 }
256 template <typename SnapshotTypeT = Aws::String>
257 DBClusterSnapshot& WithSnapshotType(SnapshotTypeT&& value) {
258 SetSnapshotType(std::forward<SnapshotTypeT>(value));
259 return *this;
260 }
262
264
267 inline int GetPercentProgress() const { return m_percentProgress; }
268 inline bool PercentProgressHasBeenSet() const { return m_percentProgressHasBeenSet; }
269 inline void SetPercentProgress(int value) {
270 m_percentProgressHasBeenSet = true;
271 m_percentProgress = value;
272 }
274 SetPercentProgress(value);
275 return *this;
276 }
278
280
283 inline bool GetStorageEncrypted() const { return m_storageEncrypted; }
284 inline bool StorageEncryptedHasBeenSet() const { return m_storageEncryptedHasBeenSet; }
285 inline void SetStorageEncrypted(bool value) {
286 m_storageEncryptedHasBeenSet = true;
287 m_storageEncrypted = value;
288 }
290 SetStorageEncrypted(value);
291 return *this;
292 }
294
296
300 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
301 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
302 template <typename KmsKeyIdT = Aws::String>
303 void SetKmsKeyId(KmsKeyIdT&& value) {
304 m_kmsKeyIdHasBeenSet = true;
305 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
306 }
307 template <typename KmsKeyIdT = Aws::String>
308 DBClusterSnapshot& WithKmsKeyId(KmsKeyIdT&& value) {
309 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
310 return *this;
311 }
313
315
318 inline const Aws::String& GetDBClusterSnapshotArn() const { return m_dBClusterSnapshotArn; }
319 inline bool DBClusterSnapshotArnHasBeenSet() const { return m_dBClusterSnapshotArnHasBeenSet; }
320 template <typename DBClusterSnapshotArnT = Aws::String>
321 void SetDBClusterSnapshotArn(DBClusterSnapshotArnT&& value) {
322 m_dBClusterSnapshotArnHasBeenSet = true;
323 m_dBClusterSnapshotArn = std::forward<DBClusterSnapshotArnT>(value);
324 }
325 template <typename DBClusterSnapshotArnT = Aws::String>
326 DBClusterSnapshot& WithDBClusterSnapshotArn(DBClusterSnapshotArnT&& value) {
327 SetDBClusterSnapshotArn(std::forward<DBClusterSnapshotArnT>(value));
328 return *this;
329 }
331
333
337 inline const Aws::String& GetSourceDBClusterSnapshotArn() const { return m_sourceDBClusterSnapshotArn; }
338 inline bool SourceDBClusterSnapshotArnHasBeenSet() const { return m_sourceDBClusterSnapshotArnHasBeenSet; }
339 template <typename SourceDBClusterSnapshotArnT = Aws::String>
340 void SetSourceDBClusterSnapshotArn(SourceDBClusterSnapshotArnT&& value) {
341 m_sourceDBClusterSnapshotArnHasBeenSet = true;
342 m_sourceDBClusterSnapshotArn = std::forward<SourceDBClusterSnapshotArnT>(value);
343 }
344 template <typename SourceDBClusterSnapshotArnT = Aws::String>
345 DBClusterSnapshot& WithSourceDBClusterSnapshotArn(SourceDBClusterSnapshotArnT&& value) {
346 SetSourceDBClusterSnapshotArn(std::forward<SourceDBClusterSnapshotArnT>(value));
347 return *this;
348 }
350
352
359 inline const Aws::String& GetStorageType() const { return m_storageType; }
360 inline bool StorageTypeHasBeenSet() const { return m_storageTypeHasBeenSet; }
361 template <typename StorageTypeT = Aws::String>
362 void SetStorageType(StorageTypeT&& value) {
363 m_storageTypeHasBeenSet = true;
364 m_storageType = std::forward<StorageTypeT>(value);
365 }
366 template <typename StorageTypeT = Aws::String>
367 DBClusterSnapshot& WithStorageType(StorageTypeT&& value) {
368 SetStorageType(std::forward<StorageTypeT>(value));
369 return *this;
370 }
372 private:
373 Aws::Vector<Aws::String> m_availabilityZones;
374
375 Aws::String m_dBClusterSnapshotIdentifier;
376
377 Aws::String m_dBClusterIdentifier;
378
379 Aws::Utils::DateTime m_snapshotCreateTime{};
380
381 Aws::String m_engine;
382
383 Aws::String m_status;
384
385 int m_port{0};
386
387 Aws::String m_vpcId;
388
389 Aws::Utils::DateTime m_clusterCreateTime{};
390
391 Aws::String m_masterUsername;
392
393 Aws::String m_engineVersion;
394
395 Aws::String m_snapshotType;
396
397 int m_percentProgress{0};
398
399 bool m_storageEncrypted{false};
400
401 Aws::String m_kmsKeyId;
402
403 Aws::String m_dBClusterSnapshotArn;
404
405 Aws::String m_sourceDBClusterSnapshotArn;
406
407 Aws::String m_storageType;
408 bool m_availabilityZonesHasBeenSet = false;
409 bool m_dBClusterSnapshotIdentifierHasBeenSet = false;
410 bool m_dBClusterIdentifierHasBeenSet = false;
411 bool m_snapshotCreateTimeHasBeenSet = false;
412 bool m_engineHasBeenSet = false;
413 bool m_statusHasBeenSet = false;
414 bool m_portHasBeenSet = false;
415 bool m_vpcIdHasBeenSet = false;
416 bool m_clusterCreateTimeHasBeenSet = false;
417 bool m_masterUsernameHasBeenSet = false;
418 bool m_engineVersionHasBeenSet = false;
419 bool m_snapshotTypeHasBeenSet = false;
420 bool m_percentProgressHasBeenSet = false;
421 bool m_storageEncryptedHasBeenSet = false;
422 bool m_kmsKeyIdHasBeenSet = false;
423 bool m_dBClusterSnapshotArnHasBeenSet = false;
424 bool m_sourceDBClusterSnapshotArnHasBeenSet = false;
425 bool m_storageTypeHasBeenSet = false;
426};
427
428} // namespace Model
429} // namespace DocDB
430} // namespace Aws
DBClusterSnapshot & WithVpcId(VpcIdT &&value)
AWS_DOCDB_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::Utils::DateTime & GetClusterCreateTime() const
const Aws::String & GetStorageType() const
void SetDBClusterSnapshotArn(DBClusterSnapshotArnT &&value)
DBClusterSnapshot & WithClusterCreateTime(ClusterCreateTimeT &&value)
DBClusterSnapshot & AddAvailabilityZones(AvailabilityZonesT &&value)
void SetMasterUsername(MasterUsernameT &&value)
void SetEngineVersion(EngineVersionT &&value)
const Aws::String & GetStatus() const
void SetStorageType(StorageTypeT &&value)
AWS_DOCDB_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_DOCDB_API DBClusterSnapshot()=default
DBClusterSnapshot & WithStorageEncrypted(bool value)
void SetAvailabilityZones(AvailabilityZonesT &&value)
DBClusterSnapshot & WithStatus(StatusT &&value)
AWS_DOCDB_API DBClusterSnapshot & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
DBClusterSnapshot & WithDBClusterIdentifier(DBClusterIdentifierT &&value)
const Aws::String & GetDBClusterSnapshotIdentifier() const
DBClusterSnapshot & WithEngine(EngineT &&value)
DBClusterSnapshot & WithStorageType(StorageTypeT &&value)
DBClusterSnapshot & WithDBClusterSnapshotArn(DBClusterSnapshotArnT &&value)
DBClusterSnapshot & WithAvailabilityZones(AvailabilityZonesT &&value)
const Aws::String & GetEngineVersion() const
const Aws::String & GetVpcId() const
DBClusterSnapshot & WithKmsKeyId(KmsKeyIdT &&value)
void SetSnapshotType(SnapshotTypeT &&value)
const Aws::String & GetSnapshotType() const
const Aws::Utils::DateTime & GetSnapshotCreateTime() const
void SetDBClusterIdentifier(DBClusterIdentifierT &&value)
const Aws::String & GetMasterUsername() const
DBClusterSnapshot & WithSnapshotType(SnapshotTypeT &&value)
const Aws::String & GetEngine() const
DBClusterSnapshot & WithPort(int value)
DBClusterSnapshot & WithEngineVersion(EngineVersionT &&value)
const Aws::String & GetDBClusterSnapshotArn() const
DBClusterSnapshot & WithSourceDBClusterSnapshotArn(SourceDBClusterSnapshotArnT &&value)
void SetSourceDBClusterSnapshotArn(SourceDBClusterSnapshotArnT &&value)
void SetDBClusterSnapshotIdentifier(DBClusterSnapshotIdentifierT &&value)
DBClusterSnapshot & WithDBClusterSnapshotIdentifier(DBClusterSnapshotIdentifierT &&value)
const Aws::String & GetKmsKeyId() const
AWS_DOCDB_API DBClusterSnapshot(const Aws::Utils::Xml::XmlNode &xmlNode)
DBClusterSnapshot & WithMasterUsername(MasterUsernameT &&value)
void SetClusterCreateTime(ClusterCreateTimeT &&value)
void SetSnapshotCreateTime(SnapshotCreateTimeT &&value)
DBClusterSnapshot & WithPercentProgress(int value)
const Aws::Vector< Aws::String > & GetAvailabilityZones() const
const Aws::String & GetDBClusterIdentifier() const
DBClusterSnapshot & WithSnapshotCreateTime(SnapshotCreateTimeT &&value)
const Aws::String & GetSourceDBClusterSnapshotArn() 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