AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
FieldInputConfig.h
1
6#pragma once
7#include <aws/amplifyuibuilder/AmplifyUIBuilder_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/amplifyuibuilder/model/ValueMappings.h>
10#include <aws/amplifyuibuilder/model/FileUploaderFieldConfig.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace AmplifyUIBuilder
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_AMPLIFYUIBUILDER_API FieldInputConfig() = default;
38 AWS_AMPLIFYUIBUILDER_API FieldInputConfig(Aws::Utils::Json::JsonView jsonValue);
39 AWS_AMPLIFYUIBUILDER_API FieldInputConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetType() const { return m_type; }
48 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
49 template<typename TypeT = Aws::String>
50 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
51 template<typename TypeT = Aws::String>
52 FieldInputConfig& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
54
56
59 inline bool GetRequired() const { return m_required; }
60 inline bool RequiredHasBeenSet() const { return m_requiredHasBeenSet; }
61 inline void SetRequired(bool value) { m_requiredHasBeenSet = true; m_required = value; }
62 inline FieldInputConfig& WithRequired(bool value) { SetRequired(value); return *this;}
64
66
69 inline bool GetReadOnly() const { return m_readOnly; }
70 inline bool ReadOnlyHasBeenSet() const { return m_readOnlyHasBeenSet; }
71 inline void SetReadOnly(bool value) { m_readOnlyHasBeenSet = true; m_readOnly = value; }
72 inline FieldInputConfig& WithReadOnly(bool value) { SetReadOnly(value); return *this;}
74
76
79 inline const Aws::String& GetPlaceholder() const { return m_placeholder; }
80 inline bool PlaceholderHasBeenSet() const { return m_placeholderHasBeenSet; }
81 template<typename PlaceholderT = Aws::String>
82 void SetPlaceholder(PlaceholderT&& value) { m_placeholderHasBeenSet = true; m_placeholder = std::forward<PlaceholderT>(value); }
83 template<typename PlaceholderT = Aws::String>
84 FieldInputConfig& WithPlaceholder(PlaceholderT&& value) { SetPlaceholder(std::forward<PlaceholderT>(value)); return *this;}
86
88
91 inline const Aws::String& GetDefaultValue() const { return m_defaultValue; }
92 inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
93 template<typename DefaultValueT = Aws::String>
94 void SetDefaultValue(DefaultValueT&& value) { m_defaultValueHasBeenSet = true; m_defaultValue = std::forward<DefaultValueT>(value); }
95 template<typename DefaultValueT = Aws::String>
96 FieldInputConfig& WithDefaultValue(DefaultValueT&& value) { SetDefaultValue(std::forward<DefaultValueT>(value)); return *this;}
98
100
103 inline const Aws::String& GetDescriptiveText() const { return m_descriptiveText; }
104 inline bool DescriptiveTextHasBeenSet() const { return m_descriptiveTextHasBeenSet; }
105 template<typename DescriptiveTextT = Aws::String>
106 void SetDescriptiveText(DescriptiveTextT&& value) { m_descriptiveTextHasBeenSet = true; m_descriptiveText = std::forward<DescriptiveTextT>(value); }
107 template<typename DescriptiveTextT = Aws::String>
108 FieldInputConfig& WithDescriptiveText(DescriptiveTextT&& value) { SetDescriptiveText(std::forward<DescriptiveTextT>(value)); return *this;}
110
112
115 inline bool GetDefaultChecked() const { return m_defaultChecked; }
116 inline bool DefaultCheckedHasBeenSet() const { return m_defaultCheckedHasBeenSet; }
117 inline void SetDefaultChecked(bool value) { m_defaultCheckedHasBeenSet = true; m_defaultChecked = value; }
118 inline FieldInputConfig& WithDefaultChecked(bool value) { SetDefaultChecked(value); return *this;}
120
122
125 inline const Aws::String& GetDefaultCountryCode() const { return m_defaultCountryCode; }
126 inline bool DefaultCountryCodeHasBeenSet() const { return m_defaultCountryCodeHasBeenSet; }
127 template<typename DefaultCountryCodeT = Aws::String>
128 void SetDefaultCountryCode(DefaultCountryCodeT&& value) { m_defaultCountryCodeHasBeenSet = true; m_defaultCountryCode = std::forward<DefaultCountryCodeT>(value); }
129 template<typename DefaultCountryCodeT = Aws::String>
130 FieldInputConfig& WithDefaultCountryCode(DefaultCountryCodeT&& value) { SetDefaultCountryCode(std::forward<DefaultCountryCodeT>(value)); return *this;}
132
134
138 inline const ValueMappings& GetValueMappings() const { return m_valueMappings; }
139 inline bool ValueMappingsHasBeenSet() const { return m_valueMappingsHasBeenSet; }
140 template<typename ValueMappingsT = ValueMappings>
141 void SetValueMappings(ValueMappingsT&& value) { m_valueMappingsHasBeenSet = true; m_valueMappings = std::forward<ValueMappingsT>(value); }
142 template<typename ValueMappingsT = ValueMappings>
143 FieldInputConfig& WithValueMappings(ValueMappingsT&& value) { SetValueMappings(std::forward<ValueMappingsT>(value)); return *this;}
145
147
150 inline const Aws::String& GetName() const { return m_name; }
151 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
152 template<typename NameT = Aws::String>
153 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
154 template<typename NameT = Aws::String>
155 FieldInputConfig& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
157
159
162 inline double GetMinValue() const { return m_minValue; }
163 inline bool MinValueHasBeenSet() const { return m_minValueHasBeenSet; }
164 inline void SetMinValue(double value) { m_minValueHasBeenSet = true; m_minValue = value; }
165 inline FieldInputConfig& WithMinValue(double value) { SetMinValue(value); return *this;}
167
169
172 inline double GetMaxValue() const { return m_maxValue; }
173 inline bool MaxValueHasBeenSet() const { return m_maxValueHasBeenSet; }
174 inline void SetMaxValue(double value) { m_maxValueHasBeenSet = true; m_maxValue = value; }
175 inline FieldInputConfig& WithMaxValue(double value) { SetMaxValue(value); return *this;}
177
179
182 inline double GetStep() const { return m_step; }
183 inline bool StepHasBeenSet() const { return m_stepHasBeenSet; }
184 inline void SetStep(double value) { m_stepHasBeenSet = true; m_step = value; }
185 inline FieldInputConfig& WithStep(double value) { SetStep(value); return *this;}
187
189
192 inline const Aws::String& GetValue() const { return m_value; }
193 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
194 template<typename ValueT = Aws::String>
195 void SetValue(ValueT&& value) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
196 template<typename ValueT = Aws::String>
197 FieldInputConfig& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
199
201
205 inline bool GetIsArray() const { return m_isArray; }
206 inline bool IsArrayHasBeenSet() const { return m_isArrayHasBeenSet; }
207 inline void SetIsArray(bool value) { m_isArrayHasBeenSet = true; m_isArray = value; }
208 inline FieldInputConfig& WithIsArray(bool value) { SetIsArray(value); return *this;}
210
212
215 inline const FileUploaderFieldConfig& GetFileUploaderConfig() const { return m_fileUploaderConfig; }
216 inline bool FileUploaderConfigHasBeenSet() const { return m_fileUploaderConfigHasBeenSet; }
217 template<typename FileUploaderConfigT = FileUploaderFieldConfig>
218 void SetFileUploaderConfig(FileUploaderConfigT&& value) { m_fileUploaderConfigHasBeenSet = true; m_fileUploaderConfig = std::forward<FileUploaderConfigT>(value); }
219 template<typename FileUploaderConfigT = FileUploaderFieldConfig>
220 FieldInputConfig& WithFileUploaderConfig(FileUploaderConfigT&& value) { SetFileUploaderConfig(std::forward<FileUploaderConfigT>(value)); return *this;}
222 private:
223
224 Aws::String m_type;
225 bool m_typeHasBeenSet = false;
226
227 bool m_required{false};
228 bool m_requiredHasBeenSet = false;
229
230 bool m_readOnly{false};
231 bool m_readOnlyHasBeenSet = false;
232
233 Aws::String m_placeholder;
234 bool m_placeholderHasBeenSet = false;
235
236 Aws::String m_defaultValue;
237 bool m_defaultValueHasBeenSet = false;
238
239 Aws::String m_descriptiveText;
240 bool m_descriptiveTextHasBeenSet = false;
241
242 bool m_defaultChecked{false};
243 bool m_defaultCheckedHasBeenSet = false;
244
245 Aws::String m_defaultCountryCode;
246 bool m_defaultCountryCodeHasBeenSet = false;
247
248 ValueMappings m_valueMappings;
249 bool m_valueMappingsHasBeenSet = false;
250
251 Aws::String m_name;
252 bool m_nameHasBeenSet = false;
253
254 double m_minValue{0.0};
255 bool m_minValueHasBeenSet = false;
256
257 double m_maxValue{0.0};
258 bool m_maxValueHasBeenSet = false;
259
260 double m_step{0.0};
261 bool m_stepHasBeenSet = false;
262
263 Aws::String m_value;
264 bool m_valueHasBeenSet = false;
265
266 bool m_isArray{false};
267 bool m_isArrayHasBeenSet = false;
268
269 FileUploaderFieldConfig m_fileUploaderConfig;
270 bool m_fileUploaderConfigHasBeenSet = false;
271 };
272
273} // namespace Model
274} // namespace AmplifyUIBuilder
275} // 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