AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
50 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
51 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
52 inline FieldInputConfig& WithType(const Aws::String& value) { SetType(value); return *this;}
53 inline FieldInputConfig& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
54 inline FieldInputConfig& WithType(const char* value) { SetType(value); return *this;}
56
58
61 inline bool GetRequired() const{ return m_required; }
62 inline bool RequiredHasBeenSet() const { return m_requiredHasBeenSet; }
63 inline void SetRequired(bool value) { m_requiredHasBeenSet = true; m_required = value; }
64 inline FieldInputConfig& WithRequired(bool value) { SetRequired(value); return *this;}
66
68
71 inline bool GetReadOnly() const{ return m_readOnly; }
72 inline bool ReadOnlyHasBeenSet() const { return m_readOnlyHasBeenSet; }
73 inline void SetReadOnly(bool value) { m_readOnlyHasBeenSet = true; m_readOnly = value; }
74 inline FieldInputConfig& WithReadOnly(bool value) { SetReadOnly(value); return *this;}
76
78
81 inline const Aws::String& GetPlaceholder() const{ return m_placeholder; }
82 inline bool PlaceholderHasBeenSet() const { return m_placeholderHasBeenSet; }
83 inline void SetPlaceholder(const Aws::String& value) { m_placeholderHasBeenSet = true; m_placeholder = value; }
84 inline void SetPlaceholder(Aws::String&& value) { m_placeholderHasBeenSet = true; m_placeholder = std::move(value); }
85 inline void SetPlaceholder(const char* value) { m_placeholderHasBeenSet = true; m_placeholder.assign(value); }
86 inline FieldInputConfig& WithPlaceholder(const Aws::String& value) { SetPlaceholder(value); return *this;}
87 inline FieldInputConfig& WithPlaceholder(Aws::String&& value) { SetPlaceholder(std::move(value)); return *this;}
88 inline FieldInputConfig& WithPlaceholder(const char* value) { SetPlaceholder(value); return *this;}
90
92
95 inline const Aws::String& GetDefaultValue() const{ return m_defaultValue; }
96 inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
97 inline void SetDefaultValue(const Aws::String& value) { m_defaultValueHasBeenSet = true; m_defaultValue = value; }
98 inline void SetDefaultValue(Aws::String&& value) { m_defaultValueHasBeenSet = true; m_defaultValue = std::move(value); }
99 inline void SetDefaultValue(const char* value) { m_defaultValueHasBeenSet = true; m_defaultValue.assign(value); }
100 inline FieldInputConfig& WithDefaultValue(const Aws::String& value) { SetDefaultValue(value); return *this;}
101 inline FieldInputConfig& WithDefaultValue(Aws::String&& value) { SetDefaultValue(std::move(value)); return *this;}
102 inline FieldInputConfig& WithDefaultValue(const char* value) { SetDefaultValue(value); return *this;}
104
106
109 inline const Aws::String& GetDescriptiveText() const{ return m_descriptiveText; }
110 inline bool DescriptiveTextHasBeenSet() const { return m_descriptiveTextHasBeenSet; }
111 inline void SetDescriptiveText(const Aws::String& value) { m_descriptiveTextHasBeenSet = true; m_descriptiveText = value; }
112 inline void SetDescriptiveText(Aws::String&& value) { m_descriptiveTextHasBeenSet = true; m_descriptiveText = std::move(value); }
113 inline void SetDescriptiveText(const char* value) { m_descriptiveTextHasBeenSet = true; m_descriptiveText.assign(value); }
114 inline FieldInputConfig& WithDescriptiveText(const Aws::String& value) { SetDescriptiveText(value); return *this;}
115 inline FieldInputConfig& WithDescriptiveText(Aws::String&& value) { SetDescriptiveText(std::move(value)); return *this;}
116 inline FieldInputConfig& WithDescriptiveText(const char* value) { SetDescriptiveText(value); return *this;}
118
120
123 inline bool GetDefaultChecked() const{ return m_defaultChecked; }
124 inline bool DefaultCheckedHasBeenSet() const { return m_defaultCheckedHasBeenSet; }
125 inline void SetDefaultChecked(bool value) { m_defaultCheckedHasBeenSet = true; m_defaultChecked = value; }
126 inline FieldInputConfig& WithDefaultChecked(bool value) { SetDefaultChecked(value); return *this;}
128
130
133 inline const Aws::String& GetDefaultCountryCode() const{ return m_defaultCountryCode; }
134 inline bool DefaultCountryCodeHasBeenSet() const { return m_defaultCountryCodeHasBeenSet; }
135 inline void SetDefaultCountryCode(const Aws::String& value) { m_defaultCountryCodeHasBeenSet = true; m_defaultCountryCode = value; }
136 inline void SetDefaultCountryCode(Aws::String&& value) { m_defaultCountryCodeHasBeenSet = true; m_defaultCountryCode = std::move(value); }
137 inline void SetDefaultCountryCode(const char* value) { m_defaultCountryCodeHasBeenSet = true; m_defaultCountryCode.assign(value); }
138 inline FieldInputConfig& WithDefaultCountryCode(const Aws::String& value) { SetDefaultCountryCode(value); return *this;}
139 inline FieldInputConfig& WithDefaultCountryCode(Aws::String&& value) { SetDefaultCountryCode(std::move(value)); return *this;}
140 inline FieldInputConfig& WithDefaultCountryCode(const char* value) { SetDefaultCountryCode(value); return *this;}
142
144
148 inline const ValueMappings& GetValueMappings() const{ return m_valueMappings; }
149 inline bool ValueMappingsHasBeenSet() const { return m_valueMappingsHasBeenSet; }
150 inline void SetValueMappings(const ValueMappings& value) { m_valueMappingsHasBeenSet = true; m_valueMappings = value; }
151 inline void SetValueMappings(ValueMappings&& value) { m_valueMappingsHasBeenSet = true; m_valueMappings = std::move(value); }
152 inline FieldInputConfig& WithValueMappings(const ValueMappings& value) { SetValueMappings(value); return *this;}
153 inline FieldInputConfig& WithValueMappings(ValueMappings&& value) { SetValueMappings(std::move(value)); return *this;}
155
157
160 inline const Aws::String& GetName() const{ return m_name; }
161 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
162 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
163 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
164 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
165 inline FieldInputConfig& WithName(const Aws::String& value) { SetName(value); return *this;}
166 inline FieldInputConfig& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
167 inline FieldInputConfig& WithName(const char* value) { SetName(value); return *this;}
169
171
174 inline double GetMinValue() const{ return m_minValue; }
175 inline bool MinValueHasBeenSet() const { return m_minValueHasBeenSet; }
176 inline void SetMinValue(double value) { m_minValueHasBeenSet = true; m_minValue = value; }
177 inline FieldInputConfig& WithMinValue(double value) { SetMinValue(value); return *this;}
179
181
184 inline double GetMaxValue() const{ return m_maxValue; }
185 inline bool MaxValueHasBeenSet() const { return m_maxValueHasBeenSet; }
186 inline void SetMaxValue(double value) { m_maxValueHasBeenSet = true; m_maxValue = value; }
187 inline FieldInputConfig& WithMaxValue(double value) { SetMaxValue(value); return *this;}
189
191
194 inline double GetStep() const{ return m_step; }
195 inline bool StepHasBeenSet() const { return m_stepHasBeenSet; }
196 inline void SetStep(double value) { m_stepHasBeenSet = true; m_step = value; }
197 inline FieldInputConfig& WithStep(double value) { SetStep(value); return *this;}
199
201
204 inline const Aws::String& GetValue() const{ return m_value; }
205 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
206 inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
207 inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
208 inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
209 inline FieldInputConfig& WithValue(const Aws::String& value) { SetValue(value); return *this;}
210 inline FieldInputConfig& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
211 inline FieldInputConfig& WithValue(const char* value) { SetValue(value); return *this;}
213
215
219 inline bool GetIsArray() const{ return m_isArray; }
220 inline bool IsArrayHasBeenSet() const { return m_isArrayHasBeenSet; }
221 inline void SetIsArray(bool value) { m_isArrayHasBeenSet = true; m_isArray = value; }
222 inline FieldInputConfig& WithIsArray(bool value) { SetIsArray(value); return *this;}
224
226
229 inline const FileUploaderFieldConfig& GetFileUploaderConfig() const{ return m_fileUploaderConfig; }
230 inline bool FileUploaderConfigHasBeenSet() const { return m_fileUploaderConfigHasBeenSet; }
231 inline void SetFileUploaderConfig(const FileUploaderFieldConfig& value) { m_fileUploaderConfigHasBeenSet = true; m_fileUploaderConfig = value; }
232 inline void SetFileUploaderConfig(FileUploaderFieldConfig&& value) { m_fileUploaderConfigHasBeenSet = true; m_fileUploaderConfig = std::move(value); }
236 private:
237
238 Aws::String m_type;
239 bool m_typeHasBeenSet = false;
240
241 bool m_required;
242 bool m_requiredHasBeenSet = false;
243
244 bool m_readOnly;
245 bool m_readOnlyHasBeenSet = false;
246
247 Aws::String m_placeholder;
248 bool m_placeholderHasBeenSet = false;
249
250 Aws::String m_defaultValue;
251 bool m_defaultValueHasBeenSet = false;
252
253 Aws::String m_descriptiveText;
254 bool m_descriptiveTextHasBeenSet = false;
255
256 bool m_defaultChecked;
257 bool m_defaultCheckedHasBeenSet = false;
258
259 Aws::String m_defaultCountryCode;
260 bool m_defaultCountryCodeHasBeenSet = false;
261
262 ValueMappings m_valueMappings;
263 bool m_valueMappingsHasBeenSet = false;
264
265 Aws::String m_name;
266 bool m_nameHasBeenSet = false;
267
268 double m_minValue;
269 bool m_minValueHasBeenSet = false;
270
271 double m_maxValue;
272 bool m_maxValueHasBeenSet = false;
273
274 double m_step;
275 bool m_stepHasBeenSet = false;
276
277 Aws::String m_value;
278 bool m_valueHasBeenSet = false;
279
280 bool m_isArray;
281 bool m_isArrayHasBeenSet = false;
282
283 FileUploaderFieldConfig m_fileUploaderConfig;
284 bool m_fileUploaderConfigHasBeenSet = false;
285 };
286
287} // namespace Model
288} // namespace AmplifyUIBuilder
289} // namespace Aws
FieldInputConfig & WithMaxValue(double value)
AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_AMPLIFYUIBUILDER_API FieldInputConfig()
AWS_AMPLIFYUIBUILDER_API FieldInputConfig(Aws::Utils::Json::JsonView jsonValue)
FieldInputConfig & WithMinValue(double value)
void SetDefaultValue(const Aws::String &value)
FieldInputConfig & WithType(const char *value)
FieldInputConfig & WithDefaultCountryCode(const Aws::String &value)
FieldInputConfig & WithPlaceholder(const Aws::String &value)
void SetDefaultCountryCode(const Aws::String &value)
FieldInputConfig & WithName(Aws::String &&value)
FieldInputConfig & WithValue(Aws::String &&value)
FieldInputConfig & WithDescriptiveText(const char *value)
FieldInputConfig & WithDefaultValue(Aws::String &&value)
FieldInputConfig & WithName(const char *value)
FieldInputConfig & WithValueMappings(const ValueMappings &value)
FieldInputConfig & WithDefaultChecked(bool value)
FieldInputConfig & WithFileUploaderConfig(FileUploaderFieldConfig &&value)
void SetFileUploaderConfig(const FileUploaderFieldConfig &value)
FieldInputConfig & WithRequired(bool value)
FieldInputConfig & WithValue(const Aws::String &value)
FieldInputConfig & WithFileUploaderConfig(const FileUploaderFieldConfig &value)
FieldInputConfig & WithPlaceholder(const char *value)
FieldInputConfig & WithDescriptiveText(const Aws::String &value)
FieldInputConfig & WithType(Aws::String &&value)
void SetValueMappings(const ValueMappings &value)
FieldInputConfig & WithDefaultCountryCode(const char *value)
FieldInputConfig & WithValueMappings(ValueMappings &&value)
void SetDescriptiveText(const Aws::String &value)
FieldInputConfig & WithReadOnly(bool value)
const FileUploaderFieldConfig & GetFileUploaderConfig() const
FieldInputConfig & WithStep(double value)
FieldInputConfig & WithType(const Aws::String &value)
FieldInputConfig & WithValue(const char *value)
FieldInputConfig & WithDescriptiveText(Aws::String &&value)
FieldInputConfig & WithPlaceholder(Aws::String &&value)
void SetPlaceholder(const Aws::String &value)
FieldInputConfig & WithDefaultValue(const char *value)
FieldInputConfig & WithName(const Aws::String &value)
AWS_AMPLIFYUIBUILDER_API FieldInputConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetFileUploaderConfig(FileUploaderFieldConfig &&value)
FieldInputConfig & WithDefaultCountryCode(Aws::String &&value)
FieldInputConfig & WithDefaultValue(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue