AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
FieldInputConfig.h
1
6#pragma once
7#include <aws/amplifyuibuilder/AmplifyUIBuilder_EXPORTS.h>
8#include <aws/amplifyuibuilder/model/FileUploaderFieldConfig.h>
9#include <aws/amplifyuibuilder/model/ValueMappings.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace AmplifyUIBuilder {
22namespace Model {
23
31 public:
32 AWS_AMPLIFYUIBUILDER_API FieldInputConfig() = default;
33 AWS_AMPLIFYUIBUILDER_API FieldInputConfig(Aws::Utils::Json::JsonView jsonValue);
34 AWS_AMPLIFYUIBUILDER_API FieldInputConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetType() const { return m_type; }
42 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
43 template <typename TypeT = Aws::String>
44 void SetType(TypeT&& value) {
45 m_typeHasBeenSet = true;
46 m_type = std::forward<TypeT>(value);
47 }
48 template <typename TypeT = Aws::String>
49 FieldInputConfig& WithType(TypeT&& value) {
50 SetType(std::forward<TypeT>(value));
51 return *this;
52 }
54
56
59 inline bool GetRequired() const { return m_required; }
60 inline bool RequiredHasBeenSet() const { return m_requiredHasBeenSet; }
61 inline void SetRequired(bool value) {
62 m_requiredHasBeenSet = true;
63 m_required = value;
64 }
65 inline FieldInputConfig& WithRequired(bool value) {
66 SetRequired(value);
67 return *this;
68 }
70
72
75 inline bool GetReadOnly() const { return m_readOnly; }
76 inline bool ReadOnlyHasBeenSet() const { return m_readOnlyHasBeenSet; }
77 inline void SetReadOnly(bool value) {
78 m_readOnlyHasBeenSet = true;
79 m_readOnly = value;
80 }
81 inline FieldInputConfig& WithReadOnly(bool value) {
82 SetReadOnly(value);
83 return *this;
84 }
86
88
91 inline const Aws::String& GetPlaceholder() const { return m_placeholder; }
92 inline bool PlaceholderHasBeenSet() const { return m_placeholderHasBeenSet; }
93 template <typename PlaceholderT = Aws::String>
94 void SetPlaceholder(PlaceholderT&& value) {
95 m_placeholderHasBeenSet = true;
96 m_placeholder = std::forward<PlaceholderT>(value);
97 }
98 template <typename PlaceholderT = Aws::String>
99 FieldInputConfig& WithPlaceholder(PlaceholderT&& value) {
100 SetPlaceholder(std::forward<PlaceholderT>(value));
101 return *this;
102 }
104
106
109 inline const Aws::String& GetDefaultValue() const { return m_defaultValue; }
110 inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
111 template <typename DefaultValueT = Aws::String>
112 void SetDefaultValue(DefaultValueT&& value) {
113 m_defaultValueHasBeenSet = true;
114 m_defaultValue = std::forward<DefaultValueT>(value);
115 }
116 template <typename DefaultValueT = Aws::String>
117 FieldInputConfig& WithDefaultValue(DefaultValueT&& value) {
118 SetDefaultValue(std::forward<DefaultValueT>(value));
119 return *this;
120 }
122
124
127 inline const Aws::String& GetDescriptiveText() const { return m_descriptiveText; }
128 inline bool DescriptiveTextHasBeenSet() const { return m_descriptiveTextHasBeenSet; }
129 template <typename DescriptiveTextT = Aws::String>
130 void SetDescriptiveText(DescriptiveTextT&& value) {
131 m_descriptiveTextHasBeenSet = true;
132 m_descriptiveText = std::forward<DescriptiveTextT>(value);
133 }
134 template <typename DescriptiveTextT = Aws::String>
135 FieldInputConfig& WithDescriptiveText(DescriptiveTextT&& value) {
136 SetDescriptiveText(std::forward<DescriptiveTextT>(value));
137 return *this;
138 }
140
142
145 inline bool GetDefaultChecked() const { return m_defaultChecked; }
146 inline bool DefaultCheckedHasBeenSet() const { return m_defaultCheckedHasBeenSet; }
147 inline void SetDefaultChecked(bool value) {
148 m_defaultCheckedHasBeenSet = true;
149 m_defaultChecked = value;
150 }
152 SetDefaultChecked(value);
153 return *this;
154 }
156
158
161 inline const Aws::String& GetDefaultCountryCode() const { return m_defaultCountryCode; }
162 inline bool DefaultCountryCodeHasBeenSet() const { return m_defaultCountryCodeHasBeenSet; }
163 template <typename DefaultCountryCodeT = Aws::String>
164 void SetDefaultCountryCode(DefaultCountryCodeT&& value) {
165 m_defaultCountryCodeHasBeenSet = true;
166 m_defaultCountryCode = std::forward<DefaultCountryCodeT>(value);
167 }
168 template <typename DefaultCountryCodeT = Aws::String>
169 FieldInputConfig& WithDefaultCountryCode(DefaultCountryCodeT&& value) {
170 SetDefaultCountryCode(std::forward<DefaultCountryCodeT>(value));
171 return *this;
172 }
174
176
180 inline const ValueMappings& GetValueMappings() const { return m_valueMappings; }
181 inline bool ValueMappingsHasBeenSet() const { return m_valueMappingsHasBeenSet; }
182 template <typename ValueMappingsT = ValueMappings>
183 void SetValueMappings(ValueMappingsT&& value) {
184 m_valueMappingsHasBeenSet = true;
185 m_valueMappings = std::forward<ValueMappingsT>(value);
186 }
187 template <typename ValueMappingsT = ValueMappings>
188 FieldInputConfig& WithValueMappings(ValueMappingsT&& value) {
189 SetValueMappings(std::forward<ValueMappingsT>(value));
190 return *this;
191 }
193
195
198 inline const Aws::String& GetName() const { return m_name; }
199 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
200 template <typename NameT = Aws::String>
201 void SetName(NameT&& value) {
202 m_nameHasBeenSet = true;
203 m_name = std::forward<NameT>(value);
204 }
205 template <typename NameT = Aws::String>
206 FieldInputConfig& WithName(NameT&& value) {
207 SetName(std::forward<NameT>(value));
208 return *this;
209 }
211
213
216 inline double GetMinValue() const { return m_minValue; }
217 inline bool MinValueHasBeenSet() const { return m_minValueHasBeenSet; }
218 inline void SetMinValue(double value) {
219 m_minValueHasBeenSet = true;
220 m_minValue = value;
221 }
222 inline FieldInputConfig& WithMinValue(double value) {
223 SetMinValue(value);
224 return *this;
225 }
227
229
232 inline double GetMaxValue() const { return m_maxValue; }
233 inline bool MaxValueHasBeenSet() const { return m_maxValueHasBeenSet; }
234 inline void SetMaxValue(double value) {
235 m_maxValueHasBeenSet = true;
236 m_maxValue = value;
237 }
238 inline FieldInputConfig& WithMaxValue(double value) {
239 SetMaxValue(value);
240 return *this;
241 }
243
245
248 inline double GetStep() const { return m_step; }
249 inline bool StepHasBeenSet() const { return m_stepHasBeenSet; }
250 inline void SetStep(double value) {
251 m_stepHasBeenSet = true;
252 m_step = value;
253 }
254 inline FieldInputConfig& WithStep(double value) {
255 SetStep(value);
256 return *this;
257 }
259
261
264 inline const Aws::String& GetValue() const { return m_value; }
265 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
266 template <typename ValueT = Aws::String>
267 void SetValue(ValueT&& value) {
268 m_valueHasBeenSet = true;
269 m_value = std::forward<ValueT>(value);
270 }
271 template <typename ValueT = Aws::String>
272 FieldInputConfig& WithValue(ValueT&& value) {
273 SetValue(std::forward<ValueT>(value));
274 return *this;
275 }
277
279
283 inline bool GetIsArray() const { return m_isArray; }
284 inline bool IsArrayHasBeenSet() const { return m_isArrayHasBeenSet; }
285 inline void SetIsArray(bool value) {
286 m_isArrayHasBeenSet = true;
287 m_isArray = value;
288 }
289 inline FieldInputConfig& WithIsArray(bool value) {
290 SetIsArray(value);
291 return *this;
292 }
294
296
299 inline const FileUploaderFieldConfig& GetFileUploaderConfig() const { return m_fileUploaderConfig; }
300 inline bool FileUploaderConfigHasBeenSet() const { return m_fileUploaderConfigHasBeenSet; }
301 template <typename FileUploaderConfigT = FileUploaderFieldConfig>
302 void SetFileUploaderConfig(FileUploaderConfigT&& value) {
303 m_fileUploaderConfigHasBeenSet = true;
304 m_fileUploaderConfig = std::forward<FileUploaderConfigT>(value);
305 }
306 template <typename FileUploaderConfigT = FileUploaderFieldConfig>
307 FieldInputConfig& WithFileUploaderConfig(FileUploaderConfigT&& value) {
308 SetFileUploaderConfig(std::forward<FileUploaderConfigT>(value));
309 return *this;
310 }
312 private:
313 Aws::String m_type;
314
315 bool m_required{false};
316
317 bool m_readOnly{false};
318
319 Aws::String m_placeholder;
320
321 Aws::String m_defaultValue;
322
323 Aws::String m_descriptiveText;
324
325 bool m_defaultChecked{false};
326
327 Aws::String m_defaultCountryCode;
328
329 ValueMappings m_valueMappings;
330
331 Aws::String m_name;
332
333 double m_minValue{0.0};
334
335 double m_maxValue{0.0};
336
337 double m_step{0.0};
338
339 Aws::String m_value;
340
341 bool m_isArray{false};
342
343 FileUploaderFieldConfig m_fileUploaderConfig;
344 bool m_typeHasBeenSet = false;
345 bool m_requiredHasBeenSet = false;
346 bool m_readOnlyHasBeenSet = false;
347 bool m_placeholderHasBeenSet = false;
348 bool m_defaultValueHasBeenSet = false;
349 bool m_descriptiveTextHasBeenSet = false;
350 bool m_defaultCheckedHasBeenSet = false;
351 bool m_defaultCountryCodeHasBeenSet = false;
352 bool m_valueMappingsHasBeenSet = false;
353 bool m_nameHasBeenSet = false;
354 bool m_minValueHasBeenSet = false;
355 bool m_maxValueHasBeenSet = false;
356 bool m_stepHasBeenSet = false;
357 bool m_valueHasBeenSet = false;
358 bool m_isArrayHasBeenSet = false;
359 bool m_fileUploaderConfigHasBeenSet = false;
360};
361
362} // namespace Model
363} // namespace AmplifyUIBuilder
364} // namespace Aws
FieldInputConfig & WithMaxValue(double value)
AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_AMPLIFYUIBUILDER_API FieldInputConfig(Aws::Utils::Json::JsonView jsonValue)
FieldInputConfig & WithMinValue(double value)
FieldInputConfig & WithValue(ValueT &&value)
FieldInputConfig & WithDefaultCountryCode(DefaultCountryCodeT &&value)
FieldInputConfig & WithFileUploaderConfig(FileUploaderConfigT &&value)
FieldInputConfig & WithDefaultChecked(bool value)
FieldInputConfig & WithRequired(bool value)
FieldInputConfig & WithPlaceholder(PlaceholderT &&value)
FieldInputConfig & WithValueMappings(ValueMappingsT &&value)
FieldInputConfig & WithName(NameT &&value)
void SetFileUploaderConfig(FileUploaderConfigT &&value)
void SetDescriptiveText(DescriptiveTextT &&value)
FieldInputConfig & WithReadOnly(bool value)
const FileUploaderFieldConfig & GetFileUploaderConfig() const
FieldInputConfig & WithStep(double value)
FieldInputConfig & WithDescriptiveText(DescriptiveTextT &&value)
FieldInputConfig & WithType(TypeT &&value)
void SetDefaultCountryCode(DefaultCountryCodeT &&value)
AWS_AMPLIFYUIBUILDER_API FieldInputConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_AMPLIFYUIBUILDER_API FieldInputConfig()=default
FieldInputConfig & WithDefaultValue(DefaultValueT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue