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/docdb/DocDB_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 DocDB
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_DOCDB_API DBClusterSnapshot() = default;
37 AWS_DOCDB_API DBClusterSnapshot(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_DOCDB_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_DOCDB_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
49 inline const Aws::Vector<Aws::String>& GetAvailabilityZones() const { return m_availabilityZones; }
50 inline bool AvailabilityZonesHasBeenSet() const { return m_availabilityZonesHasBeenSet; }
51 template<typename AvailabilityZonesT = Aws::Vector<Aws::String>>
52 void SetAvailabilityZones(AvailabilityZonesT&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = std::forward<AvailabilityZonesT>(value); }
53 template<typename AvailabilityZonesT = Aws::Vector<Aws::String>>
54 DBClusterSnapshot& WithAvailabilityZones(AvailabilityZonesT&& value) { SetAvailabilityZones(std::forward<AvailabilityZonesT>(value)); return *this;}
55 template<typename AvailabilityZonesT = Aws::String>
56 DBClusterSnapshot& AddAvailabilityZones(AvailabilityZonesT&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.emplace_back(std::forward<AvailabilityZonesT>(value)); return *this; }
58
60
63 inline const Aws::String& GetDBClusterSnapshotIdentifier() const { return m_dBClusterSnapshotIdentifier; }
64 inline bool DBClusterSnapshotIdentifierHasBeenSet() const { return m_dBClusterSnapshotIdentifierHasBeenSet; }
65 template<typename DBClusterSnapshotIdentifierT = Aws::String>
66 void SetDBClusterSnapshotIdentifier(DBClusterSnapshotIdentifierT&& value) { m_dBClusterSnapshotIdentifierHasBeenSet = true; m_dBClusterSnapshotIdentifier = std::forward<DBClusterSnapshotIdentifierT>(value); }
67 template<typename DBClusterSnapshotIdentifierT = Aws::String>
68 DBClusterSnapshot& WithDBClusterSnapshotIdentifier(DBClusterSnapshotIdentifierT&& value) { SetDBClusterSnapshotIdentifier(std::forward<DBClusterSnapshotIdentifierT>(value)); return *this;}
70
72
76 inline const Aws::String& GetDBClusterIdentifier() const { return m_dBClusterIdentifier; }
77 inline bool DBClusterIdentifierHasBeenSet() const { return m_dBClusterIdentifierHasBeenSet; }
78 template<typename DBClusterIdentifierT = Aws::String>
79 void SetDBClusterIdentifier(DBClusterIdentifierT&& value) { m_dBClusterIdentifierHasBeenSet = true; m_dBClusterIdentifier = std::forward<DBClusterIdentifierT>(value); }
80 template<typename DBClusterIdentifierT = Aws::String>
81 DBClusterSnapshot& WithDBClusterIdentifier(DBClusterIdentifierT&& value) { SetDBClusterIdentifier(std::forward<DBClusterIdentifierT>(value)); return *this;}
83
85
88 inline const Aws::Utils::DateTime& GetSnapshotCreateTime() const { return m_snapshotCreateTime; }
89 inline bool SnapshotCreateTimeHasBeenSet() const { return m_snapshotCreateTimeHasBeenSet; }
90 template<typename SnapshotCreateTimeT = Aws::Utils::DateTime>
91 void SetSnapshotCreateTime(SnapshotCreateTimeT&& value) { m_snapshotCreateTimeHasBeenSet = true; m_snapshotCreateTime = std::forward<SnapshotCreateTimeT>(value); }
92 template<typename SnapshotCreateTimeT = Aws::Utils::DateTime>
93 DBClusterSnapshot& WithSnapshotCreateTime(SnapshotCreateTimeT&& value) { SetSnapshotCreateTime(std::forward<SnapshotCreateTimeT>(value)); return *this;}
95
97
100 inline const Aws::String& GetEngine() const { return m_engine; }
101 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
102 template<typename EngineT = Aws::String>
103 void SetEngine(EngineT&& value) { m_engineHasBeenSet = true; m_engine = std::forward<EngineT>(value); }
104 template<typename EngineT = Aws::String>
105 DBClusterSnapshot& WithEngine(EngineT&& value) { SetEngine(std::forward<EngineT>(value)); return *this;}
107
109
112 inline const Aws::String& GetStatus() const { return m_status; }
113 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
114 template<typename StatusT = Aws::String>
115 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
116 template<typename StatusT = Aws::String>
117 DBClusterSnapshot& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
119
121
125 inline int GetPort() const { return m_port; }
126 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
127 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
128 inline DBClusterSnapshot& WithPort(int value) { SetPort(value); return *this;}
130
132
136 inline const Aws::String& GetVpcId() const { return m_vpcId; }
137 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
138 template<typename VpcIdT = Aws::String>
139 void SetVpcId(VpcIdT&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::forward<VpcIdT>(value); }
140 template<typename VpcIdT = Aws::String>
141 DBClusterSnapshot& WithVpcId(VpcIdT&& value) { SetVpcId(std::forward<VpcIdT>(value)); return *this;}
143
145
149 inline const Aws::Utils::DateTime& GetClusterCreateTime() const { return m_clusterCreateTime; }
150 inline bool ClusterCreateTimeHasBeenSet() const { return m_clusterCreateTimeHasBeenSet; }
151 template<typename ClusterCreateTimeT = Aws::Utils::DateTime>
152 void SetClusterCreateTime(ClusterCreateTimeT&& value) { m_clusterCreateTimeHasBeenSet = true; m_clusterCreateTime = std::forward<ClusterCreateTimeT>(value); }
153 template<typename ClusterCreateTimeT = Aws::Utils::DateTime>
154 DBClusterSnapshot& WithClusterCreateTime(ClusterCreateTimeT&& value) { SetClusterCreateTime(std::forward<ClusterCreateTimeT>(value)); return *this;}
156
158
161 inline const Aws::String& GetMasterUsername() const { return m_masterUsername; }
162 inline bool MasterUsernameHasBeenSet() const { return m_masterUsernameHasBeenSet; }
163 template<typename MasterUsernameT = Aws::String>
164 void SetMasterUsername(MasterUsernameT&& value) { m_masterUsernameHasBeenSet = true; m_masterUsername = std::forward<MasterUsernameT>(value); }
165 template<typename MasterUsernameT = Aws::String>
166 DBClusterSnapshot& WithMasterUsername(MasterUsernameT&& value) { SetMasterUsername(std::forward<MasterUsernameT>(value)); return *this;}
168
170
173 inline const Aws::String& GetEngineVersion() const { return m_engineVersion; }
174 inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; }
175 template<typename EngineVersionT = Aws::String>
176 void SetEngineVersion(EngineVersionT&& value) { m_engineVersionHasBeenSet = true; m_engineVersion = std::forward<EngineVersionT>(value); }
177 template<typename EngineVersionT = Aws::String>
178 DBClusterSnapshot& WithEngineVersion(EngineVersionT&& value) { SetEngineVersion(std::forward<EngineVersionT>(value)); return *this;}
180
182
185 inline const Aws::String& GetSnapshotType() const { return m_snapshotType; }
186 inline bool SnapshotTypeHasBeenSet() const { return m_snapshotTypeHasBeenSet; }
187 template<typename SnapshotTypeT = Aws::String>
188 void SetSnapshotType(SnapshotTypeT&& value) { m_snapshotTypeHasBeenSet = true; m_snapshotType = std::forward<SnapshotTypeT>(value); }
189 template<typename SnapshotTypeT = Aws::String>
190 DBClusterSnapshot& WithSnapshotType(SnapshotTypeT&& value) { SetSnapshotType(std::forward<SnapshotTypeT>(value)); return *this;}
192
194
197 inline int GetPercentProgress() const { return m_percentProgress; }
198 inline bool PercentProgressHasBeenSet() const { return m_percentProgressHasBeenSet; }
199 inline void SetPercentProgress(int value) { m_percentProgressHasBeenSet = true; m_percentProgress = value; }
200 inline DBClusterSnapshot& WithPercentProgress(int value) { SetPercentProgress(value); return *this;}
202
204
207 inline bool GetStorageEncrypted() const { return m_storageEncrypted; }
208 inline bool StorageEncryptedHasBeenSet() const { return m_storageEncryptedHasBeenSet; }
209 inline void SetStorageEncrypted(bool value) { m_storageEncryptedHasBeenSet = true; m_storageEncrypted = value; }
210 inline DBClusterSnapshot& WithStorageEncrypted(bool value) { SetStorageEncrypted(value); return *this;}
212
214
218 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
219 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
220 template<typename KmsKeyIdT = Aws::String>
221 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
222 template<typename KmsKeyIdT = Aws::String>
223 DBClusterSnapshot& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
225
227
230 inline const Aws::String& GetDBClusterSnapshotArn() const { return m_dBClusterSnapshotArn; }
231 inline bool DBClusterSnapshotArnHasBeenSet() const { return m_dBClusterSnapshotArnHasBeenSet; }
232 template<typename DBClusterSnapshotArnT = Aws::String>
233 void SetDBClusterSnapshotArn(DBClusterSnapshotArnT&& value) { m_dBClusterSnapshotArnHasBeenSet = true; m_dBClusterSnapshotArn = std::forward<DBClusterSnapshotArnT>(value); }
234 template<typename DBClusterSnapshotArnT = Aws::String>
235 DBClusterSnapshot& WithDBClusterSnapshotArn(DBClusterSnapshotArnT&& value) { SetDBClusterSnapshotArn(std::forward<DBClusterSnapshotArnT>(value)); return *this;}
237
239
243 inline const Aws::String& GetSourceDBClusterSnapshotArn() const { return m_sourceDBClusterSnapshotArn; }
244 inline bool SourceDBClusterSnapshotArnHasBeenSet() const { return m_sourceDBClusterSnapshotArnHasBeenSet; }
245 template<typename SourceDBClusterSnapshotArnT = Aws::String>
246 void SetSourceDBClusterSnapshotArn(SourceDBClusterSnapshotArnT&& value) { m_sourceDBClusterSnapshotArnHasBeenSet = true; m_sourceDBClusterSnapshotArn = std::forward<SourceDBClusterSnapshotArnT>(value); }
247 template<typename SourceDBClusterSnapshotArnT = Aws::String>
248 DBClusterSnapshot& WithSourceDBClusterSnapshotArn(SourceDBClusterSnapshotArnT&& value) { SetSourceDBClusterSnapshotArn(std::forward<SourceDBClusterSnapshotArnT>(value)); return *this;}
250
252
259 inline const Aws::String& GetStorageType() const { return m_storageType; }
260 inline bool StorageTypeHasBeenSet() const { return m_storageTypeHasBeenSet; }
261 template<typename StorageTypeT = Aws::String>
262 void SetStorageType(StorageTypeT&& value) { m_storageTypeHasBeenSet = true; m_storageType = std::forward<StorageTypeT>(value); }
263 template<typename StorageTypeT = Aws::String>
264 DBClusterSnapshot& WithStorageType(StorageTypeT&& value) { SetStorageType(std::forward<StorageTypeT>(value)); return *this;}
266 private:
267
268 Aws::Vector<Aws::String> m_availabilityZones;
269 bool m_availabilityZonesHasBeenSet = false;
270
271 Aws::String m_dBClusterSnapshotIdentifier;
272 bool m_dBClusterSnapshotIdentifierHasBeenSet = false;
273
274 Aws::String m_dBClusterIdentifier;
275 bool m_dBClusterIdentifierHasBeenSet = false;
276
277 Aws::Utils::DateTime m_snapshotCreateTime{};
278 bool m_snapshotCreateTimeHasBeenSet = false;
279
280 Aws::String m_engine;
281 bool m_engineHasBeenSet = false;
282
283 Aws::String m_status;
284 bool m_statusHasBeenSet = false;
285
286 int m_port{0};
287 bool m_portHasBeenSet = false;
288
289 Aws::String m_vpcId;
290 bool m_vpcIdHasBeenSet = false;
291
292 Aws::Utils::DateTime m_clusterCreateTime{};
293 bool m_clusterCreateTimeHasBeenSet = false;
294
295 Aws::String m_masterUsername;
296 bool m_masterUsernameHasBeenSet = false;
297
298 Aws::String m_engineVersion;
299 bool m_engineVersionHasBeenSet = false;
300
301 Aws::String m_snapshotType;
302 bool m_snapshotTypeHasBeenSet = false;
303
304 int m_percentProgress{0};
305 bool m_percentProgressHasBeenSet = false;
306
307 bool m_storageEncrypted{false};
308 bool m_storageEncryptedHasBeenSet = false;
309
310 Aws::String m_kmsKeyId;
311 bool m_kmsKeyIdHasBeenSet = false;
312
313 Aws::String m_dBClusterSnapshotArn;
314 bool m_dBClusterSnapshotArnHasBeenSet = false;
315
316 Aws::String m_sourceDBClusterSnapshotArn;
317 bool m_sourceDBClusterSnapshotArnHasBeenSet = false;
318
319 Aws::String m_storageType;
320 bool m_storageTypeHasBeenSet = false;
321 };
322
323} // namespace Model
324} // namespace DocDB
325} // 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