AWS SDK for C++

AWS SDK for C++ Version 1.11.716

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/neptune/Neptune_EXPORTS.h>
11#include <aws/neptune/model/CharacterSet.h>
12#include <aws/neptune/model/Timezone.h>
13#include <aws/neptune/model/UpgradeTarget.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Xml {
20class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace Neptune {
24namespace Model {
25
33 public:
34 AWS_NEPTUNE_API DBEngineVersion() = default;
35 AWS_NEPTUNE_API DBEngineVersion(const Aws::Utils::Xml::XmlNode& xmlNode);
36 AWS_NEPTUNE_API DBEngineVersion& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_NEPTUNE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39 AWS_NEPTUNE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
40
42
45 inline const Aws::String& GetEngine() const { return m_engine; }
46 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
47 template <typename EngineT = Aws::String>
48 void SetEngine(EngineT&& value) {
49 m_engineHasBeenSet = true;
50 m_engine = std::forward<EngineT>(value);
51 }
52 template <typename EngineT = Aws::String>
53 DBEngineVersion& WithEngine(EngineT&& value) {
54 SetEngine(std::forward<EngineT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetEngineVersion() const { return m_engineVersion; }
64 inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; }
65 template <typename EngineVersionT = Aws::String>
66 void SetEngineVersion(EngineVersionT&& value) {
67 m_engineVersionHasBeenSet = true;
68 m_engineVersion = std::forward<EngineVersionT>(value);
69 }
70 template <typename EngineVersionT = Aws::String>
71 DBEngineVersion& WithEngineVersion(EngineVersionT&& value) {
72 SetEngineVersion(std::forward<EngineVersionT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetDBParameterGroupFamily() const { return m_dBParameterGroupFamily; }
82 inline bool DBParameterGroupFamilyHasBeenSet() const { return m_dBParameterGroupFamilyHasBeenSet; }
83 template <typename DBParameterGroupFamilyT = Aws::String>
84 void SetDBParameterGroupFamily(DBParameterGroupFamilyT&& value) {
85 m_dBParameterGroupFamilyHasBeenSet = true;
86 m_dBParameterGroupFamily = std::forward<DBParameterGroupFamilyT>(value);
87 }
88 template <typename DBParameterGroupFamilyT = Aws::String>
89 DBEngineVersion& WithDBParameterGroupFamily(DBParameterGroupFamilyT&& value) {
90 SetDBParameterGroupFamily(std::forward<DBParameterGroupFamilyT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::String& GetDBEngineDescription() const { return m_dBEngineDescription; }
100 inline bool DBEngineDescriptionHasBeenSet() const { return m_dBEngineDescriptionHasBeenSet; }
101 template <typename DBEngineDescriptionT = Aws::String>
102 void SetDBEngineDescription(DBEngineDescriptionT&& value) {
103 m_dBEngineDescriptionHasBeenSet = true;
104 m_dBEngineDescription = std::forward<DBEngineDescriptionT>(value);
105 }
106 template <typename DBEngineDescriptionT = Aws::String>
107 DBEngineVersion& WithDBEngineDescription(DBEngineDescriptionT&& value) {
108 SetDBEngineDescription(std::forward<DBEngineDescriptionT>(value));
109 return *this;
110 }
112
114
117 inline const Aws::String& GetDBEngineVersionDescription() const { return m_dBEngineVersionDescription; }
118 inline bool DBEngineVersionDescriptionHasBeenSet() const { return m_dBEngineVersionDescriptionHasBeenSet; }
119 template <typename DBEngineVersionDescriptionT = Aws::String>
120 void SetDBEngineVersionDescription(DBEngineVersionDescriptionT&& value) {
121 m_dBEngineVersionDescriptionHasBeenSet = true;
122 m_dBEngineVersionDescription = std::forward<DBEngineVersionDescriptionT>(value);
123 }
124 template <typename DBEngineVersionDescriptionT = Aws::String>
125 DBEngineVersion& WithDBEngineVersionDescription(DBEngineVersionDescriptionT&& value) {
126 SetDBEngineVersionDescription(std::forward<DBEngineVersionDescriptionT>(value));
127 return *this;
128 }
130
132
135 inline const CharacterSet& GetDefaultCharacterSet() const { return m_defaultCharacterSet; }
136 inline bool DefaultCharacterSetHasBeenSet() const { return m_defaultCharacterSetHasBeenSet; }
137 template <typename DefaultCharacterSetT = CharacterSet>
138 void SetDefaultCharacterSet(DefaultCharacterSetT&& value) {
139 m_defaultCharacterSetHasBeenSet = true;
140 m_defaultCharacterSet = std::forward<DefaultCharacterSetT>(value);
141 }
142 template <typename DefaultCharacterSetT = CharacterSet>
143 DBEngineVersion& WithDefaultCharacterSet(DefaultCharacterSetT&& value) {
144 SetDefaultCharacterSet(std::forward<DefaultCharacterSetT>(value));
145 return *this;
146 }
148
150
153 inline const Aws::Vector<CharacterSet>& GetSupportedCharacterSets() const { return m_supportedCharacterSets; }
154 inline bool SupportedCharacterSetsHasBeenSet() const { return m_supportedCharacterSetsHasBeenSet; }
155 template <typename SupportedCharacterSetsT = Aws::Vector<CharacterSet>>
156 void SetSupportedCharacterSets(SupportedCharacterSetsT&& value) {
157 m_supportedCharacterSetsHasBeenSet = true;
158 m_supportedCharacterSets = std::forward<SupportedCharacterSetsT>(value);
159 }
160 template <typename SupportedCharacterSetsT = Aws::Vector<CharacterSet>>
161 DBEngineVersion& WithSupportedCharacterSets(SupportedCharacterSetsT&& value) {
162 SetSupportedCharacterSets(std::forward<SupportedCharacterSetsT>(value));
163 return *this;
164 }
165 template <typename SupportedCharacterSetsT = CharacterSet>
166 DBEngineVersion& AddSupportedCharacterSets(SupportedCharacterSetsT&& value) {
167 m_supportedCharacterSetsHasBeenSet = true;
168 m_supportedCharacterSets.emplace_back(std::forward<SupportedCharacterSetsT>(value));
169 return *this;
170 }
172
174
178 inline const Aws::Vector<UpgradeTarget>& GetValidUpgradeTarget() const { return m_validUpgradeTarget; }
179 inline bool ValidUpgradeTargetHasBeenSet() const { return m_validUpgradeTargetHasBeenSet; }
180 template <typename ValidUpgradeTargetT = Aws::Vector<UpgradeTarget>>
181 void SetValidUpgradeTarget(ValidUpgradeTargetT&& value) {
182 m_validUpgradeTargetHasBeenSet = true;
183 m_validUpgradeTarget = std::forward<ValidUpgradeTargetT>(value);
184 }
185 template <typename ValidUpgradeTargetT = Aws::Vector<UpgradeTarget>>
186 DBEngineVersion& WithValidUpgradeTarget(ValidUpgradeTargetT&& value) {
187 SetValidUpgradeTarget(std::forward<ValidUpgradeTargetT>(value));
188 return *this;
189 }
190 template <typename ValidUpgradeTargetT = UpgradeTarget>
191 DBEngineVersion& AddValidUpgradeTarget(ValidUpgradeTargetT&& value) {
192 m_validUpgradeTargetHasBeenSet = true;
193 m_validUpgradeTarget.emplace_back(std::forward<ValidUpgradeTargetT>(value));
194 return *this;
195 }
197
199
203 inline const Aws::Vector<Timezone>& GetSupportedTimezones() const { return m_supportedTimezones; }
204 inline bool SupportedTimezonesHasBeenSet() const { return m_supportedTimezonesHasBeenSet; }
205 template <typename SupportedTimezonesT = Aws::Vector<Timezone>>
206 void SetSupportedTimezones(SupportedTimezonesT&& value) {
207 m_supportedTimezonesHasBeenSet = true;
208 m_supportedTimezones = std::forward<SupportedTimezonesT>(value);
209 }
210 template <typename SupportedTimezonesT = Aws::Vector<Timezone>>
211 DBEngineVersion& WithSupportedTimezones(SupportedTimezonesT&& value) {
212 SetSupportedTimezones(std::forward<SupportedTimezonesT>(value));
213 return *this;
214 }
215 template <typename SupportedTimezonesT = Timezone>
216 DBEngineVersion& AddSupportedTimezones(SupportedTimezonesT&& value) {
217 m_supportedTimezonesHasBeenSet = true;
218 m_supportedTimezones.emplace_back(std::forward<SupportedTimezonesT>(value));
219 return *this;
220 }
222
224
228 inline const Aws::Vector<Aws::String>& GetExportableLogTypes() const { return m_exportableLogTypes; }
229 inline bool ExportableLogTypesHasBeenSet() const { return m_exportableLogTypesHasBeenSet; }
230 template <typename ExportableLogTypesT = Aws::Vector<Aws::String>>
231 void SetExportableLogTypes(ExportableLogTypesT&& value) {
232 m_exportableLogTypesHasBeenSet = true;
233 m_exportableLogTypes = std::forward<ExportableLogTypesT>(value);
234 }
235 template <typename ExportableLogTypesT = Aws::Vector<Aws::String>>
236 DBEngineVersion& WithExportableLogTypes(ExportableLogTypesT&& value) {
237 SetExportableLogTypes(std::forward<ExportableLogTypesT>(value));
238 return *this;
239 }
240 template <typename ExportableLogTypesT = Aws::String>
241 DBEngineVersion& AddExportableLogTypes(ExportableLogTypesT&& value) {
242 m_exportableLogTypesHasBeenSet = true;
243 m_exportableLogTypes.emplace_back(std::forward<ExportableLogTypesT>(value));
244 return *this;
245 }
247
249
253 inline bool GetSupportsLogExportsToCloudwatchLogs() const { return m_supportsLogExportsToCloudwatchLogs; }
254 inline bool SupportsLogExportsToCloudwatchLogsHasBeenSet() const { return m_supportsLogExportsToCloudwatchLogsHasBeenSet; }
256 m_supportsLogExportsToCloudwatchLogsHasBeenSet = true;
257 m_supportsLogExportsToCloudwatchLogs = value;
258 }
261 return *this;
262 }
264
266
269 inline bool GetSupportsReadReplica() const { return m_supportsReadReplica; }
270 inline bool SupportsReadReplicaHasBeenSet() const { return m_supportsReadReplicaHasBeenSet; }
271 inline void SetSupportsReadReplica(bool value) {
272 m_supportsReadReplicaHasBeenSet = true;
273 m_supportsReadReplica = value;
274 }
277 return *this;
278 }
280
282
286 inline bool GetSupportsGlobalDatabases() const { return m_supportsGlobalDatabases; }
287 inline bool SupportsGlobalDatabasesHasBeenSet() const { return m_supportsGlobalDatabasesHasBeenSet; }
288 inline void SetSupportsGlobalDatabases(bool value) {
289 m_supportsGlobalDatabasesHasBeenSet = true;
290 m_supportsGlobalDatabases = value;
291 }
294 return *this;
295 }
297 private:
298 Aws::String m_engine;
299
300 Aws::String m_engineVersion;
301
302 Aws::String m_dBParameterGroupFamily;
303
304 Aws::String m_dBEngineDescription;
305
306 Aws::String m_dBEngineVersionDescription;
307
308 CharacterSet m_defaultCharacterSet;
309
310 Aws::Vector<CharacterSet> m_supportedCharacterSets;
311
312 Aws::Vector<UpgradeTarget> m_validUpgradeTarget;
313
314 Aws::Vector<Timezone> m_supportedTimezones;
315
316 Aws::Vector<Aws::String> m_exportableLogTypes;
317
318 bool m_supportsLogExportsToCloudwatchLogs{false};
319
320 bool m_supportsReadReplica{false};
321
322 bool m_supportsGlobalDatabases{false};
323 bool m_engineHasBeenSet = false;
324 bool m_engineVersionHasBeenSet = false;
325 bool m_dBParameterGroupFamilyHasBeenSet = false;
326 bool m_dBEngineDescriptionHasBeenSet = false;
327 bool m_dBEngineVersionDescriptionHasBeenSet = false;
328 bool m_defaultCharacterSetHasBeenSet = false;
329 bool m_supportedCharacterSetsHasBeenSet = false;
330 bool m_validUpgradeTargetHasBeenSet = false;
331 bool m_supportedTimezonesHasBeenSet = false;
332 bool m_exportableLogTypesHasBeenSet = false;
333 bool m_supportsLogExportsToCloudwatchLogsHasBeenSet = false;
334 bool m_supportsReadReplicaHasBeenSet = false;
335 bool m_supportsGlobalDatabasesHasBeenSet = false;
336};
337
338} // namespace Model
339} // namespace Neptune
340} // namespace Aws
DBEngineVersion & WithSupportsGlobalDatabases(bool value)
void SetDBEngineDescription(DBEngineDescriptionT &&value)
void SetExportableLogTypes(ExportableLogTypesT &&value)
void SetSupportedTimezones(SupportedTimezonesT &&value)
DBEngineVersion & WithValidUpgradeTarget(ValidUpgradeTargetT &&value)
DBEngineVersion & WithDBEngineDescription(DBEngineDescriptionT &&value)
DBEngineVersion & AddValidUpgradeTarget(ValidUpgradeTargetT &&value)
DBEngineVersion & AddSupportedCharacterSets(SupportedCharacterSetsT &&value)
void SetValidUpgradeTarget(ValidUpgradeTargetT &&value)
DBEngineVersion & AddExportableLogTypes(ExportableLogTypesT &&value)
const CharacterSet & GetDefaultCharacterSet() const
void SetSupportedCharacterSets(SupportedCharacterSetsT &&value)
void SetDBEngineVersionDescription(DBEngineVersionDescriptionT &&value)
const Aws::String & GetDBEngineVersionDescription() const
const Aws::String & GetDBParameterGroupFamily() const
DBEngineVersion & WithSupportsLogExportsToCloudwatchLogs(bool value)
const Aws::String & GetDBEngineDescription() const
void SetEngineVersion(EngineVersionT &&value)
void SetSupportsLogExportsToCloudwatchLogs(bool value)
DBEngineVersion & WithSupportedCharacterSets(SupportedCharacterSetsT &&value)
DBEngineVersion & WithDBParameterGroupFamily(DBParameterGroupFamilyT &&value)
const Aws::String & GetEngine() const
DBEngineVersion & WithEngineVersion(EngineVersionT &&value)
AWS_NEPTUNE_API DBEngineVersion(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_NEPTUNE_API DBEngineVersion & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_NEPTUNE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
DBEngineVersion & WithExportableLogTypes(ExportableLogTypesT &&value)
DBEngineVersion & WithSupportedTimezones(SupportedTimezonesT &&value)
const Aws::String & GetEngineVersion() const
DBEngineVersion & WithDefaultCharacterSet(DefaultCharacterSetT &&value)
DBEngineVersion & WithDBEngineVersionDescription(DBEngineVersionDescriptionT &&value)
const Aws::Vector< Timezone > & GetSupportedTimezones() const
AWS_NEPTUNE_API DBEngineVersion()=default
DBEngineVersion & AddSupportedTimezones(SupportedTimezonesT &&value)
void SetDBParameterGroupFamily(DBParameterGroupFamilyT &&value)
const Aws::Vector< CharacterSet > & GetSupportedCharacterSets() const
const Aws::Vector< Aws::String > & GetExportableLogTypes() const
void SetDefaultCharacterSet(DefaultCharacterSetT &&value)
const Aws::Vector< UpgradeTarget > & GetValidUpgradeTarget() const
DBEngineVersion & WithEngine(EngineT &&value)
AWS_NEPTUNE_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
DBEngineVersion & WithSupportsReadReplica(bool 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