AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
Parameter.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/dax/DAX_EXPORTS.h>
10#include <aws/dax/model/ChangeType.h>
11#include <aws/dax/model/IsModifiable.h>
12#include <aws/dax/model/NodeTypeSpecificValue.h>
13#include <aws/dax/model/ParameterType.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace DAX {
25namespace Model {
26
33class Parameter {
34 public:
35 AWS_DAX_API Parameter() = default;
36 AWS_DAX_API Parameter(Aws::Utils::Json::JsonView jsonValue);
39
41
44 inline const Aws::String& GetParameterName() const { return m_parameterName; }
45 inline bool ParameterNameHasBeenSet() const { return m_parameterNameHasBeenSet; }
46 template <typename ParameterNameT = Aws::String>
47 void SetParameterName(ParameterNameT&& value) {
48 m_parameterNameHasBeenSet = true;
49 m_parameterName = std::forward<ParameterNameT>(value);
50 }
51 template <typename ParameterNameT = Aws::String>
52 Parameter& WithParameterName(ParameterNameT&& value) {
53 SetParameterName(std::forward<ParameterNameT>(value));
54 return *this;
55 }
57
59
63 inline ParameterType GetParameterType() const { return m_parameterType; }
64 inline bool ParameterTypeHasBeenSet() const { return m_parameterTypeHasBeenSet; }
65 inline void SetParameterType(ParameterType value) {
66 m_parameterTypeHasBeenSet = true;
67 m_parameterType = value;
68 }
70 SetParameterType(value);
71 return *this;
72 }
74
76
79 inline const Aws::String& GetParameterValue() const { return m_parameterValue; }
80 inline bool ParameterValueHasBeenSet() const { return m_parameterValueHasBeenSet; }
81 template <typename ParameterValueT = Aws::String>
82 void SetParameterValue(ParameterValueT&& value) {
83 m_parameterValueHasBeenSet = true;
84 m_parameterValue = std::forward<ParameterValueT>(value);
85 }
86 template <typename ParameterValueT = Aws::String>
87 Parameter& WithParameterValue(ParameterValueT&& value) {
88 SetParameterValue(std::forward<ParameterValueT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::Vector<NodeTypeSpecificValue>& GetNodeTypeSpecificValues() const { return m_nodeTypeSpecificValues; }
98 inline bool NodeTypeSpecificValuesHasBeenSet() const { return m_nodeTypeSpecificValuesHasBeenSet; }
99 template <typename NodeTypeSpecificValuesT = Aws::Vector<NodeTypeSpecificValue>>
100 void SetNodeTypeSpecificValues(NodeTypeSpecificValuesT&& value) {
101 m_nodeTypeSpecificValuesHasBeenSet = true;
102 m_nodeTypeSpecificValues = std::forward<NodeTypeSpecificValuesT>(value);
103 }
104 template <typename NodeTypeSpecificValuesT = Aws::Vector<NodeTypeSpecificValue>>
105 Parameter& WithNodeTypeSpecificValues(NodeTypeSpecificValuesT&& value) {
106 SetNodeTypeSpecificValues(std::forward<NodeTypeSpecificValuesT>(value));
107 return *this;
108 }
109 template <typename NodeTypeSpecificValuesT = NodeTypeSpecificValue>
110 Parameter& AddNodeTypeSpecificValues(NodeTypeSpecificValuesT&& value) {
111 m_nodeTypeSpecificValuesHasBeenSet = true;
112 m_nodeTypeSpecificValues.emplace_back(std::forward<NodeTypeSpecificValuesT>(value));
113 return *this;
114 }
116
118
121 inline const Aws::String& GetDescription() const { return m_description; }
122 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
123 template <typename DescriptionT = Aws::String>
124 void SetDescription(DescriptionT&& value) {
125 m_descriptionHasBeenSet = true;
126 m_description = std::forward<DescriptionT>(value);
127 }
128 template <typename DescriptionT = Aws::String>
129 Parameter& WithDescription(DescriptionT&& value) {
130 SetDescription(std::forward<DescriptionT>(value));
131 return *this;
132 }
134
136
140 inline const Aws::String& GetSource() const { return m_source; }
141 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
142 template <typename SourceT = Aws::String>
143 void SetSource(SourceT&& value) {
144 m_sourceHasBeenSet = true;
145 m_source = std::forward<SourceT>(value);
146 }
147 template <typename SourceT = Aws::String>
148 Parameter& WithSource(SourceT&& value) {
149 SetSource(std::forward<SourceT>(value));
150 return *this;
151 }
153
155
158 inline const Aws::String& GetDataType() const { return m_dataType; }
159 inline bool DataTypeHasBeenSet() const { return m_dataTypeHasBeenSet; }
160 template <typename DataTypeT = Aws::String>
161 void SetDataType(DataTypeT&& value) {
162 m_dataTypeHasBeenSet = true;
163 m_dataType = std::forward<DataTypeT>(value);
164 }
165 template <typename DataTypeT = Aws::String>
166 Parameter& WithDataType(DataTypeT&& value) {
167 SetDataType(std::forward<DataTypeT>(value));
168 return *this;
169 }
171
173
176 inline const Aws::String& GetAllowedValues() const { return m_allowedValues; }
177 inline bool AllowedValuesHasBeenSet() const { return m_allowedValuesHasBeenSet; }
178 template <typename AllowedValuesT = Aws::String>
179 void SetAllowedValues(AllowedValuesT&& value) {
180 m_allowedValuesHasBeenSet = true;
181 m_allowedValues = std::forward<AllowedValuesT>(value);
182 }
183 template <typename AllowedValuesT = Aws::String>
184 Parameter& WithAllowedValues(AllowedValuesT&& value) {
185 SetAllowedValues(std::forward<AllowedValuesT>(value));
186 return *this;
187 }
189
191
194 inline IsModifiable GetIsModifiable() const { return m_isModifiable; }
195 inline bool IsModifiableHasBeenSet() const { return m_isModifiableHasBeenSet; }
196 inline void SetIsModifiable(IsModifiable value) {
197 m_isModifiableHasBeenSet = true;
198 m_isModifiable = value;
199 }
201 SetIsModifiable(value);
202 return *this;
203 }
205
207
212 inline ChangeType GetChangeType() const { return m_changeType; }
213 inline bool ChangeTypeHasBeenSet() const { return m_changeTypeHasBeenSet; }
214 inline void SetChangeType(ChangeType value) {
215 m_changeTypeHasBeenSet = true;
216 m_changeType = value;
217 }
219 SetChangeType(value);
220 return *this;
221 }
223 private:
224 Aws::String m_parameterName;
225
226 ParameterType m_parameterType{ParameterType::NOT_SET};
227
228 Aws::String m_parameterValue;
229
230 Aws::Vector<NodeTypeSpecificValue> m_nodeTypeSpecificValues;
231
232 Aws::String m_description;
233
234 Aws::String m_source;
235
236 Aws::String m_dataType;
237
238 Aws::String m_allowedValues;
239
240 IsModifiable m_isModifiable{IsModifiable::NOT_SET};
241
242 ChangeType m_changeType{ChangeType::NOT_SET};
243 bool m_parameterNameHasBeenSet = false;
244 bool m_parameterTypeHasBeenSet = false;
245 bool m_parameterValueHasBeenSet = false;
246 bool m_nodeTypeSpecificValuesHasBeenSet = false;
247 bool m_descriptionHasBeenSet = false;
248 bool m_sourceHasBeenSet = false;
249 bool m_dataTypeHasBeenSet = false;
250 bool m_allowedValuesHasBeenSet = false;
251 bool m_isModifiableHasBeenSet = false;
252 bool m_changeTypeHasBeenSet = false;
253};
254
255} // namespace Model
256} // namespace DAX
257} // namespace Aws
Parameter & WithAllowedValues(AllowedValuesT &&value)
Definition Parameter.h:184
bool DescriptionHasBeenSet() const
Definition Parameter.h:122
Parameter & WithChangeType(ChangeType value)
Definition Parameter.h:218
void SetSource(SourceT &&value)
Definition Parameter.h:143
void SetAllowedValues(AllowedValuesT &&value)
Definition Parameter.h:179
void SetChangeType(ChangeType value)
Definition Parameter.h:214
const Aws::Vector< NodeTypeSpecificValue > & GetNodeTypeSpecificValues() const
Definition Parameter.h:97
Parameter & WithParameterType(ParameterType value)
Definition Parameter.h:69
Parameter & AddNodeTypeSpecificValues(NodeTypeSpecificValuesT &&value)
Definition Parameter.h:110
Parameter & WithParameterName(ParameterNameT &&value)
Definition Parameter.h:52
const Aws::String & GetAllowedValues() const
Definition Parameter.h:176
void SetParameterName(ParameterNameT &&value)
Definition Parameter.h:47
const Aws::String & GetSource() const
Definition Parameter.h:140
Parameter & WithNodeTypeSpecificValues(NodeTypeSpecificValuesT &&value)
Definition Parameter.h:105
IsModifiable GetIsModifiable() const
Definition Parameter.h:194
bool SourceHasBeenSet() const
Definition Parameter.h:141
Parameter & WithIsModifiable(IsModifiable value)
Definition Parameter.h:200
AWS_DAX_API Parameter()=default
const Aws::String & GetParameterValue() const
Definition Parameter.h:79
void SetParameterValue(ParameterValueT &&value)
Definition Parameter.h:82
AWS_DAX_API Parameter & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DAX_API Parameter(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetParameterName() const
Definition Parameter.h:44
void SetDescription(DescriptionT &&value)
Definition Parameter.h:124
ChangeType GetChangeType() const
Definition Parameter.h:212
void SetDataType(DataTypeT &&value)
Definition Parameter.h:161
bool IsModifiableHasBeenSet() const
Definition Parameter.h:195
void SetParameterType(ParameterType value)
Definition Parameter.h:65
void SetNodeTypeSpecificValues(NodeTypeSpecificValuesT &&value)
Definition Parameter.h:100
bool DataTypeHasBeenSet() const
Definition Parameter.h:159
Parameter & WithSource(SourceT &&value)
Definition Parameter.h:148
bool AllowedValuesHasBeenSet() const
Definition Parameter.h:177
ParameterType GetParameterType() const
Definition Parameter.h:63
bool NodeTypeSpecificValuesHasBeenSet() const
Definition Parameter.h:98
void SetIsModifiable(IsModifiable value)
Definition Parameter.h:196
const Aws::String & GetDescription() const
Definition Parameter.h:121
const Aws::String & GetDataType() const
Definition Parameter.h:158
bool ParameterTypeHasBeenSet() const
Definition Parameter.h:64
Parameter & WithDescription(DescriptionT &&value)
Definition Parameter.h:129
bool ChangeTypeHasBeenSet() const
Definition Parameter.h:213
bool ParameterNameHasBeenSet() const
Definition Parameter.h:45
bool ParameterValueHasBeenSet() const
Definition Parameter.h:80
Parameter & WithParameterValue(ParameterValueT &&value)
Definition Parameter.h:87
Parameter & WithDataType(DataTypeT &&value)
Definition Parameter.h:166
AWS_DAX_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue