AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
UpgradeTarget.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/neptune/Neptune_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace Neptune {
20namespace Model {
21
29 public:
30 AWS_NEPTUNE_API UpgradeTarget() = default;
31 AWS_NEPTUNE_API UpgradeTarget(const Aws::Utils::Xml::XmlNode& xmlNode);
32 AWS_NEPTUNE_API UpgradeTarget& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_NEPTUNE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_NEPTUNE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
41 inline const Aws::String& GetEngine() const { return m_engine; }
42 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
43 template <typename EngineT = Aws::String>
44 void SetEngine(EngineT&& value) {
45 m_engineHasBeenSet = true;
46 m_engine = std::forward<EngineT>(value);
47 }
48 template <typename EngineT = Aws::String>
49 UpgradeTarget& WithEngine(EngineT&& value) {
50 SetEngine(std::forward<EngineT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetEngineVersion() const { return m_engineVersion; }
60 inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; }
61 template <typename EngineVersionT = Aws::String>
62 void SetEngineVersion(EngineVersionT&& value) {
63 m_engineVersionHasBeenSet = true;
64 m_engineVersion = std::forward<EngineVersionT>(value);
65 }
66 template <typename EngineVersionT = Aws::String>
67 UpgradeTarget& WithEngineVersion(EngineVersionT&& value) {
68 SetEngineVersion(std::forward<EngineVersionT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetDescription() const { return m_description; }
78 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
79 template <typename DescriptionT = Aws::String>
80 void SetDescription(DescriptionT&& value) {
81 m_descriptionHasBeenSet = true;
82 m_description = std::forward<DescriptionT>(value);
83 }
84 template <typename DescriptionT = Aws::String>
85 UpgradeTarget& WithDescription(DescriptionT&& value) {
86 SetDescription(std::forward<DescriptionT>(value));
87 return *this;
88 }
90
92
96 inline bool GetAutoUpgrade() const { return m_autoUpgrade; }
97 inline bool AutoUpgradeHasBeenSet() const { return m_autoUpgradeHasBeenSet; }
98 inline void SetAutoUpgrade(bool value) {
99 m_autoUpgradeHasBeenSet = true;
100 m_autoUpgrade = value;
101 }
102 inline UpgradeTarget& WithAutoUpgrade(bool value) {
103 SetAutoUpgrade(value);
104 return *this;
105 }
107
109
113 inline bool GetIsMajorVersionUpgrade() const { return m_isMajorVersionUpgrade; }
114 inline bool IsMajorVersionUpgradeHasBeenSet() const { return m_isMajorVersionUpgradeHasBeenSet; }
115 inline void SetIsMajorVersionUpgrade(bool value) {
116 m_isMajorVersionUpgradeHasBeenSet = true;
117 m_isMajorVersionUpgrade = value;
118 }
121 return *this;
122 }
124
126
130 inline bool GetSupportsGlobalDatabases() const { return m_supportsGlobalDatabases; }
131 inline bool SupportsGlobalDatabasesHasBeenSet() const { return m_supportsGlobalDatabasesHasBeenSet; }
132 inline void SetSupportsGlobalDatabases(bool value) {
133 m_supportsGlobalDatabasesHasBeenSet = true;
134 m_supportsGlobalDatabases = value;
135 }
138 return *this;
139 }
141 private:
142 Aws::String m_engine;
143
144 Aws::String m_engineVersion;
145
146 Aws::String m_description;
147
148 bool m_autoUpgrade{false};
149
150 bool m_isMajorVersionUpgrade{false};
151
152 bool m_supportsGlobalDatabases{false};
153 bool m_engineHasBeenSet = false;
154 bool m_engineVersionHasBeenSet = false;
155 bool m_descriptionHasBeenSet = false;
156 bool m_autoUpgradeHasBeenSet = false;
157 bool m_isMajorVersionUpgradeHasBeenSet = false;
158 bool m_supportsGlobalDatabasesHasBeenSet = false;
159};
160
161} // namespace Model
162} // namespace Neptune
163} // namespace Aws
AWS_NEPTUNE_API UpgradeTarget & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
UpgradeTarget & WithIsMajorVersionUpgrade(bool value)
const Aws::String & GetDescription() const
UpgradeTarget & WithEngine(EngineT &&value)
UpgradeTarget & WithAutoUpgrade(bool value)
AWS_NEPTUNE_API UpgradeTarget(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_NEPTUNE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
UpgradeTarget & WithDescription(DescriptionT &&value)
void SetEngine(EngineT &&value)
void SetDescription(DescriptionT &&value)
UpgradeTarget & WithSupportsGlobalDatabases(bool value)
void SetSupportsGlobalDatabases(bool value)
const Aws::String & GetEngineVersion() const
UpgradeTarget & WithEngineVersion(EngineVersionT &&value)
void SetEngineVersion(EngineVersionT &&value)
AWS_NEPTUNE_API UpgradeTarget()=default
const Aws::String & GetEngine() const
AWS_NEPTUNE_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream