AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
Form.h
1
6#pragma once
7#include <aws/amplifyuibuilder/AmplifyUIBuilder_EXPORTS.h>
8#include <aws/amplifyuibuilder/model/FieldConfig.h>
9#include <aws/amplifyuibuilder/model/FormActionType.h>
10#include <aws/amplifyuibuilder/model/FormCTA.h>
11#include <aws/amplifyuibuilder/model/FormDataTypeConfig.h>
12#include <aws/amplifyuibuilder/model/FormStyle.h>
13#include <aws/amplifyuibuilder/model/LabelDecorator.h>
14#include <aws/amplifyuibuilder/model/SectionalElement.h>
15#include <aws/core/utils/memory/stl/AWSMap.h>
16#include <aws/core/utils/memory/stl/AWSString.h>
17
18#include <utility>
19
20namespace Aws {
21namespace Utils {
22namespace Json {
23class JsonValue;
24class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace AmplifyUIBuilder {
28namespace Model {
29
38class Form {
39 public:
40 AWS_AMPLIFYUIBUILDER_API Form() = default;
41 AWS_AMPLIFYUIBUILDER_API Form(Aws::Utils::Json::JsonView jsonValue);
42 AWS_AMPLIFYUIBUILDER_API Form& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
44
46
49 inline const Aws::String& GetAppId() const { return m_appId; }
50 inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
51 template <typename AppIdT = Aws::String>
52 void SetAppId(AppIdT&& value) {
53 m_appIdHasBeenSet = true;
54 m_appId = std::forward<AppIdT>(value);
55 }
56 template <typename AppIdT = Aws::String>
57 Form& WithAppId(AppIdT&& value) {
58 SetAppId(std::forward<AppIdT>(value));
59 return *this;
60 }
62
64
67 inline const Aws::String& GetEnvironmentName() const { return m_environmentName; }
68 inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; }
69 template <typename EnvironmentNameT = Aws::String>
70 void SetEnvironmentName(EnvironmentNameT&& value) {
71 m_environmentNameHasBeenSet = true;
72 m_environmentName = std::forward<EnvironmentNameT>(value);
73 }
74 template <typename EnvironmentNameT = Aws::String>
75 Form& WithEnvironmentName(EnvironmentNameT&& value) {
76 SetEnvironmentName(std::forward<EnvironmentNameT>(value));
77 return *this;
78 }
80
82
85 inline const Aws::String& GetId() const { return m_id; }
86 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
87 template <typename IdT = Aws::String>
88 void SetId(IdT&& value) {
89 m_idHasBeenSet = true;
90 m_id = std::forward<IdT>(value);
91 }
92 template <typename IdT = Aws::String>
93 Form& WithId(IdT&& value) {
94 SetId(std::forward<IdT>(value));
95 return *this;
96 }
98
100
103 inline const Aws::String& GetName() const { return m_name; }
104 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
105 template <typename NameT = Aws::String>
106 void SetName(NameT&& value) {
107 m_nameHasBeenSet = true;
108 m_name = std::forward<NameT>(value);
109 }
110 template <typename NameT = Aws::String>
111 Form& WithName(NameT&& value) {
112 SetName(std::forward<NameT>(value));
113 return *this;
114 }
116
118
121 inline FormActionType GetFormActionType() const { return m_formActionType; }
122 inline bool FormActionTypeHasBeenSet() const { return m_formActionTypeHasBeenSet; }
124 m_formActionTypeHasBeenSet = true;
125 m_formActionType = value;
126 }
128 SetFormActionType(value);
129 return *this;
130 }
132
134
137 inline const FormStyle& GetStyle() const { return m_style; }
138 inline bool StyleHasBeenSet() const { return m_styleHasBeenSet; }
139 template <typename StyleT = FormStyle>
140 void SetStyle(StyleT&& value) {
141 m_styleHasBeenSet = true;
142 m_style = std::forward<StyleT>(value);
143 }
144 template <typename StyleT = FormStyle>
145 Form& WithStyle(StyleT&& value) {
146 SetStyle(std::forward<StyleT>(value));
147 return *this;
148 }
150
152
155 inline const FormDataTypeConfig& GetDataType() const { return m_dataType; }
156 inline bool DataTypeHasBeenSet() const { return m_dataTypeHasBeenSet; }
157 template <typename DataTypeT = FormDataTypeConfig>
158 void SetDataType(DataTypeT&& value) {
159 m_dataTypeHasBeenSet = true;
160 m_dataType = std::forward<DataTypeT>(value);
161 }
162 template <typename DataTypeT = FormDataTypeConfig>
163 Form& WithDataType(DataTypeT&& value) {
164 SetDataType(std::forward<DataTypeT>(value));
165 return *this;
166 }
168
170
173 inline const Aws::Map<Aws::String, FieldConfig>& GetFields() const { return m_fields; }
174 inline bool FieldsHasBeenSet() const { return m_fieldsHasBeenSet; }
175 template <typename FieldsT = Aws::Map<Aws::String, FieldConfig>>
176 void SetFields(FieldsT&& value) {
177 m_fieldsHasBeenSet = true;
178 m_fields = std::forward<FieldsT>(value);
179 }
180 template <typename FieldsT = Aws::Map<Aws::String, FieldConfig>>
181 Form& WithFields(FieldsT&& value) {
182 SetFields(std::forward<FieldsT>(value));
183 return *this;
184 }
185 template <typename FieldsKeyT = Aws::String, typename FieldsValueT = FieldConfig>
186 Form& AddFields(FieldsKeyT&& key, FieldsValueT&& value) {
187 m_fieldsHasBeenSet = true;
188 m_fields.emplace(std::forward<FieldsKeyT>(key), std::forward<FieldsValueT>(value));
189 return *this;
190 }
192
194
198 inline const Aws::Map<Aws::String, SectionalElement>& GetSectionalElements() const { return m_sectionalElements; }
199 inline bool SectionalElementsHasBeenSet() const { return m_sectionalElementsHasBeenSet; }
200 template <typename SectionalElementsT = Aws::Map<Aws::String, SectionalElement>>
201 void SetSectionalElements(SectionalElementsT&& value) {
202 m_sectionalElementsHasBeenSet = true;
203 m_sectionalElements = std::forward<SectionalElementsT>(value);
204 }
205 template <typename SectionalElementsT = Aws::Map<Aws::String, SectionalElement>>
206 Form& WithSectionalElements(SectionalElementsT&& value) {
207 SetSectionalElements(std::forward<SectionalElementsT>(value));
208 return *this;
209 }
210 template <typename SectionalElementsKeyT = Aws::String, typename SectionalElementsValueT = SectionalElement>
211 Form& AddSectionalElements(SectionalElementsKeyT&& key, SectionalElementsValueT&& value) {
212 m_sectionalElementsHasBeenSet = true;
213 m_sectionalElements.emplace(std::forward<SectionalElementsKeyT>(key), std::forward<SectionalElementsValueT>(value));
214 return *this;
215 }
217
219
222 inline const Aws::String& GetSchemaVersion() const { return m_schemaVersion; }
223 inline bool SchemaVersionHasBeenSet() const { return m_schemaVersionHasBeenSet; }
224 template <typename SchemaVersionT = Aws::String>
225 void SetSchemaVersion(SchemaVersionT&& value) {
226 m_schemaVersionHasBeenSet = true;
227 m_schemaVersion = std::forward<SchemaVersionT>(value);
228 }
229 template <typename SchemaVersionT = Aws::String>
230 Form& WithSchemaVersion(SchemaVersionT&& value) {
231 SetSchemaVersion(std::forward<SchemaVersionT>(value));
232 return *this;
233 }
235
237
240 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
241 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
242 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
243 void SetTags(TagsT&& value) {
244 m_tagsHasBeenSet = true;
245 m_tags = std::forward<TagsT>(value);
246 }
247 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
248 Form& WithTags(TagsT&& value) {
249 SetTags(std::forward<TagsT>(value));
250 return *this;
251 }
252 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
253 Form& AddTags(TagsKeyT&& key, TagsValueT&& value) {
254 m_tagsHasBeenSet = true;
255 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
256 return *this;
257 }
259
261
264 inline const FormCTA& GetCta() const { return m_cta; }
265 inline bool CtaHasBeenSet() const { return m_ctaHasBeenSet; }
266 template <typename CtaT = FormCTA>
267 void SetCta(CtaT&& value) {
268 m_ctaHasBeenSet = true;
269 m_cta = std::forward<CtaT>(value);
270 }
271 template <typename CtaT = FormCTA>
272 Form& WithCta(CtaT&& value) {
273 SetCta(std::forward<CtaT>(value));
274 return *this;
275 }
277
279
282 inline LabelDecorator GetLabelDecorator() const { return m_labelDecorator; }
283 inline bool LabelDecoratorHasBeenSet() const { return m_labelDecoratorHasBeenSet; }
285 m_labelDecoratorHasBeenSet = true;
286 m_labelDecorator = value;
287 }
289 SetLabelDecorator(value);
290 return *this;
291 }
293 private:
294 Aws::String m_appId;
295
296 Aws::String m_environmentName;
297
298 Aws::String m_id;
299
300 Aws::String m_name;
301
302 FormActionType m_formActionType{FormActionType::NOT_SET};
303
304 FormStyle m_style;
305
306 FormDataTypeConfig m_dataType;
307
309
310 Aws::Map<Aws::String, SectionalElement> m_sectionalElements;
311
312 Aws::String m_schemaVersion;
313
315
316 FormCTA m_cta;
317
318 LabelDecorator m_labelDecorator{LabelDecorator::NOT_SET};
319 bool m_appIdHasBeenSet = false;
320 bool m_environmentNameHasBeenSet = false;
321 bool m_idHasBeenSet = false;
322 bool m_nameHasBeenSet = false;
323 bool m_formActionTypeHasBeenSet = false;
324 bool m_styleHasBeenSet = false;
325 bool m_dataTypeHasBeenSet = false;
326 bool m_fieldsHasBeenSet = false;
327 bool m_sectionalElementsHasBeenSet = false;
328 bool m_schemaVersionHasBeenSet = false;
329 bool m_tagsHasBeenSet = false;
330 bool m_ctaHasBeenSet = false;
331 bool m_labelDecoratorHasBeenSet = false;
332};
333
334} // namespace Model
335} // namespace AmplifyUIBuilder
336} // namespace Aws
const FormCTA & GetCta() const
Definition Form.h:264
void SetCta(CtaT &&value)
Definition Form.h:267
bool SectionalElementsHasBeenSet() const
Definition Form.h:199
Form & WithLabelDecorator(LabelDecorator value)
Definition Form.h:288
Form & WithFields(FieldsT &&value)
Definition Form.h:181
bool LabelDecoratorHasBeenSet() const
Definition Form.h:283
const Aws::Map< Aws::String, FieldConfig > & GetFields() const
Definition Form.h:173
AWS_AMPLIFYUIBUILDER_API Form()=default
const Aws::String & GetId() const
Definition Form.h:85
Form & AddSectionalElements(SectionalElementsKeyT &&key, SectionalElementsValueT &&value)
Definition Form.h:211
const Aws::String & GetAppId() const
Definition Form.h:49
bool EnvironmentNameHasBeenSet() const
Definition Form.h:68
Form & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition Form.h:253
void SetEnvironmentName(EnvironmentNameT &&value)
Definition Form.h:70
void SetSchemaVersion(SchemaVersionT &&value)
Definition Form.h:225
Form & WithSchemaVersion(SchemaVersionT &&value)
Definition Form.h:230
Form & AddFields(FieldsKeyT &&key, FieldsValueT &&value)
Definition Form.h:186
bool FormActionTypeHasBeenSet() const
Definition Form.h:122
Form & WithStyle(StyleT &&value)
Definition Form.h:145
const FormDataTypeConfig & GetDataType() const
Definition Form.h:155
FormActionType GetFormActionType() const
Definition Form.h:121
bool SchemaVersionHasBeenSet() const
Definition Form.h:223
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Form.h:240
void SetTags(TagsT &&value)
Definition Form.h:243
AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
Form & WithName(NameT &&value)
Definition Form.h:111
AWS_AMPLIFYUIBUILDER_API Form & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetFormActionType(FormActionType value)
Definition Form.h:123
LabelDecorator GetLabelDecorator() const
Definition Form.h:282
void SetAppId(AppIdT &&value)
Definition Form.h:52
void SetId(IdT &&value)
Definition Form.h:88
void SetName(NameT &&value)
Definition Form.h:106
const Aws::String & GetSchemaVersion() const
Definition Form.h:222
Form & WithDataType(DataTypeT &&value)
Definition Form.h:163
Form & WithTags(TagsT &&value)
Definition Form.h:248
void SetSectionalElements(SectionalElementsT &&value)
Definition Form.h:201
const Aws::String & GetName() const
Definition Form.h:103
void SetStyle(StyleT &&value)
Definition Form.h:140
const Aws::String & GetEnvironmentName() const
Definition Form.h:67
Form & WithSectionalElements(SectionalElementsT &&value)
Definition Form.h:206
const FormStyle & GetStyle() const
Definition Form.h:137
Form & WithCta(CtaT &&value)
Definition Form.h:272
Form & WithAppId(AppIdT &&value)
Definition Form.h:57
void SetDataType(DataTypeT &&value)
Definition Form.h:158
AWS_AMPLIFYUIBUILDER_API Form(Aws::Utils::Json::JsonView jsonValue)
Form & WithId(IdT &&value)
Definition Form.h:93
Form & WithFormActionType(FormActionType value)
Definition Form.h:127
Form & WithEnvironmentName(EnvironmentNameT &&value)
Definition Form.h:75
void SetFields(FieldsT &&value)
Definition Form.h:176
const Aws::Map< Aws::String, SectionalElement > & GetSectionalElements() const
Definition Form.h:198
void SetLabelDecorator(LabelDecorator value)
Definition Form.h:284
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue