AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
OptionSetting.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 <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace RDS
22{
23namespace Model
24{
25
36 {
37 public:
38 AWS_RDS_API OptionSetting() = default;
39 AWS_RDS_API OptionSetting(const Aws::Utils::Xml::XmlNode& xmlNode);
40 AWS_RDS_API OptionSetting& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
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& GetName() const { return m_name; }
51 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
52 template<typename NameT = Aws::String>
53 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
54 template<typename NameT = Aws::String>
55 OptionSetting& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
57
59
62 inline const Aws::String& GetValue() const { return m_value; }
63 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
64 template<typename ValueT = Aws::String>
65 void SetValue(ValueT&& value) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
66 template<typename ValueT = Aws::String>
67 OptionSetting& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(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 OptionSetting& WithDefaultValue(DefaultValueT&& value) { SetDefaultValue(std::forward<DefaultValueT>(value)); return *this;}
81
83
86 inline const Aws::String& GetDescription() const { return m_description; }
87 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
88 template<typename DescriptionT = Aws::String>
89 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
90 template<typename DescriptionT = Aws::String>
91 OptionSetting& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
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) { m_applyTypeHasBeenSet = true; m_applyType = std::forward<ApplyTypeT>(value); }
102 template<typename ApplyTypeT = Aws::String>
103 OptionSetting& WithApplyType(ApplyTypeT&& value) { SetApplyType(std::forward<ApplyTypeT>(value)); return *this;}
105
107
110 inline const Aws::String& GetDataType() const { return m_dataType; }
111 inline bool DataTypeHasBeenSet() const { return m_dataTypeHasBeenSet; }
112 template<typename DataTypeT = Aws::String>
113 void SetDataType(DataTypeT&& value) { m_dataTypeHasBeenSet = true; m_dataType = std::forward<DataTypeT>(value); }
114 template<typename DataTypeT = Aws::String>
115 OptionSetting& WithDataType(DataTypeT&& value) { SetDataType(std::forward<DataTypeT>(value)); return *this;}
117
119
122 inline const Aws::String& GetAllowedValues() const { return m_allowedValues; }
123 inline bool AllowedValuesHasBeenSet() const { return m_allowedValuesHasBeenSet; }
124 template<typename AllowedValuesT = Aws::String>
125 void SetAllowedValues(AllowedValuesT&& value) { m_allowedValuesHasBeenSet = true; m_allowedValues = std::forward<AllowedValuesT>(value); }
126 template<typename AllowedValuesT = Aws::String>
127 OptionSetting& WithAllowedValues(AllowedValuesT&& value) { SetAllowedValues(std::forward<AllowedValuesT>(value)); return *this;}
129
131
134 inline bool GetIsModifiable() const { return m_isModifiable; }
135 inline bool IsModifiableHasBeenSet() const { return m_isModifiableHasBeenSet; }
136 inline void SetIsModifiable(bool value) { m_isModifiableHasBeenSet = true; m_isModifiable = value; }
137 inline OptionSetting& WithIsModifiable(bool value) { SetIsModifiable(value); return *this;}
139
141
144 inline bool GetIsCollection() const { return m_isCollection; }
145 inline bool IsCollectionHasBeenSet() const { return m_isCollectionHasBeenSet; }
146 inline void SetIsCollection(bool value) { m_isCollectionHasBeenSet = true; m_isCollection = value; }
147 inline OptionSetting& WithIsCollection(bool value) { SetIsCollection(value); return *this;}
149 private:
150
151 Aws::String m_name;
152 bool m_nameHasBeenSet = false;
153
154 Aws::String m_value;
155 bool m_valueHasBeenSet = false;
156
157 Aws::String m_defaultValue;
158 bool m_defaultValueHasBeenSet = false;
159
160 Aws::String m_description;
161 bool m_descriptionHasBeenSet = false;
162
163 Aws::String m_applyType;
164 bool m_applyTypeHasBeenSet = false;
165
166 Aws::String m_dataType;
167 bool m_dataTypeHasBeenSet = false;
168
169 Aws::String m_allowedValues;
170 bool m_allowedValuesHasBeenSet = false;
171
172 bool m_isModifiable{false};
173 bool m_isModifiableHasBeenSet = false;
174
175 bool m_isCollection{false};
176 bool m_isCollectionHasBeenSet = false;
177 };
178
179} // namespace Model
180} // namespace RDS
181} // namespace Aws
void SetDataType(DataTypeT &&value)
void SetApplyType(ApplyTypeT &&value)
OptionSetting & WithDefaultValue(DefaultValueT &&value)
OptionSetting & WithDataType(DataTypeT &&value)
void SetName(NameT &&value)
const Aws::String & GetDefaultValue() const
OptionSetting & WithIsModifiable(bool value)
OptionSetting & WithValue(ValueT &&value)
void SetDescription(DescriptionT &&value)
AWS_RDS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
OptionSetting & WithApplyType(ApplyTypeT &&value)
OptionSetting & WithDescription(DescriptionT &&value)
const Aws::String & GetAllowedValues() const
const Aws::String & GetApplyType() const
AWS_RDS_API OptionSetting & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetValue() const
AWS_RDS_API OptionSetting()=default
const Aws::String & GetName() const
const Aws::String & GetDescription() const
void SetDefaultValue(DefaultValueT &&value)
AWS_RDS_API OptionSetting(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetValue(ValueT &&value)
OptionSetting & WithIsCollection(bool value)
void SetAllowedValues(AllowedValuesT &&value)
const Aws::String & GetDataType() const
OptionSetting & WithAllowedValues(AllowedValuesT &&value)
AWS_RDS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
OptionSetting & WithName(NameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream