AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
OptionGroupOptionSetting.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/rds/RDS_EXPORTS.h>
11#include <aws/rds/model/MinimumEngineVersionPerAllowedValue.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace RDS {
22namespace Model {
23
32 public:
33 AWS_RDS_API OptionGroupOptionSetting() = default;
36
37 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
38 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
39
41
44 inline const Aws::String& GetSettingName() const { return m_settingName; }
45 inline bool SettingNameHasBeenSet() const { return m_settingNameHasBeenSet; }
46 template <typename SettingNameT = Aws::String>
47 void SetSettingName(SettingNameT&& value) {
48 m_settingNameHasBeenSet = true;
49 m_settingName = std::forward<SettingNameT>(value);
50 }
51 template <typename SettingNameT = Aws::String>
53 SetSettingName(std::forward<SettingNameT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetSettingDescription() const { return m_settingDescription; }
63 inline bool SettingDescriptionHasBeenSet() const { return m_settingDescriptionHasBeenSet; }
64 template <typename SettingDescriptionT = Aws::String>
65 void SetSettingDescription(SettingDescriptionT&& value) {
66 m_settingDescriptionHasBeenSet = true;
67 m_settingDescription = std::forward<SettingDescriptionT>(value);
68 }
69 template <typename SettingDescriptionT = Aws::String>
70 OptionGroupOptionSetting& WithSettingDescription(SettingDescriptionT&& value) {
71 SetSettingDescription(std::forward<SettingDescriptionT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetDefaultValue() const { return m_defaultValue; }
81 inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
82 template <typename DefaultValueT = Aws::String>
83 void SetDefaultValue(DefaultValueT&& value) {
84 m_defaultValueHasBeenSet = true;
85 m_defaultValue = std::forward<DefaultValueT>(value);
86 }
87 template <typename DefaultValueT = Aws::String>
89 SetDefaultValue(std::forward<DefaultValueT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetApplyType() const { return m_applyType; }
99 inline bool ApplyTypeHasBeenSet() const { return m_applyTypeHasBeenSet; }
100 template <typename ApplyTypeT = Aws::String>
101 void SetApplyType(ApplyTypeT&& value) {
102 m_applyTypeHasBeenSet = true;
103 m_applyType = std::forward<ApplyTypeT>(value);
104 }
105 template <typename ApplyTypeT = Aws::String>
107 SetApplyType(std::forward<ApplyTypeT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::String& GetAllowedValues() const { return m_allowedValues; }
117 inline bool AllowedValuesHasBeenSet() const { return m_allowedValuesHasBeenSet; }
118 template <typename AllowedValuesT = Aws::String>
119 void SetAllowedValues(AllowedValuesT&& value) {
120 m_allowedValuesHasBeenSet = true;
121 m_allowedValues = std::forward<AllowedValuesT>(value);
122 }
123 template <typename AllowedValuesT = Aws::String>
125 SetAllowedValues(std::forward<AllowedValuesT>(value));
126 return *this;
127 }
129
131
135 inline bool GetIsModifiable() const { return m_isModifiable; }
136 inline bool IsModifiableHasBeenSet() const { return m_isModifiableHasBeenSet; }
137 inline void SetIsModifiable(bool value) {
138 m_isModifiableHasBeenSet = true;
139 m_isModifiable = value;
140 }
142 SetIsModifiable(value);
143 return *this;
144 }
146
148
152 inline bool GetIsRequired() const { return m_isRequired; }
153 inline bool IsRequiredHasBeenSet() const { return m_isRequiredHasBeenSet; }
154 inline void SetIsRequired(bool value) {
155 m_isRequiredHasBeenSet = true;
156 m_isRequired = value;
157 }
159 SetIsRequired(value);
160 return *this;
161 }
163
165
170 return m_minimumEngineVersionPerAllowedValue;
171 }
172 inline bool MinimumEngineVersionPerAllowedValueHasBeenSet() const { return m_minimumEngineVersionPerAllowedValueHasBeenSet; }
173 template <typename MinimumEngineVersionPerAllowedValueT = Aws::Vector<MinimumEngineVersionPerAllowedValue>>
174 void SetMinimumEngineVersionPerAllowedValue(MinimumEngineVersionPerAllowedValueT&& value) {
175 m_minimumEngineVersionPerAllowedValueHasBeenSet = true;
176 m_minimumEngineVersionPerAllowedValue = std::forward<MinimumEngineVersionPerAllowedValueT>(value);
177 }
178 template <typename MinimumEngineVersionPerAllowedValueT = Aws::Vector<MinimumEngineVersionPerAllowedValue>>
179 OptionGroupOptionSetting& WithMinimumEngineVersionPerAllowedValue(MinimumEngineVersionPerAllowedValueT&& value) {
180 SetMinimumEngineVersionPerAllowedValue(std::forward<MinimumEngineVersionPerAllowedValueT>(value));
181 return *this;
182 }
183 template <typename MinimumEngineVersionPerAllowedValueT = MinimumEngineVersionPerAllowedValue>
184 OptionGroupOptionSetting& AddMinimumEngineVersionPerAllowedValue(MinimumEngineVersionPerAllowedValueT&& value) {
185 m_minimumEngineVersionPerAllowedValueHasBeenSet = true;
186 m_minimumEngineVersionPerAllowedValue.emplace_back(std::forward<MinimumEngineVersionPerAllowedValueT>(value));
187 return *this;
188 }
190 private:
191 Aws::String m_settingName;
192
193 Aws::String m_settingDescription;
194
195 Aws::String m_defaultValue;
196
197 Aws::String m_applyType;
198
199 Aws::String m_allowedValues;
200
201 bool m_isModifiable{false};
202
203 bool m_isRequired{false};
204
205 Aws::Vector<MinimumEngineVersionPerAllowedValue> m_minimumEngineVersionPerAllowedValue;
206 bool m_settingNameHasBeenSet = false;
207 bool m_settingDescriptionHasBeenSet = false;
208 bool m_defaultValueHasBeenSet = false;
209 bool m_applyTypeHasBeenSet = false;
210 bool m_allowedValuesHasBeenSet = false;
211 bool m_isModifiableHasBeenSet = false;
212 bool m_isRequiredHasBeenSet = false;
213 bool m_minimumEngineVersionPerAllowedValueHasBeenSet = false;
214};
215
216} // namespace Model
217} // namespace RDS
218} // namespace Aws
OptionGroupOptionSetting & WithSettingDescription(SettingDescriptionT &&value)
const Aws::Vector< MinimumEngineVersionPerAllowedValue > & GetMinimumEngineVersionPerAllowedValue() const
OptionGroupOptionSetting & WithAllowedValues(AllowedValuesT &&value)
OptionGroupOptionSetting & WithApplyType(ApplyTypeT &&value)
OptionGroupOptionSetting & WithIsModifiable(bool value)
AWS_RDS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
OptionGroupOptionSetting & WithIsRequired(bool value)
AWS_RDS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
OptionGroupOptionSetting & WithDefaultValue(DefaultValueT &&value)
OptionGroupOptionSetting & WithMinimumEngineVersionPerAllowedValue(MinimumEngineVersionPerAllowedValueT &&value)
void SetMinimumEngineVersionPerAllowedValue(MinimumEngineVersionPerAllowedValueT &&value)
AWS_RDS_API OptionGroupOptionSetting()=default
AWS_RDS_API OptionGroupOptionSetting & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
OptionGroupOptionSetting & WithSettingName(SettingNameT &&value)
AWS_RDS_API OptionGroupOptionSetting(const Aws::Utils::Xml::XmlNode &xmlNode)
OptionGroupOptionSetting & AddMinimumEngineVersionPerAllowedValue(MinimumEngineVersionPerAllowedValueT &&value)
void SetSettingDescription(SettingDescriptionT &&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