AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename AppIdT = Aws::String>
58 void SetAppId(AppIdT&& value) { m_appIdHasBeenSet = true; m_appId = std::forward<AppIdT>(value); }
59 template<typename AppIdT = Aws::String>
60 Form& WithAppId(AppIdT&& value) { SetAppId(std::forward<AppIdT>(value)); return *this;}
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) { m_environmentNameHasBeenSet = true; m_environmentName = std::forward<EnvironmentNameT>(value); }
71 template<typename EnvironmentNameT = Aws::String>
72 Form& WithEnvironmentName(EnvironmentNameT&& value) { SetEnvironmentName(std::forward<EnvironmentNameT>(value)); return *this;}
74
76
79 inline const Aws::String& GetId() const { return m_id; }
80 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
81 template<typename IdT = Aws::String>
82 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
83 template<typename IdT = Aws::String>
84 Form& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
86
88
91 inline const Aws::String& GetName() const { return m_name; }
92 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
93 template<typename NameT = Aws::String>
94 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
95 template<typename NameT = Aws::String>
96 Form& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
98
100
103 inline FormActionType GetFormActionType() const { return m_formActionType; }
104 inline bool FormActionTypeHasBeenSet() const { return m_formActionTypeHasBeenSet; }
105 inline void SetFormActionType(FormActionType value) { m_formActionTypeHasBeenSet = true; m_formActionType = value; }
106 inline Form& WithFormActionType(FormActionType value) { SetFormActionType(value); return *this;}
108
110
113 inline const FormStyle& GetStyle() const { return m_style; }
114 inline bool StyleHasBeenSet() const { return m_styleHasBeenSet; }
115 template<typename StyleT = FormStyle>
116 void SetStyle(StyleT&& value) { m_styleHasBeenSet = true; m_style = std::forward<StyleT>(value); }
117 template<typename StyleT = FormStyle>
118 Form& WithStyle(StyleT&& value) { SetStyle(std::forward<StyleT>(value)); return *this;}
120
122
125 inline const FormDataTypeConfig& GetDataType() const { return m_dataType; }
126 inline bool DataTypeHasBeenSet() const { return m_dataTypeHasBeenSet; }
127 template<typename DataTypeT = FormDataTypeConfig>
128 void SetDataType(DataTypeT&& value) { m_dataTypeHasBeenSet = true; m_dataType = std::forward<DataTypeT>(value); }
129 template<typename DataTypeT = FormDataTypeConfig>
130 Form& WithDataType(DataTypeT&& value) { SetDataType(std::forward<DataTypeT>(value)); return *this;}
132
134
137 inline const Aws::Map<Aws::String, FieldConfig>& GetFields() const { return m_fields; }
138 inline bool FieldsHasBeenSet() const { return m_fieldsHasBeenSet; }
139 template<typename FieldsT = Aws::Map<Aws::String, FieldConfig>>
140 void SetFields(FieldsT&& value) { m_fieldsHasBeenSet = true; m_fields = std::forward<FieldsT>(value); }
141 template<typename FieldsT = Aws::Map<Aws::String, FieldConfig>>
142 Form& WithFields(FieldsT&& value) { SetFields(std::forward<FieldsT>(value)); return *this;}
143 template<typename FieldsKeyT = Aws::String, typename FieldsValueT = FieldConfig>
144 Form& AddFields(FieldsKeyT&& key, FieldsValueT&& value) {
145 m_fieldsHasBeenSet = true; m_fields.emplace(std::forward<FieldsKeyT>(key), std::forward<FieldsValueT>(value)); return *this;
146 }
148
150
154 inline const Aws::Map<Aws::String, SectionalElement>& GetSectionalElements() const { return m_sectionalElements; }
155 inline bool SectionalElementsHasBeenSet() const { return m_sectionalElementsHasBeenSet; }
156 template<typename SectionalElementsT = Aws::Map<Aws::String, SectionalElement>>
157 void SetSectionalElements(SectionalElementsT&& value) { m_sectionalElementsHasBeenSet = true; m_sectionalElements = std::forward<SectionalElementsT>(value); }
158 template<typename SectionalElementsT = Aws::Map<Aws::String, SectionalElement>>
159 Form& WithSectionalElements(SectionalElementsT&& value) { SetSectionalElements(std::forward<SectionalElementsT>(value)); return *this;}
160 template<typename SectionalElementsKeyT = Aws::String, typename SectionalElementsValueT = SectionalElement>
161 Form& AddSectionalElements(SectionalElementsKeyT&& key, SectionalElementsValueT&& value) {
162 m_sectionalElementsHasBeenSet = true; m_sectionalElements.emplace(std::forward<SectionalElementsKeyT>(key), std::forward<SectionalElementsValueT>(value)); return *this;
163 }
165
167
170 inline const Aws::String& GetSchemaVersion() const { return m_schemaVersion; }
171 inline bool SchemaVersionHasBeenSet() const { return m_schemaVersionHasBeenSet; }
172 template<typename SchemaVersionT = Aws::String>
173 void SetSchemaVersion(SchemaVersionT&& value) { m_schemaVersionHasBeenSet = true; m_schemaVersion = std::forward<SchemaVersionT>(value); }
174 template<typename SchemaVersionT = Aws::String>
175 Form& WithSchemaVersion(SchemaVersionT&& value) { SetSchemaVersion(std::forward<SchemaVersionT>(value)); return *this;}
177
179
182 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
183 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
184 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
185 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
186 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
187 Form& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
188 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
189 Form& AddTags(TagsKeyT&& key, TagsValueT&& value) {
190 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
191 }
193
195
198 inline const FormCTA& GetCta() const { return m_cta; }
199 inline bool CtaHasBeenSet() const { return m_ctaHasBeenSet; }
200 template<typename CtaT = FormCTA>
201 void SetCta(CtaT&& value) { m_ctaHasBeenSet = true; m_cta = std::forward<CtaT>(value); }
202 template<typename CtaT = FormCTA>
203 Form& WithCta(CtaT&& value) { SetCta(std::forward<CtaT>(value)); return *this;}
205
207
210 inline LabelDecorator GetLabelDecorator() const { return m_labelDecorator; }
211 inline bool LabelDecoratorHasBeenSet() const { return m_labelDecoratorHasBeenSet; }
212 inline void SetLabelDecorator(LabelDecorator value) { m_labelDecoratorHasBeenSet = true; m_labelDecorator = value; }
213 inline Form& WithLabelDecorator(LabelDecorator value) { SetLabelDecorator(value); return *this;}
215 private:
216
217 Aws::String m_appId;
218 bool m_appIdHasBeenSet = false;
219
220 Aws::String m_environmentName;
221 bool m_environmentNameHasBeenSet = false;
222
223 Aws::String m_id;
224 bool m_idHasBeenSet = false;
225
226 Aws::String m_name;
227 bool m_nameHasBeenSet = false;
228
229 FormActionType m_formActionType{FormActionType::NOT_SET};
230 bool m_formActionTypeHasBeenSet = false;
231
232 FormStyle m_style;
233 bool m_styleHasBeenSet = false;
234
235 FormDataTypeConfig m_dataType;
236 bool m_dataTypeHasBeenSet = false;
237
239 bool m_fieldsHasBeenSet = false;
240
241 Aws::Map<Aws::String, SectionalElement> m_sectionalElements;
242 bool m_sectionalElementsHasBeenSet = false;
243
244 Aws::String m_schemaVersion;
245 bool m_schemaVersionHasBeenSet = false;
246
248 bool m_tagsHasBeenSet = false;
249
250 FormCTA m_cta;
251 bool m_ctaHasBeenSet = false;
252
253 LabelDecorator m_labelDecorator{LabelDecorator::NOT_SET};
254 bool m_labelDecoratorHasBeenSet = false;
255 };
256
257} // namespace Model
258} // namespace AmplifyUIBuilder
259} // namespace Aws
const FormCTA & GetCta() const
Definition Form.h:198
void SetCta(CtaT &&value)
Definition Form.h:201
bool SectionalElementsHasBeenSet() const
Definition Form.h:155
Form & WithLabelDecorator(LabelDecorator value)
Definition Form.h:213
Form & WithFields(FieldsT &&value)
Definition Form.h:142
bool LabelDecoratorHasBeenSet() const
Definition Form.h:211
const Aws::Map< Aws::String, FieldConfig > & GetFields() const
Definition Form.h:137
AWS_AMPLIFYUIBUILDER_API Form()=default
const Aws::String & GetId() const
Definition Form.h:79
Form & AddSectionalElements(SectionalElementsKeyT &&key, SectionalElementsValueT &&value)
Definition Form.h:161
const Aws::String & GetAppId() const
Definition Form.h:55
bool EnvironmentNameHasBeenSet() const
Definition Form.h:68
Form & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition Form.h:189
void SetEnvironmentName(EnvironmentNameT &&value)
Definition Form.h:70
void SetSchemaVersion(SchemaVersionT &&value)
Definition Form.h:173
Form & WithSchemaVersion(SchemaVersionT &&value)
Definition Form.h:175
Form & AddFields(FieldsKeyT &&key, FieldsValueT &&value)
Definition Form.h:144
bool FormActionTypeHasBeenSet() const
Definition Form.h:104
Form & WithStyle(StyleT &&value)
Definition Form.h:118
const FormDataTypeConfig & GetDataType() const
Definition Form.h:125
FormActionType GetFormActionType() const
Definition Form.h:103
bool SchemaVersionHasBeenSet() const
Definition Form.h:171
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Form.h:182
void SetTags(TagsT &&value)
Definition Form.h:185
AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
Form & WithName(NameT &&value)
Definition Form.h:96
AWS_AMPLIFYUIBUILDER_API Form & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetFormActionType(FormActionType value)
Definition Form.h:105
LabelDecorator GetLabelDecorator() const
Definition Form.h:210
void SetAppId(AppIdT &&value)
Definition Form.h:58
void SetId(IdT &&value)
Definition Form.h:82
void SetName(NameT &&value)
Definition Form.h:94
const Aws::String & GetSchemaVersion() const
Definition Form.h:170
Form & WithDataType(DataTypeT &&value)
Definition Form.h:130
Form & WithTags(TagsT &&value)
Definition Form.h:187
void SetSectionalElements(SectionalElementsT &&value)
Definition Form.h:157
const Aws::String & GetName() const
Definition Form.h:91
void SetStyle(StyleT &&value)
Definition Form.h:116
const Aws::String & GetEnvironmentName() const
Definition Form.h:67
Form & WithSectionalElements(SectionalElementsT &&value)
Definition Form.h:159
const FormStyle & GetStyle() const
Definition Form.h:113
Form & WithCta(CtaT &&value)
Definition Form.h:203
Form & WithAppId(AppIdT &&value)
Definition Form.h:60
void SetDataType(DataTypeT &&value)
Definition Form.h:128
AWS_AMPLIFYUIBUILDER_API Form(Aws::Utils::Json::JsonView jsonValue)
Form & WithId(IdT &&value)
Definition Form.h:84
Form & WithFormActionType(FormActionType value)
Definition Form.h:106
Form & WithEnvironmentName(EnvironmentNameT &&value)
Definition Form.h:72
void SetFields(FieldsT &&value)
Definition Form.h:140
const Aws::Map< Aws::String, SectionalElement > & GetSectionalElements() const
Definition Form.h:154
void SetLabelDecorator(LabelDecorator value)
Definition Form.h:212
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