AWS SDK for C++  1.9.104
AWS SDK for C++
UpgradeTarget.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/rds/RDS_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace RDS
23 {
24 namespace Model
25 {
26 
34  {
35  public:
39 
40  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41  void OutputToStream(Aws::OStream& oStream, const char* location) const;
42 
43 
47  inline const Aws::String& GetEngine() const{ return m_engine; }
48 
52  inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
53 
57  inline void SetEngine(const Aws::String& value) { m_engineHasBeenSet = true; m_engine = value; }
58 
62  inline void SetEngine(Aws::String&& value) { m_engineHasBeenSet = true; m_engine = std::move(value); }
63 
67  inline void SetEngine(const char* value) { m_engineHasBeenSet = true; m_engine.assign(value); }
68 
72  inline UpgradeTarget& WithEngine(const Aws::String& value) { SetEngine(value); return *this;}
73 
77  inline UpgradeTarget& WithEngine(Aws::String&& value) { SetEngine(std::move(value)); return *this;}
78 
82  inline UpgradeTarget& WithEngine(const char* value) { SetEngine(value); return *this;}
83 
84 
88  inline const Aws::String& GetEngineVersion() const{ return m_engineVersion; }
89 
93  inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; }
94 
98  inline void SetEngineVersion(const Aws::String& value) { m_engineVersionHasBeenSet = true; m_engineVersion = value; }
99 
103  inline void SetEngineVersion(Aws::String&& value) { m_engineVersionHasBeenSet = true; m_engineVersion = std::move(value); }
104 
108  inline void SetEngineVersion(const char* value) { m_engineVersionHasBeenSet = true; m_engineVersion.assign(value); }
109 
113  inline UpgradeTarget& WithEngineVersion(const Aws::String& value) { SetEngineVersion(value); return *this;}
114 
118  inline UpgradeTarget& WithEngineVersion(Aws::String&& value) { SetEngineVersion(std::move(value)); return *this;}
119 
123  inline UpgradeTarget& WithEngineVersion(const char* value) { SetEngineVersion(value); return *this;}
124 
125 
129  inline const Aws::String& GetDescription() const{ return m_description; }
130 
134  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
135 
139  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
140 
144  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
145 
149  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
150 
154  inline UpgradeTarget& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
155 
159  inline UpgradeTarget& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
160 
164  inline UpgradeTarget& WithDescription(const char* value) { SetDescription(value); return *this;}
165 
166 
171  inline bool GetAutoUpgrade() const{ return m_autoUpgrade; }
172 
177  inline bool AutoUpgradeHasBeenSet() const { return m_autoUpgradeHasBeenSet; }
178 
183  inline void SetAutoUpgrade(bool value) { m_autoUpgradeHasBeenSet = true; m_autoUpgrade = value; }
184 
189  inline UpgradeTarget& WithAutoUpgrade(bool value) { SetAutoUpgrade(value); return *this;}
190 
191 
196  inline bool GetIsMajorVersionUpgrade() const{ return m_isMajorVersionUpgrade; }
197 
202  inline bool IsMajorVersionUpgradeHasBeenSet() const { return m_isMajorVersionUpgradeHasBeenSet; }
203 
208  inline void SetIsMajorVersionUpgrade(bool value) { m_isMajorVersionUpgradeHasBeenSet = true; m_isMajorVersionUpgrade = value; }
209 
214  inline UpgradeTarget& WithIsMajorVersionUpgrade(bool value) { SetIsMajorVersionUpgrade(value); return *this;}
215 
216 
220  inline const Aws::Vector<Aws::String>& GetSupportedEngineModes() const{ return m_supportedEngineModes; }
221 
225  inline bool SupportedEngineModesHasBeenSet() const { return m_supportedEngineModesHasBeenSet; }
226 
230  inline void SetSupportedEngineModes(const Aws::Vector<Aws::String>& value) { m_supportedEngineModesHasBeenSet = true; m_supportedEngineModes = value; }
231 
235  inline void SetSupportedEngineModes(Aws::Vector<Aws::String>&& value) { m_supportedEngineModesHasBeenSet = true; m_supportedEngineModes = std::move(value); }
236 
240  inline UpgradeTarget& WithSupportedEngineModes(const Aws::Vector<Aws::String>& value) { SetSupportedEngineModes(value); return *this;}
241 
245  inline UpgradeTarget& WithSupportedEngineModes(Aws::Vector<Aws::String>&& value) { SetSupportedEngineModes(std::move(value)); return *this;}
246 
250  inline UpgradeTarget& AddSupportedEngineModes(const Aws::String& value) { m_supportedEngineModesHasBeenSet = true; m_supportedEngineModes.push_back(value); return *this; }
251 
255  inline UpgradeTarget& AddSupportedEngineModes(Aws::String&& value) { m_supportedEngineModesHasBeenSet = true; m_supportedEngineModes.push_back(std::move(value)); return *this; }
256 
260  inline UpgradeTarget& AddSupportedEngineModes(const char* value) { m_supportedEngineModesHasBeenSet = true; m_supportedEngineModes.push_back(value); return *this; }
261 
262 
267  inline bool GetSupportsParallelQuery() const{ return m_supportsParallelQuery; }
268 
273  inline bool SupportsParallelQueryHasBeenSet() const { return m_supportsParallelQueryHasBeenSet; }
274 
279  inline void SetSupportsParallelQuery(bool value) { m_supportsParallelQueryHasBeenSet = true; m_supportsParallelQuery = value; }
280 
285  inline UpgradeTarget& WithSupportsParallelQuery(bool value) { SetSupportsParallelQuery(value); return *this;}
286 
287 
292  inline bool GetSupportsGlobalDatabases() const{ return m_supportsGlobalDatabases; }
293 
298  inline bool SupportsGlobalDatabasesHasBeenSet() const { return m_supportsGlobalDatabasesHasBeenSet; }
299 
304  inline void SetSupportsGlobalDatabases(bool value) { m_supportsGlobalDatabasesHasBeenSet = true; m_supportsGlobalDatabases = value; }
305 
310  inline UpgradeTarget& WithSupportsGlobalDatabases(bool value) { SetSupportsGlobalDatabases(value); return *this;}
311 
312  private:
313 
314  Aws::String m_engine;
315  bool m_engineHasBeenSet;
316 
317  Aws::String m_engineVersion;
318  bool m_engineVersionHasBeenSet;
319 
320  Aws::String m_description;
321  bool m_descriptionHasBeenSet;
322 
323  bool m_autoUpgrade;
324  bool m_autoUpgradeHasBeenSet;
325 
326  bool m_isMajorVersionUpgrade;
327  bool m_isMajorVersionUpgradeHasBeenSet;
328 
329  Aws::Vector<Aws::String> m_supportedEngineModes;
330  bool m_supportedEngineModesHasBeenSet;
331 
332  bool m_supportsParallelQuery;
333  bool m_supportsParallelQueryHasBeenSet;
334 
335  bool m_supportsGlobalDatabases;
336  bool m_supportsGlobalDatabasesHasBeenSet;
337  };
338 
339 } // namespace Model
340 } // namespace RDS
341 } // namespace Aws
Aws::RDS::Model::UpgradeTarget::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::RDS::Model::UpgradeTarget::SetDescription
void SetDescription(const Aws::String &value)
Definition: UpgradeTarget.h:139
Aws::RDS::Model::UpgradeTarget::SetDescription
void SetDescription(Aws::String &&value)
Definition: UpgradeTarget.h:144
Aws::RDS::Model::UpgradeTarget::GetIsMajorVersionUpgrade
bool GetIsMajorVersionUpgrade() const
Definition: UpgradeTarget.h:196
Aws::RDS::Model::UpgradeTarget::UpgradeTarget
UpgradeTarget(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::RDS::Model::UpgradeTarget::WithDescription
UpgradeTarget & WithDescription(const char *value)
Definition: UpgradeTarget.h:164
Aws::RDS::Model::UpgradeTarget::SetDescription
void SetDescription(const char *value)
Definition: UpgradeTarget.h:149
Aws::RDS::Model::UpgradeTarget::WithDescription
UpgradeTarget & WithDescription(Aws::String &&value)
Definition: UpgradeTarget.h:159
Aws::RDS::Model::UpgradeTarget::WithEngine
UpgradeTarget & WithEngine(const Aws::String &value)
Definition: UpgradeTarget.h:72
Aws::RDS::Model::UpgradeTarget::SetSupportsGlobalDatabases
void SetSupportsGlobalDatabases(bool value)
Definition: UpgradeTarget.h:304
Aws::RDS::Model::UpgradeTarget::GetSupportedEngineModes
const Aws::Vector< Aws::String > & GetSupportedEngineModes() const
Definition: UpgradeTarget.h:220
Aws::RDS::Model::UpgradeTarget::WithSupportsParallelQuery
UpgradeTarget & WithSupportsParallelQuery(bool value)
Definition: UpgradeTarget.h:285
Aws::ApplicationInsights::Model::CloudWatchEventSource::NOT_SET
@ NOT_SET
Aws::RDS::Model::UpgradeTarget::GetDescription
const Aws::String & GetDescription() const
Definition: UpgradeTarget.h:129
Aws::RDS::Model::UpgradeTarget::AddSupportedEngineModes
UpgradeTarget & AddSupportedEngineModes(Aws::String &&value)
Definition: UpgradeTarget.h:255
Aws::RDS::Model::UpgradeTarget::SupportedEngineModesHasBeenSet
bool SupportedEngineModesHasBeenSet() const
Definition: UpgradeTarget.h:225
Aws::RDS::Model::UpgradeTarget::SetSupportedEngineModes
void SetSupportedEngineModes(Aws::Vector< Aws::String > &&value)
Definition: UpgradeTarget.h:235
Aws::RDS::Model::UpgradeTarget::WithEngineVersion
UpgradeTarget & WithEngineVersion(const Aws::String &value)
Definition: UpgradeTarget.h:113
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::RDS::Model::UpgradeTarget::WithSupportedEngineModes
UpgradeTarget & WithSupportedEngineModes(const Aws::Vector< Aws::String > &value)
Definition: UpgradeTarget.h:240
Aws::RDS::Model::UpgradeTarget::SupportsGlobalDatabasesHasBeenSet
bool SupportsGlobalDatabasesHasBeenSet() const
Definition: UpgradeTarget.h:298
Aws::RDS::Model::UpgradeTarget::SetSupportsParallelQuery
void SetSupportsParallelQuery(bool value)
Definition: UpgradeTarget.h:279
AWSStreamFwd.h
Aws::RDS::Model::UpgradeTarget::SetEngineVersion
void SetEngineVersion(Aws::String &&value)
Definition: UpgradeTarget.h:103
AWSVector.h
Aws::RDS::Model::UpgradeTarget::GetAutoUpgrade
bool GetAutoUpgrade() const
Definition: UpgradeTarget.h:171
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::RDS::Model::UpgradeTarget::WithEngineVersion
UpgradeTarget & WithEngineVersion(const char *value)
Definition: UpgradeTarget.h:123
RDS_EXPORTS.h
Aws::RDS::Model::UpgradeTarget::EngineVersionHasBeenSet
bool EngineVersionHasBeenSet() const
Definition: UpgradeTarget.h:93
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::RDS::Model::UpgradeTarget::WithEngineVersion
UpgradeTarget & WithEngineVersion(Aws::String &&value)
Definition: UpgradeTarget.h:118
Aws::RDS::Model::UpgradeTarget::SetEngineVersion
void SetEngineVersion(const Aws::String &value)
Definition: UpgradeTarget.h:98
Aws::RDS::Model::UpgradeTarget::GetEngineVersion
const Aws::String & GetEngineVersion() const
Definition: UpgradeTarget.h:88
Aws::RDS::Model::UpgradeTarget::WithSupportsGlobalDatabases
UpgradeTarget & WithSupportsGlobalDatabases(bool value)
Definition: UpgradeTarget.h:310
Aws::RDS::Model::UpgradeTarget::SetEngine
void SetEngine(const Aws::String &value)
Definition: UpgradeTarget.h:57
Aws::RDS::Model::UpgradeTarget::WithEngine
UpgradeTarget & WithEngine(Aws::String &&value)
Definition: UpgradeTarget.h:77
Aws::RDS::Model::UpgradeTarget::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: UpgradeTarget.h:134
Aws::RDS::Model::UpgradeTarget::AddSupportedEngineModes
UpgradeTarget & AddSupportedEngineModes(const Aws::String &value)
Definition: UpgradeTarget.h:250
Aws::RDS::Model::UpgradeTarget::SetEngine
void SetEngine(Aws::String &&value)
Definition: UpgradeTarget.h:62
Aws::RDS::Model::UpgradeTarget::WithEngine
UpgradeTarget & WithEngine(const char *value)
Definition: UpgradeTarget.h:82
Aws::RDS::Model::UpgradeTarget::UpgradeTarget
UpgradeTarget()
Aws::RDS::Model::UpgradeTarget::GetSupportsGlobalDatabases
bool GetSupportsGlobalDatabases() const
Definition: UpgradeTarget.h:292
AWSString.h
Aws::RDS::Model::UpgradeTarget::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::RDS::Model::UpgradeTarget::SetSupportedEngineModes
void SetSupportedEngineModes(const Aws::Vector< Aws::String > &value)
Definition: UpgradeTarget.h:230
Aws::RDS::Model::UpgradeTarget::WithSupportedEngineModes
UpgradeTarget & WithSupportedEngineModes(Aws::Vector< Aws::String > &&value)
Definition: UpgradeTarget.h:245
Aws::RDS::Model::UpgradeTarget::WithDescription
UpgradeTarget & WithDescription(const Aws::String &value)
Definition: UpgradeTarget.h:154
AWS_RDS_API
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:28
Aws::RDS::Model::UpgradeTarget::GetSupportsParallelQuery
bool GetSupportsParallelQuery() const
Definition: UpgradeTarget.h:267
Aws::RDS::Model::UpgradeTarget
Definition: UpgradeTarget.h:34
Aws::RDS::Model::UpgradeTarget::SetEngine
void SetEngine(const char *value)
Definition: UpgradeTarget.h:67
Aws
Definition: AccessManagementClient.h:15
Aws::RDS::Model::UpgradeTarget::SupportsParallelQueryHasBeenSet
bool SupportsParallelQueryHasBeenSet() const
Definition: UpgradeTarget.h:273
Aws::RDS::Model::UpgradeTarget::SetEngineVersion
void SetEngineVersion(const char *value)
Definition: UpgradeTarget.h:108
Aws::RDS::Model::UpgradeTarget::AddSupportedEngineModes
UpgradeTarget & AddSupportedEngineModes(const char *value)
Definition: UpgradeTarget.h:260
Aws::RDS::Model::UpgradeTarget::SetIsMajorVersionUpgrade
void SetIsMajorVersionUpgrade(bool value)
Definition: UpgradeTarget.h:208
Aws::RDS::Model::UpgradeTarget::EngineHasBeenSet
bool EngineHasBeenSet() const
Definition: UpgradeTarget.h:52
Aws::RDS::Model::UpgradeTarget::operator=
UpgradeTarget & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::RDS::Model::UpgradeTarget::AutoUpgradeHasBeenSet
bool AutoUpgradeHasBeenSet() const
Definition: UpgradeTarget.h:177
Aws::RDS::Model::UpgradeTarget::SetAutoUpgrade
void SetAutoUpgrade(bool value)
Definition: UpgradeTarget.h:183
Aws::RDS::Model::UpgradeTarget::WithAutoUpgrade
UpgradeTarget & WithAutoUpgrade(bool value)
Definition: UpgradeTarget.h:189
Aws::RDS::Model::UpgradeTarget::GetEngine
const Aws::String & GetEngine() const
Definition: UpgradeTarget.h:47
Aws::RDS::Model::UpgradeTarget::WithIsMajorVersionUpgrade
UpgradeTarget & WithIsMajorVersionUpgrade(bool value)
Definition: UpgradeTarget.h:214
Aws::RDS::Model::UpgradeTarget::IsMajorVersionUpgradeHasBeenSet
bool IsMajorVersionUpgradeHasBeenSet() const
Definition: UpgradeTarget.h:202