AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpgradeTarget.h
1
6#pragma once
7#include <aws/docdb/DocDB_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace DocDB
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_DOCDB_API UpgradeTarget();
36 AWS_DOCDB_API UpgradeTarget(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_DOCDB_API UpgradeTarget& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_DOCDB_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_DOCDB_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
47 inline const Aws::String& GetEngine() const{ return m_engine; }
48 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
49 inline void SetEngine(const Aws::String& value) { m_engineHasBeenSet = true; m_engine = value; }
50 inline void SetEngine(Aws::String&& value) { m_engineHasBeenSet = true; m_engine = std::move(value); }
51 inline void SetEngine(const char* value) { m_engineHasBeenSet = true; m_engine.assign(value); }
52 inline UpgradeTarget& WithEngine(const Aws::String& value) { SetEngine(value); return *this;}
53 inline UpgradeTarget& WithEngine(Aws::String&& value) { SetEngine(std::move(value)); return *this;}
54 inline UpgradeTarget& WithEngine(const char* value) { SetEngine(value); return *this;}
56
58
61 inline const Aws::String& GetEngineVersion() const{ return m_engineVersion; }
62 inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; }
63 inline void SetEngineVersion(const Aws::String& value) { m_engineVersionHasBeenSet = true; m_engineVersion = value; }
64 inline void SetEngineVersion(Aws::String&& value) { m_engineVersionHasBeenSet = true; m_engineVersion = std::move(value); }
65 inline void SetEngineVersion(const char* value) { m_engineVersionHasBeenSet = true; m_engineVersion.assign(value); }
66 inline UpgradeTarget& WithEngineVersion(const Aws::String& value) { SetEngineVersion(value); return *this;}
67 inline UpgradeTarget& WithEngineVersion(Aws::String&& value) { SetEngineVersion(std::move(value)); return *this;}
68 inline UpgradeTarget& WithEngineVersion(const char* value) { SetEngineVersion(value); return *this;}
70
72
75 inline const Aws::String& GetDescription() const{ return m_description; }
76 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
77 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
78 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
79 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
80 inline UpgradeTarget& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
81 inline UpgradeTarget& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
82 inline UpgradeTarget& WithDescription(const char* value) { SetDescription(value); return *this;}
84
86
91 inline bool GetAutoUpgrade() const{ return m_autoUpgrade; }
92 inline bool AutoUpgradeHasBeenSet() const { return m_autoUpgradeHasBeenSet; }
93 inline void SetAutoUpgrade(bool value) { m_autoUpgradeHasBeenSet = true; m_autoUpgrade = value; }
94 inline UpgradeTarget& WithAutoUpgrade(bool value) { SetAutoUpgrade(value); return *this;}
96
98
102 inline bool GetIsMajorVersionUpgrade() const{ return m_isMajorVersionUpgrade; }
103 inline bool IsMajorVersionUpgradeHasBeenSet() const { return m_isMajorVersionUpgradeHasBeenSet; }
104 inline void SetIsMajorVersionUpgrade(bool value) { m_isMajorVersionUpgradeHasBeenSet = true; m_isMajorVersionUpgrade = value; }
105 inline UpgradeTarget& WithIsMajorVersionUpgrade(bool value) { SetIsMajorVersionUpgrade(value); return *this;}
107 private:
108
109 Aws::String m_engine;
110 bool m_engineHasBeenSet = false;
111
112 Aws::String m_engineVersion;
113 bool m_engineVersionHasBeenSet = false;
114
115 Aws::String m_description;
116 bool m_descriptionHasBeenSet = false;
117
118 bool m_autoUpgrade;
119 bool m_autoUpgradeHasBeenSet = false;
120
121 bool m_isMajorVersionUpgrade;
122 bool m_isMajorVersionUpgradeHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace DocDB
127} // namespace Aws
void SetDescription(Aws::String &&value)
UpgradeTarget & WithEngine(const char *value)
UpgradeTarget & WithEngineVersion(Aws::String &&value)
UpgradeTarget & WithIsMajorVersionUpgrade(bool value)
UpgradeTarget & WithDescription(const char *value)
void SetIsMajorVersionUpgrade(bool value)
AWS_DOCDB_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetDescription(const Aws::String &value)
AWS_DOCDB_API void OutputToStream(Aws::OStream &oStream, const char *location) const
UpgradeTarget & WithEngineVersion(const Aws::String &value)
void SetEngine(Aws::String &&value)
const Aws::String & GetEngine() const
UpgradeTarget & WithDescription(Aws::String &&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)
void SetEngineVersion(const Aws::String &value)
const Aws::String & GetEngineVersion() const
UpgradeTarget & WithDescription(const Aws::String &value)
void SetEngineVersion(const char *value)
void SetEngine(const Aws::String &value)
void SetDescription(const char *value)
void SetEngineVersion(Aws::String &&value)
UpgradeTarget & WithEngineVersion(const char *value)
UpgradeTarget & WithEngine(Aws::String &&value)
void SetEngine(const char *value)
UpgradeTarget & WithAutoUpgrade(bool value)
UpgradeTarget & WithEngine(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream