AWS SDK for C++

AWS SDK for C++ Version 1.11.747

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/docdb/DocDB_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace DocDB {
20namespace Model {
21
29 public:
30 AWS_DOCDB_API UpgradeTarget() = default;
31 AWS_DOCDB_API UpgradeTarget(const Aws::Utils::Xml::XmlNode& xmlNode);
32 AWS_DOCDB_API UpgradeTarget& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_DOCDB_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_DOCDB_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
97 inline bool GetAutoUpgrade() const { return m_autoUpgrade; }
98 inline bool AutoUpgradeHasBeenSet() const { return m_autoUpgradeHasBeenSet; }
99 inline void SetAutoUpgrade(bool value) {
100 m_autoUpgradeHasBeenSet = true;
101 m_autoUpgrade = value;
102 }
103 inline UpgradeTarget& WithAutoUpgrade(bool value) {
104 SetAutoUpgrade(value);
105 return *this;
106 }
108
110
114 inline bool GetIsMajorVersionUpgrade() const { return m_isMajorVersionUpgrade; }
115 inline bool IsMajorVersionUpgradeHasBeenSet() const { return m_isMajorVersionUpgradeHasBeenSet; }
116 inline void SetIsMajorVersionUpgrade(bool value) {
117 m_isMajorVersionUpgradeHasBeenSet = true;
118 m_isMajorVersionUpgrade = value;
119 }
122 return *this;
123 }
125 private:
126 Aws::String m_engine;
127
128 Aws::String m_engineVersion;
129
130 Aws::String m_description;
131
132 bool m_autoUpgrade{false};
133
134 bool m_isMajorVersionUpgrade{false};
135 bool m_engineHasBeenSet = false;
136 bool m_engineVersionHasBeenSet = false;
137 bool m_descriptionHasBeenSet = false;
138 bool m_autoUpgradeHasBeenSet = false;
139 bool m_isMajorVersionUpgradeHasBeenSet = false;
140};
141
142} // namespace Model
143} // namespace DocDB
144} // namespace Aws
UpgradeTarget & WithDescription(DescriptionT &&value)
UpgradeTarget & WithEngine(EngineT &&value)
AWS_DOCDB_API UpgradeTarget()=default
UpgradeTarget & WithIsMajorVersionUpgrade(bool value)
void SetDescription(DescriptionT &&value)
void SetEngineVersion(EngineVersionT &&value)
void SetIsMajorVersionUpgrade(bool value)
AWS_DOCDB_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_DOCDB_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetEngine() const
void SetEngine(EngineT &&value)
AWS_DOCDB_API UpgradeTarget(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetDescription() const
AWS_DOCDB_API UpgradeTarget & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetEngineVersion() const
UpgradeTarget & WithEngineVersion(EngineVersionT &&value)
UpgradeTarget & WithAutoUpgrade(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream