AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Form.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/FormActionType.h>
10#include <aws/amplifyuibuilder/model/FormStyle.h>
11#include <aws/amplifyuibuilder/model/FormDataTypeConfig.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/amplifyuibuilder/model/FormCTA.h>
14#include <aws/amplifyuibuilder/model/LabelDecorator.h>
15#include <aws/amplifyuibuilder/model/FieldConfig.h>
16#include <aws/amplifyuibuilder/model/SectionalElement.h>
17#include <utility>
18
19namespace Aws
20{
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26 class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace AmplifyUIBuilder
30{
31namespace Model
32{
33
42 class Form
43 {
44 public:
45 AWS_AMPLIFYUIBUILDER_API Form();
46 AWS_AMPLIFYUIBUILDER_API Form(Aws::Utils::Json::JsonView jsonValue);
47 AWS_AMPLIFYUIBUILDER_API Form& operator=(Aws::Utils::Json::JsonView jsonValue);
48 AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
49
50
52
55 inline const Aws::String& GetAppId() const{ return m_appId; }
56 inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
57 inline void SetAppId(const Aws::String& value) { m_appIdHasBeenSet = true; m_appId = value; }
58 inline void SetAppId(Aws::String&& value) { m_appIdHasBeenSet = true; m_appId = std::move(value); }
59 inline void SetAppId(const char* value) { m_appIdHasBeenSet = true; m_appId.assign(value); }
60 inline Form& WithAppId(const Aws::String& value) { SetAppId(value); return *this;}
61 inline Form& WithAppId(Aws::String&& value) { SetAppId(std::move(value)); return *this;}
62 inline Form& WithAppId(const char* value) { SetAppId(value); return *this;}
64
66
69 inline const Aws::String& GetEnvironmentName() const{ return m_environmentName; }
70 inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; }
71 inline void SetEnvironmentName(const Aws::String& value) { m_environmentNameHasBeenSet = true; m_environmentName = value; }
72 inline void SetEnvironmentName(Aws::String&& value) { m_environmentNameHasBeenSet = true; m_environmentName = std::move(value); }
73 inline void SetEnvironmentName(const char* value) { m_environmentNameHasBeenSet = true; m_environmentName.assign(value); }
74 inline Form& WithEnvironmentName(const Aws::String& value) { SetEnvironmentName(value); return *this;}
75 inline Form& WithEnvironmentName(Aws::String&& value) { SetEnvironmentName(std::move(value)); return *this;}
76 inline Form& WithEnvironmentName(const char* value) { SetEnvironmentName(value); return *this;}
78
80
83 inline const Aws::String& GetId() const{ return m_id; }
84 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
85 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
86 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
87 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
88 inline Form& WithId(const Aws::String& value) { SetId(value); return *this;}
89 inline Form& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
90 inline Form& WithId(const char* value) { SetId(value); return *this;}
92
94
97 inline const Aws::String& GetName() const{ return m_name; }
98 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
99 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
100 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
101 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
102 inline Form& WithName(const Aws::String& value) { SetName(value); return *this;}
103 inline Form& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
104 inline Form& WithName(const char* value) { SetName(value); return *this;}
106
108
111 inline const FormActionType& GetFormActionType() const{ return m_formActionType; }
112 inline bool FormActionTypeHasBeenSet() const { return m_formActionTypeHasBeenSet; }
113 inline void SetFormActionType(const FormActionType& value) { m_formActionTypeHasBeenSet = true; m_formActionType = value; }
114 inline void SetFormActionType(FormActionType&& value) { m_formActionTypeHasBeenSet = true; m_formActionType = std::move(value); }
115 inline Form& WithFormActionType(const FormActionType& value) { SetFormActionType(value); return *this;}
116 inline Form& WithFormActionType(FormActionType&& value) { SetFormActionType(std::move(value)); return *this;}
118
120
123 inline const FormStyle& GetStyle() const{ return m_style; }
124 inline bool StyleHasBeenSet() const { return m_styleHasBeenSet; }
125 inline void SetStyle(const FormStyle& value) { m_styleHasBeenSet = true; m_style = value; }
126 inline void SetStyle(FormStyle&& value) { m_styleHasBeenSet = true; m_style = std::move(value); }
127 inline Form& WithStyle(const FormStyle& value) { SetStyle(value); return *this;}
128 inline Form& WithStyle(FormStyle&& value) { SetStyle(std::move(value)); return *this;}
130
132
135 inline const FormDataTypeConfig& GetDataType() const{ return m_dataType; }
136 inline bool DataTypeHasBeenSet() const { return m_dataTypeHasBeenSet; }
137 inline void SetDataType(const FormDataTypeConfig& value) { m_dataTypeHasBeenSet = true; m_dataType = value; }
138 inline void SetDataType(FormDataTypeConfig&& value) { m_dataTypeHasBeenSet = true; m_dataType = std::move(value); }
139 inline Form& WithDataType(const FormDataTypeConfig& value) { SetDataType(value); return *this;}
140 inline Form& WithDataType(FormDataTypeConfig&& value) { SetDataType(std::move(value)); return *this;}
142
144
147 inline const Aws::Map<Aws::String, FieldConfig>& GetFields() const{ return m_fields; }
148 inline bool FieldsHasBeenSet() const { return m_fieldsHasBeenSet; }
149 inline void SetFields(const Aws::Map<Aws::String, FieldConfig>& value) { m_fieldsHasBeenSet = true; m_fields = value; }
150 inline void SetFields(Aws::Map<Aws::String, FieldConfig>&& value) { m_fieldsHasBeenSet = true; m_fields = std::move(value); }
151 inline Form& WithFields(const Aws::Map<Aws::String, FieldConfig>& value) { SetFields(value); return *this;}
152 inline Form& WithFields(Aws::Map<Aws::String, FieldConfig>&& value) { SetFields(std::move(value)); return *this;}
153 inline Form& AddFields(const Aws::String& key, const FieldConfig& value) { m_fieldsHasBeenSet = true; m_fields.emplace(key, value); return *this; }
154 inline Form& AddFields(Aws::String&& key, const FieldConfig& value) { m_fieldsHasBeenSet = true; m_fields.emplace(std::move(key), value); return *this; }
155 inline Form& AddFields(const Aws::String& key, FieldConfig&& value) { m_fieldsHasBeenSet = true; m_fields.emplace(key, std::move(value)); return *this; }
156 inline Form& AddFields(Aws::String&& key, FieldConfig&& value) { m_fieldsHasBeenSet = true; m_fields.emplace(std::move(key), std::move(value)); return *this; }
157 inline Form& AddFields(const char* key, FieldConfig&& value) { m_fieldsHasBeenSet = true; m_fields.emplace(key, std::move(value)); return *this; }
158 inline Form& AddFields(const char* key, const FieldConfig& value) { m_fieldsHasBeenSet = true; m_fields.emplace(key, value); return *this; }
160
162
166 inline const Aws::Map<Aws::String, SectionalElement>& GetSectionalElements() const{ return m_sectionalElements; }
167 inline bool SectionalElementsHasBeenSet() const { return m_sectionalElementsHasBeenSet; }
168 inline void SetSectionalElements(const Aws::Map<Aws::String, SectionalElement>& value) { m_sectionalElementsHasBeenSet = true; m_sectionalElements = value; }
169 inline void SetSectionalElements(Aws::Map<Aws::String, SectionalElement>&& value) { m_sectionalElementsHasBeenSet = true; m_sectionalElements = std::move(value); }
172 inline Form& AddSectionalElements(const Aws::String& key, const SectionalElement& value) { m_sectionalElementsHasBeenSet = true; m_sectionalElements.emplace(key, value); return *this; }
173 inline Form& AddSectionalElements(Aws::String&& key, const SectionalElement& value) { m_sectionalElementsHasBeenSet = true; m_sectionalElements.emplace(std::move(key), value); return *this; }
174 inline Form& AddSectionalElements(const Aws::String& key, SectionalElement&& value) { m_sectionalElementsHasBeenSet = true; m_sectionalElements.emplace(key, std::move(value)); return *this; }
175 inline Form& AddSectionalElements(Aws::String&& key, SectionalElement&& value) { m_sectionalElementsHasBeenSet = true; m_sectionalElements.emplace(std::move(key), std::move(value)); return *this; }
176 inline Form& AddSectionalElements(const char* key, SectionalElement&& value) { m_sectionalElementsHasBeenSet = true; m_sectionalElements.emplace(key, std::move(value)); return *this; }
177 inline Form& AddSectionalElements(const char* key, const SectionalElement& value) { m_sectionalElementsHasBeenSet = true; m_sectionalElements.emplace(key, value); return *this; }
179
181
184 inline const Aws::String& GetSchemaVersion() const{ return m_schemaVersion; }
185 inline bool SchemaVersionHasBeenSet() const { return m_schemaVersionHasBeenSet; }
186 inline void SetSchemaVersion(const Aws::String& value) { m_schemaVersionHasBeenSet = true; m_schemaVersion = value; }
187 inline void SetSchemaVersion(Aws::String&& value) { m_schemaVersionHasBeenSet = true; m_schemaVersion = std::move(value); }
188 inline void SetSchemaVersion(const char* value) { m_schemaVersionHasBeenSet = true; m_schemaVersion.assign(value); }
189 inline Form& WithSchemaVersion(const Aws::String& value) { SetSchemaVersion(value); return *this;}
190 inline Form& WithSchemaVersion(Aws::String&& value) { SetSchemaVersion(std::move(value)); return *this;}
191 inline Form& WithSchemaVersion(const char* value) { SetSchemaVersion(value); return *this;}
193
195
198 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
199 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
200 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
201 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
202 inline Form& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
203 inline Form& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
204 inline Form& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
205 inline Form& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
206 inline Form& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
207 inline Form& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
208 inline Form& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
209 inline Form& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
210 inline Form& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
212
214
217 inline const FormCTA& GetCta() const{ return m_cta; }
218 inline bool CtaHasBeenSet() const { return m_ctaHasBeenSet; }
219 inline void SetCta(const FormCTA& value) { m_ctaHasBeenSet = true; m_cta = value; }
220 inline void SetCta(FormCTA&& value) { m_ctaHasBeenSet = true; m_cta = std::move(value); }
221 inline Form& WithCta(const FormCTA& value) { SetCta(value); return *this;}
222 inline Form& WithCta(FormCTA&& value) { SetCta(std::move(value)); return *this;}
224
226
229 inline const LabelDecorator& GetLabelDecorator() const{ return m_labelDecorator; }
230 inline bool LabelDecoratorHasBeenSet() const { return m_labelDecoratorHasBeenSet; }
231 inline void SetLabelDecorator(const LabelDecorator& value) { m_labelDecoratorHasBeenSet = true; m_labelDecorator = value; }
232 inline void SetLabelDecorator(LabelDecorator&& value) { m_labelDecoratorHasBeenSet = true; m_labelDecorator = std::move(value); }
233 inline Form& WithLabelDecorator(const LabelDecorator& value) { SetLabelDecorator(value); return *this;}
234 inline Form& WithLabelDecorator(LabelDecorator&& value) { SetLabelDecorator(std::move(value)); return *this;}
236 private:
237
238 Aws::String m_appId;
239 bool m_appIdHasBeenSet = false;
240
241 Aws::String m_environmentName;
242 bool m_environmentNameHasBeenSet = false;
243
244 Aws::String m_id;
245 bool m_idHasBeenSet = false;
246
247 Aws::String m_name;
248 bool m_nameHasBeenSet = false;
249
250 FormActionType m_formActionType;
251 bool m_formActionTypeHasBeenSet = false;
252
253 FormStyle m_style;
254 bool m_styleHasBeenSet = false;
255
256 FormDataTypeConfig m_dataType;
257 bool m_dataTypeHasBeenSet = false;
258
260 bool m_fieldsHasBeenSet = false;
261
262 Aws::Map<Aws::String, SectionalElement> m_sectionalElements;
263 bool m_sectionalElementsHasBeenSet = false;
264
265 Aws::String m_schemaVersion;
266 bool m_schemaVersionHasBeenSet = false;
267
269 bool m_tagsHasBeenSet = false;
270
271 FormCTA m_cta;
272 bool m_ctaHasBeenSet = false;
273
274 LabelDecorator m_labelDecorator;
275 bool m_labelDecoratorHasBeenSet = false;
276 };
277
278} // namespace Model
279} // namespace AmplifyUIBuilder
280} // namespace Aws
Form & WithSectionalElements(const Aws::Map< Aws::String, SectionalElement > &value)
Definition Form.h:170
const FormCTA & GetCta() const
Definition Form.h:217
void SetSchemaVersion(const Aws::String &value)
Definition Form.h:186
bool SectionalElementsHasBeenSet() const
Definition Form.h:167
Form & WithFormActionType(FormActionType &&value)
Definition Form.h:116
bool LabelDecoratorHasBeenSet() const
Definition Form.h:230
Form & WithSchemaVersion(const char *value)
Definition Form.h:191
const LabelDecorator & GetLabelDecorator() const
Definition Form.h:229
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition Form.h:201
void SetName(const char *value)
Definition Form.h:101
Form & AddFields(const char *key, const FieldConfig &value)
Definition Form.h:158
const FormActionType & GetFormActionType() const
Definition Form.h:111
const Aws::Map< Aws::String, FieldConfig > & GetFields() const
Definition Form.h:147
void SetSchemaVersion(Aws::String &&value)
Definition Form.h:187
Form & WithStyle(FormStyle &&value)
Definition Form.h:128
Form & AddTags(const char *key, Aws::String &&value)
Definition Form.h:208
const Aws::String & GetId() const
Definition Form.h:83
void SetFields(const Aws::Map< Aws::String, FieldConfig > &value)
Definition Form.h:149
AWS_AMPLIFYUIBUILDER_API Form()
Form & WithName(const char *value)
Definition Form.h:104
const Aws::String & GetAppId() const
Definition Form.h:55
bool EnvironmentNameHasBeenSet() const
Definition Form.h:70
Form & WithSchemaVersion(const Aws::String &value)
Definition Form.h:189
void SetCta(const FormCTA &value)
Definition Form.h:219
void SetLabelDecorator(LabelDecorator &&value)
Definition Form.h:232
Form & AddFields(Aws::String &&key, const FieldConfig &value)
Definition Form.h:154
void SetFormActionType(FormActionType &&value)
Definition Form.h:114
Form & WithId(const Aws::String &value)
Definition Form.h:88
void SetSectionalElements(const Aws::Map< Aws::String, SectionalElement > &value)
Definition Form.h:168
Form & WithAppId(const Aws::String &value)
Definition Form.h:60
Form & AddSectionalElements(Aws::String &&key, SectionalElement &&value)
Definition Form.h:175
void SetId(Aws::String &&value)
Definition Form.h:86
Form & WithFields(const Aws::Map< Aws::String, FieldConfig > &value)
Definition Form.h:151
Form & AddTags(const Aws::String &key, const Aws::String &value)
Definition Form.h:204
Form & AddFields(Aws::String &&key, FieldConfig &&value)
Definition Form.h:156
void SetStyle(FormStyle &&value)
Definition Form.h:126
Form & AddTags(Aws::String &&key, Aws::String &&value)
Definition Form.h:207
void SetAppId(const Aws::String &value)
Definition Form.h:57
void SetStyle(const FormStyle &value)
Definition Form.h:125
Form & AddFields(const Aws::String &key, const FieldConfig &value)
Definition Form.h:153
Form & AddSectionalElements(const char *key, const SectionalElement &value)
Definition Form.h:177
bool FormActionTypeHasBeenSet() const
Definition Form.h:112
Form & AddFields(const Aws::String &key, FieldConfig &&value)
Definition Form.h:155
const FormDataTypeConfig & GetDataType() const
Definition Form.h:135
void SetId(const Aws::String &value)
Definition Form.h:85
bool SchemaVersionHasBeenSet() const
Definition Form.h:185
void SetSectionalElements(Aws::Map< Aws::String, SectionalElement > &&value)
Definition Form.h:169
void SetDataType(FormDataTypeConfig &&value)
Definition Form.h:138
Form & AddSectionalElements(Aws::String &&key, const SectionalElement &value)
Definition Form.h:173
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Form.h:198
Form & WithSectionalElements(Aws::Map< Aws::String, SectionalElement > &&value)
Definition Form.h:171
void SetEnvironmentName(const Aws::String &value)
Definition Form.h:71
Form & WithSchemaVersion(Aws::String &&value)
Definition Form.h:190
void SetLabelDecorator(const LabelDecorator &value)
Definition Form.h:231
AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
Form & WithLabelDecorator(LabelDecorator &&value)
Definition Form.h:234
AWS_AMPLIFYUIBUILDER_API Form & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetName(const Aws::String &value)
Definition Form.h:99
Form & AddSectionalElements(const char *key, SectionalElement &&value)
Definition Form.h:176
Form & AddTags(Aws::String &&key, const char *value)
Definition Form.h:209
Form & WithCta(FormCTA &&value)
Definition Form.h:222
void SetEnvironmentName(Aws::String &&value)
Definition Form.h:72
Form & WithId(const char *value)
Definition Form.h:90
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition Form.h:200
Form & AddSectionalElements(const Aws::String &key, const SectionalElement &value)
Definition Form.h:172
Form & WithAppId(const char *value)
Definition Form.h:62
Form & AddSectionalElements(const Aws::String &key, SectionalElement &&value)
Definition Form.h:174
Form & WithId(Aws::String &&value)
Definition Form.h:89
const Aws::String & GetSchemaVersion() const
Definition Form.h:184
void SetFormActionType(const FormActionType &value)
Definition Form.h:113
Form & WithEnvironmentName(Aws::String &&value)
Definition Form.h:75
Form & WithLabelDecorator(const LabelDecorator &value)
Definition Form.h:233
void SetFields(Aws::Map< Aws::String, FieldConfig > &&value)
Definition Form.h:150
void SetEnvironmentName(const char *value)
Definition Form.h:73
void SetName(Aws::String &&value)
Definition Form.h:100
Form & WithName(const Aws::String &value)
Definition Form.h:102
Form & AddTags(const char *key, const char *value)
Definition Form.h:210
const Aws::String & GetName() const
Definition Form.h:97
Form & WithName(Aws::String &&value)
Definition Form.h:103
const Aws::String & GetEnvironmentName() const
Definition Form.h:69
Form & WithEnvironmentName(const char *value)
Definition Form.h:76
Form & WithCta(const FormCTA &value)
Definition Form.h:221
Form & AddTags(const Aws::String &key, Aws::String &&value)
Definition Form.h:206
const FormStyle & GetStyle() const
Definition Form.h:123
Form & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition Form.h:202
Form & WithAppId(Aws::String &&value)
Definition Form.h:61
Form & AddTags(Aws::String &&key, const Aws::String &value)
Definition Form.h:205
void SetDataType(const FormDataTypeConfig &value)
Definition Form.h:137
void SetId(const char *value)
Definition Form.h:87
Form & WithFormActionType(const FormActionType &value)
Definition Form.h:115
void SetAppId(const char *value)
Definition Form.h:59
void SetCta(FormCTA &&value)
Definition Form.h:220
Form & WithEnvironmentName(const Aws::String &value)
Definition Form.h:74
Form & AddFields(const char *key, FieldConfig &&value)
Definition Form.h:157
Form & WithDataType(const FormDataTypeConfig &value)
Definition Form.h:139
Form & WithStyle(const FormStyle &value)
Definition Form.h:127
Form & WithDataType(FormDataTypeConfig &&value)
Definition Form.h:140
AWS_AMPLIFYUIBUILDER_API Form(Aws::Utils::Json::JsonView jsonValue)
Form & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition Form.h:203
void SetSchemaVersion(const char *value)
Definition Form.h:188
const Aws::Map< Aws::String, SectionalElement > & GetSectionalElements() const
Definition Form.h:166
Form & WithFields(Aws::Map< Aws::String, FieldConfig > &&value)
Definition Form.h:152
void SetAppId(Aws::String &&value)
Definition Form.h:58
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