AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
OptionGroupOptionSetting.h
1
6#pragma once
7#include <aws/rds/RDS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/rds/model/MinimumEngineVersionPerAllowedValue.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace RDS
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_RDS_API OptionGroupOptionSetting() = default;
41
42 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
50 inline const Aws::String& GetSettingName() const { return m_settingName; }
51 inline bool SettingNameHasBeenSet() const { return m_settingNameHasBeenSet; }
52 template<typename SettingNameT = Aws::String>
53 void SetSettingName(SettingNameT&& value) { m_settingNameHasBeenSet = true; m_settingName = std::forward<SettingNameT>(value); }
54 template<typename SettingNameT = Aws::String>
55 OptionGroupOptionSetting& WithSettingName(SettingNameT&& value) { SetSettingName(std::forward<SettingNameT>(value)); return *this;}
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) { m_settingDescriptionHasBeenSet = true; m_settingDescription = std::forward<SettingDescriptionT>(value); }
66 template<typename SettingDescriptionT = Aws::String>
67 OptionGroupOptionSetting& WithSettingDescription(SettingDescriptionT&& value) { SetSettingDescription(std::forward<SettingDescriptionT>(value)); return *this;}
69
71
74 inline const Aws::String& GetDefaultValue() const { return m_defaultValue; }
75 inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
76 template<typename DefaultValueT = Aws::String>
77 void SetDefaultValue(DefaultValueT&& value) { m_defaultValueHasBeenSet = true; m_defaultValue = std::forward<DefaultValueT>(value); }
78 template<typename DefaultValueT = Aws::String>
79 OptionGroupOptionSetting& WithDefaultValue(DefaultValueT&& value) { SetDefaultValue(std::forward<DefaultValueT>(value)); return *this;}
81
83
86 inline const Aws::String& GetApplyType() const { return m_applyType; }
87 inline bool ApplyTypeHasBeenSet() const { return m_applyTypeHasBeenSet; }
88 template<typename ApplyTypeT = Aws::String>
89 void SetApplyType(ApplyTypeT&& value) { m_applyTypeHasBeenSet = true; m_applyType = std::forward<ApplyTypeT>(value); }
90 template<typename ApplyTypeT = Aws::String>
91 OptionGroupOptionSetting& WithApplyType(ApplyTypeT&& value) { SetApplyType(std::forward<ApplyTypeT>(value)); return *this;}
93
95
98 inline const Aws::String& GetAllowedValues() const { return m_allowedValues; }
99 inline bool AllowedValuesHasBeenSet() const { return m_allowedValuesHasBeenSet; }
100 template<typename AllowedValuesT = Aws::String>
101 void SetAllowedValues(AllowedValuesT&& value) { m_allowedValuesHasBeenSet = true; m_allowedValues = std::forward<AllowedValuesT>(value); }
102 template<typename AllowedValuesT = Aws::String>
103 OptionGroupOptionSetting& WithAllowedValues(AllowedValuesT&& value) { SetAllowedValues(std::forward<AllowedValuesT>(value)); return *this;}
105
107
111 inline bool GetIsModifiable() const { return m_isModifiable; }
112 inline bool IsModifiableHasBeenSet() const { return m_isModifiableHasBeenSet; }
113 inline void SetIsModifiable(bool value) { m_isModifiableHasBeenSet = true; m_isModifiable = value; }
114 inline OptionGroupOptionSetting& WithIsModifiable(bool value) { SetIsModifiable(value); return *this;}
116
118
122 inline bool GetIsRequired() const { return m_isRequired; }
123 inline bool IsRequiredHasBeenSet() const { return m_isRequiredHasBeenSet; }
124 inline void SetIsRequired(bool value) { m_isRequiredHasBeenSet = true; m_isRequired = value; }
125 inline OptionGroupOptionSetting& WithIsRequired(bool value) { SetIsRequired(value); return *this;}
127
129
133 inline const Aws::Vector<MinimumEngineVersionPerAllowedValue>& GetMinimumEngineVersionPerAllowedValue() const { return m_minimumEngineVersionPerAllowedValue; }
134 inline bool MinimumEngineVersionPerAllowedValueHasBeenSet() const { return m_minimumEngineVersionPerAllowedValueHasBeenSet; }
135 template<typename MinimumEngineVersionPerAllowedValueT = Aws::Vector<MinimumEngineVersionPerAllowedValue>>
136 void SetMinimumEngineVersionPerAllowedValue(MinimumEngineVersionPerAllowedValueT&& value) { m_minimumEngineVersionPerAllowedValueHasBeenSet = true; m_minimumEngineVersionPerAllowedValue = std::forward<MinimumEngineVersionPerAllowedValueT>(value); }
137 template<typename MinimumEngineVersionPerAllowedValueT = Aws::Vector<MinimumEngineVersionPerAllowedValue>>
138 OptionGroupOptionSetting& WithMinimumEngineVersionPerAllowedValue(MinimumEngineVersionPerAllowedValueT&& value) { SetMinimumEngineVersionPerAllowedValue(std::forward<MinimumEngineVersionPerAllowedValueT>(value)); return *this;}
139 template<typename MinimumEngineVersionPerAllowedValueT = MinimumEngineVersionPerAllowedValue>
140 OptionGroupOptionSetting& AddMinimumEngineVersionPerAllowedValue(MinimumEngineVersionPerAllowedValueT&& value) { m_minimumEngineVersionPerAllowedValueHasBeenSet = true; m_minimumEngineVersionPerAllowedValue.emplace_back(std::forward<MinimumEngineVersionPerAllowedValueT>(value)); return *this; }
142 private:
143
144 Aws::String m_settingName;
145 bool m_settingNameHasBeenSet = false;
146
147 Aws::String m_settingDescription;
148 bool m_settingDescriptionHasBeenSet = false;
149
150 Aws::String m_defaultValue;
151 bool m_defaultValueHasBeenSet = false;
152
153 Aws::String m_applyType;
154 bool m_applyTypeHasBeenSet = false;
155
156 Aws::String m_allowedValues;
157 bool m_allowedValuesHasBeenSet = false;
158
159 bool m_isModifiable{false};
160 bool m_isModifiableHasBeenSet = false;
161
162 bool m_isRequired{false};
163 bool m_isRequiredHasBeenSet = false;
164
165 Aws::Vector<MinimumEngineVersionPerAllowedValue> m_minimumEngineVersionPerAllowedValue;
166 bool m_minimumEngineVersionPerAllowedValueHasBeenSet = false;
167 };
168
169} // namespace Model
170} // namespace RDS
171} // 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