AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
DBEngineVersion.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/docdb/DocDB_EXPORTS.h>
11#include <aws/docdb/model/ServerlessV2FeaturesSupport.h>
12#include <aws/docdb/model/UpgradeTarget.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Xml {
19class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace DocDB {
23namespace Model {
24
31 public:
32 AWS_DOCDB_API DBEngineVersion() = default;
33 AWS_DOCDB_API DBEngineVersion(const Aws::Utils::Xml::XmlNode& xmlNode);
34 AWS_DOCDB_API DBEngineVersion& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
35
36 AWS_DOCDB_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
37 AWS_DOCDB_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
38
40
43 inline const Aws::String& GetEngine() const { return m_engine; }
44 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
45 template <typename EngineT = Aws::String>
46 void SetEngine(EngineT&& value) {
47 m_engineHasBeenSet = true;
48 m_engine = std::forward<EngineT>(value);
49 }
50 template <typename EngineT = Aws::String>
51 DBEngineVersion& WithEngine(EngineT&& value) {
52 SetEngine(std::forward<EngineT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetEngineVersion() const { return m_engineVersion; }
62 inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; }
63 template <typename EngineVersionT = Aws::String>
64 void SetEngineVersion(EngineVersionT&& value) {
65 m_engineVersionHasBeenSet = true;
66 m_engineVersion = std::forward<EngineVersionT>(value);
67 }
68 template <typename EngineVersionT = Aws::String>
69 DBEngineVersion& WithEngineVersion(EngineVersionT&& value) {
70 SetEngineVersion(std::forward<EngineVersionT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetDBParameterGroupFamily() const { return m_dBParameterGroupFamily; }
80 inline bool DBParameterGroupFamilyHasBeenSet() const { return m_dBParameterGroupFamilyHasBeenSet; }
81 template <typename DBParameterGroupFamilyT = Aws::String>
82 void SetDBParameterGroupFamily(DBParameterGroupFamilyT&& value) {
83 m_dBParameterGroupFamilyHasBeenSet = true;
84 m_dBParameterGroupFamily = std::forward<DBParameterGroupFamilyT>(value);
85 }
86 template <typename DBParameterGroupFamilyT = Aws::String>
87 DBEngineVersion& WithDBParameterGroupFamily(DBParameterGroupFamilyT&& value) {
88 SetDBParameterGroupFamily(std::forward<DBParameterGroupFamilyT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetDBEngineDescription() const { return m_dBEngineDescription; }
98 inline bool DBEngineDescriptionHasBeenSet() const { return m_dBEngineDescriptionHasBeenSet; }
99 template <typename DBEngineDescriptionT = Aws::String>
100 void SetDBEngineDescription(DBEngineDescriptionT&& value) {
101 m_dBEngineDescriptionHasBeenSet = true;
102 m_dBEngineDescription = std::forward<DBEngineDescriptionT>(value);
103 }
104 template <typename DBEngineDescriptionT = Aws::String>
105 DBEngineVersion& WithDBEngineDescription(DBEngineDescriptionT&& value) {
106 SetDBEngineDescription(std::forward<DBEngineDescriptionT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::String& GetDBEngineVersionDescription() const { return m_dBEngineVersionDescription; }
116 inline bool DBEngineVersionDescriptionHasBeenSet() const { return m_dBEngineVersionDescriptionHasBeenSet; }
117 template <typename DBEngineVersionDescriptionT = Aws::String>
118 void SetDBEngineVersionDescription(DBEngineVersionDescriptionT&& value) {
119 m_dBEngineVersionDescriptionHasBeenSet = true;
120 m_dBEngineVersionDescription = std::forward<DBEngineVersionDescriptionT>(value);
121 }
122 template <typename DBEngineVersionDescriptionT = Aws::String>
123 DBEngineVersion& WithDBEngineVersionDescription(DBEngineVersionDescriptionT&& value) {
124 SetDBEngineVersionDescription(std::forward<DBEngineVersionDescriptionT>(value));
125 return *this;
126 }
128
130
134 inline const Aws::Vector<UpgradeTarget>& GetValidUpgradeTarget() const { return m_validUpgradeTarget; }
135 inline bool ValidUpgradeTargetHasBeenSet() const { return m_validUpgradeTargetHasBeenSet; }
136 template <typename ValidUpgradeTargetT = Aws::Vector<UpgradeTarget>>
137 void SetValidUpgradeTarget(ValidUpgradeTargetT&& value) {
138 m_validUpgradeTargetHasBeenSet = true;
139 m_validUpgradeTarget = std::forward<ValidUpgradeTargetT>(value);
140 }
141 template <typename ValidUpgradeTargetT = Aws::Vector<UpgradeTarget>>
142 DBEngineVersion& WithValidUpgradeTarget(ValidUpgradeTargetT&& value) {
143 SetValidUpgradeTarget(std::forward<ValidUpgradeTargetT>(value));
144 return *this;
145 }
146 template <typename ValidUpgradeTargetT = UpgradeTarget>
147 DBEngineVersion& AddValidUpgradeTarget(ValidUpgradeTargetT&& value) {
148 m_validUpgradeTargetHasBeenSet = true;
149 m_validUpgradeTarget.emplace_back(std::forward<ValidUpgradeTargetT>(value));
150 return *this;
151 }
153
155
159 inline const Aws::Vector<Aws::String>& GetExportableLogTypes() const { return m_exportableLogTypes; }
160 inline bool ExportableLogTypesHasBeenSet() const { return m_exportableLogTypesHasBeenSet; }
161 template <typename ExportableLogTypesT = Aws::Vector<Aws::String>>
162 void SetExportableLogTypes(ExportableLogTypesT&& value) {
163 m_exportableLogTypesHasBeenSet = true;
164 m_exportableLogTypes = std::forward<ExportableLogTypesT>(value);
165 }
166 template <typename ExportableLogTypesT = Aws::Vector<Aws::String>>
167 DBEngineVersion& WithExportableLogTypes(ExportableLogTypesT&& value) {
168 SetExportableLogTypes(std::forward<ExportableLogTypesT>(value));
169 return *this;
170 }
171 template <typename ExportableLogTypesT = Aws::String>
172 DBEngineVersion& AddExportableLogTypes(ExportableLogTypesT&& value) {
173 m_exportableLogTypesHasBeenSet = true;
174 m_exportableLogTypes.emplace_back(std::forward<ExportableLogTypesT>(value));
175 return *this;
176 }
178
180
184 inline bool GetSupportsLogExportsToCloudwatchLogs() const { return m_supportsLogExportsToCloudwatchLogs; }
185 inline bool SupportsLogExportsToCloudwatchLogsHasBeenSet() const { return m_supportsLogExportsToCloudwatchLogsHasBeenSet; }
187 m_supportsLogExportsToCloudwatchLogsHasBeenSet = true;
188 m_supportsLogExportsToCloudwatchLogs = value;
189 }
192 return *this;
193 }
195
197
206 inline const Aws::Vector<Aws::String>& GetSupportedCACertificateIdentifiers() const { return m_supportedCACertificateIdentifiers; }
207 inline bool SupportedCACertificateIdentifiersHasBeenSet() const { return m_supportedCACertificateIdentifiersHasBeenSet; }
208 template <typename SupportedCACertificateIdentifiersT = Aws::Vector<Aws::String>>
209 void SetSupportedCACertificateIdentifiers(SupportedCACertificateIdentifiersT&& value) {
210 m_supportedCACertificateIdentifiersHasBeenSet = true;
211 m_supportedCACertificateIdentifiers = std::forward<SupportedCACertificateIdentifiersT>(value);
212 }
213 template <typename SupportedCACertificateIdentifiersT = Aws::Vector<Aws::String>>
214 DBEngineVersion& WithSupportedCACertificateIdentifiers(SupportedCACertificateIdentifiersT&& value) {
215 SetSupportedCACertificateIdentifiers(std::forward<SupportedCACertificateIdentifiersT>(value));
216 return *this;
217 }
218 template <typename SupportedCACertificateIdentifiersT = Aws::String>
219 DBEngineVersion& AddSupportedCACertificateIdentifiers(SupportedCACertificateIdentifiersT&& value) {
220 m_supportedCACertificateIdentifiersHasBeenSet = true;
221 m_supportedCACertificateIdentifiers.emplace_back(std::forward<SupportedCACertificateIdentifiersT>(value));
222 return *this;
223 }
225
227
231 inline bool GetSupportsCertificateRotationWithoutRestart() const { return m_supportsCertificateRotationWithoutRestart; }
232 inline bool SupportsCertificateRotationWithoutRestartHasBeenSet() const { return m_supportsCertificateRotationWithoutRestartHasBeenSet; }
234 m_supportsCertificateRotationWithoutRestartHasBeenSet = true;
235 m_supportsCertificateRotationWithoutRestart = value;
236 }
239 return *this;
240 }
242
244
252 inline const ServerlessV2FeaturesSupport& GetServerlessV2FeaturesSupport() const { return m_serverlessV2FeaturesSupport; }
253 inline bool ServerlessV2FeaturesSupportHasBeenSet() const { return m_serverlessV2FeaturesSupportHasBeenSet; }
254 template <typename ServerlessV2FeaturesSupportT = ServerlessV2FeaturesSupport>
255 void SetServerlessV2FeaturesSupport(ServerlessV2FeaturesSupportT&& value) {
256 m_serverlessV2FeaturesSupportHasBeenSet = true;
257 m_serverlessV2FeaturesSupport = std::forward<ServerlessV2FeaturesSupportT>(value);
258 }
259 template <typename ServerlessV2FeaturesSupportT = ServerlessV2FeaturesSupport>
260 DBEngineVersion& WithServerlessV2FeaturesSupport(ServerlessV2FeaturesSupportT&& value) {
261 SetServerlessV2FeaturesSupport(std::forward<ServerlessV2FeaturesSupportT>(value));
262 return *this;
263 }
265 private:
266 Aws::String m_engine;
267
268 Aws::String m_engineVersion;
269
270 Aws::String m_dBParameterGroupFamily;
271
272 Aws::String m_dBEngineDescription;
273
274 Aws::String m_dBEngineVersionDescription;
275
276 Aws::Vector<UpgradeTarget> m_validUpgradeTarget;
277
278 Aws::Vector<Aws::String> m_exportableLogTypes;
279
280 bool m_supportsLogExportsToCloudwatchLogs{false};
281
282 Aws::Vector<Aws::String> m_supportedCACertificateIdentifiers;
283
284 bool m_supportsCertificateRotationWithoutRestart{false};
285
286 ServerlessV2FeaturesSupport m_serverlessV2FeaturesSupport;
287 bool m_engineHasBeenSet = false;
288 bool m_engineVersionHasBeenSet = false;
289 bool m_dBParameterGroupFamilyHasBeenSet = false;
290 bool m_dBEngineDescriptionHasBeenSet = false;
291 bool m_dBEngineVersionDescriptionHasBeenSet = false;
292 bool m_validUpgradeTargetHasBeenSet = false;
293 bool m_exportableLogTypesHasBeenSet = false;
294 bool m_supportsLogExportsToCloudwatchLogsHasBeenSet = false;
295 bool m_supportedCACertificateIdentifiersHasBeenSet = false;
296 bool m_supportsCertificateRotationWithoutRestartHasBeenSet = false;
297 bool m_serverlessV2FeaturesSupportHasBeenSet = false;
298};
299
300} // namespace Model
301} // namespace DocDB
302} // namespace Aws
AWS_DOCDB_API DBEngineVersion()=default
DBEngineVersion & AddExportableLogTypes(ExportableLogTypesT &&value)
void SetExportableLogTypes(ExportableLogTypesT &&value)
DBEngineVersion & WithDBEngineDescription(DBEngineDescriptionT &&value)
const ServerlessV2FeaturesSupport & GetServerlessV2FeaturesSupport() const
DBEngineVersion & WithEngine(EngineT &&value)
const Aws::String & GetEngine() const
AWS_DOCDB_API DBEngineVersion & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
DBEngineVersion & WithEngineVersion(EngineVersionT &&value)
bool SupportsCertificateRotationWithoutRestartHasBeenSet() const
DBEngineVersion & AddSupportedCACertificateIdentifiers(SupportedCACertificateIdentifiersT &&value)
void SetDBEngineDescription(DBEngineDescriptionT &&value)
void SetEngineVersion(EngineVersionT &&value)
DBEngineVersion & WithExportableLogTypes(ExportableLogTypesT &&value)
DBEngineVersion & WithSupportsLogExportsToCloudwatchLogs(bool value)
DBEngineVersion & WithSupportsCertificateRotationWithoutRestart(bool value)
DBEngineVersion & WithDBParameterGroupFamily(DBParameterGroupFamilyT &&value)
AWS_DOCDB_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetValidUpgradeTarget(ValidUpgradeTargetT &&value)
DBEngineVersion & WithValidUpgradeTarget(ValidUpgradeTargetT &&value)
const Aws::String & GetDBEngineVersionDescription() const
bool GetSupportsCertificateRotationWithoutRestart() const
const Aws::Vector< Aws::String > & GetExportableLogTypes() const
AWS_DOCDB_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_DOCDB_API DBEngineVersion(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetDBEngineVersionDescription(DBEngineVersionDescriptionT &&value)
bool SupportedCACertificateIdentifiersHasBeenSet() const
DBEngineVersion & AddValidUpgradeTarget(ValidUpgradeTargetT &&value)
const Aws::String & GetDBParameterGroupFamily() const
void SetDBParameterGroupFamily(DBParameterGroupFamilyT &&value)
DBEngineVersion & WithSupportedCACertificateIdentifiers(SupportedCACertificateIdentifiersT &&value)
void SetSupportedCACertificateIdentifiers(SupportedCACertificateIdentifiersT &&value)
void SetSupportsCertificateRotationWithoutRestart(bool value)
const Aws::String & GetDBEngineDescription() const
const Aws::Vector< UpgradeTarget > & GetValidUpgradeTarget() const
DBEngineVersion & WithDBEngineVersionDescription(DBEngineVersionDescriptionT &&value)
void SetSupportsLogExportsToCloudwatchLogs(bool value)
void SetServerlessV2FeaturesSupport(ServerlessV2FeaturesSupportT &&value)
const Aws::Vector< Aws::String > & GetSupportedCACertificateIdentifiers() const
bool SupportsLogExportsToCloudwatchLogsHasBeenSet() const
const Aws::String & GetEngineVersion() const
DBEngineVersion & WithServerlessV2FeaturesSupport(ServerlessV2FeaturesSupportT &&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