AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
CreateFormData.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
37 public:
38 AWS_AMPLIFYUIBUILDER_API CreateFormData() = default;
39 AWS_AMPLIFYUIBUILDER_API CreateFormData(Aws::Utils::Json::JsonView jsonValue);
40 AWS_AMPLIFYUIBUILDER_API CreateFormData& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
47 inline const Aws::String& GetName() const { return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 template <typename NameT = Aws::String>
50 void SetName(NameT&& value) {
51 m_nameHasBeenSet = true;
52 m_name = std::forward<NameT>(value);
53 }
54 template <typename NameT = Aws::String>
55 CreateFormData& WithName(NameT&& value) {
56 SetName(std::forward<NameT>(value));
57 return *this;
58 }
60
62
65 inline const FormDataTypeConfig& GetDataType() const { return m_dataType; }
66 inline bool DataTypeHasBeenSet() const { return m_dataTypeHasBeenSet; }
67 template <typename DataTypeT = FormDataTypeConfig>
68 void SetDataType(DataTypeT&& value) {
69 m_dataTypeHasBeenSet = true;
70 m_dataType = std::forward<DataTypeT>(value);
71 }
72 template <typename DataTypeT = FormDataTypeConfig>
73 CreateFormData& WithDataType(DataTypeT&& value) {
74 SetDataType(std::forward<DataTypeT>(value));
75 return *this;
76 }
78
80
83 inline FormActionType GetFormActionType() const { return m_formActionType; }
84 inline bool FormActionTypeHasBeenSet() const { return m_formActionTypeHasBeenSet; }
85 inline void SetFormActionType(FormActionType value) {
86 m_formActionTypeHasBeenSet = true;
87 m_formActionType = value;
88 }
90 SetFormActionType(value);
91 return *this;
92 }
94
96
99 inline const Aws::Map<Aws::String, FieldConfig>& GetFields() const { return m_fields; }
100 inline bool FieldsHasBeenSet() const { return m_fieldsHasBeenSet; }
101 template <typename FieldsT = Aws::Map<Aws::String, FieldConfig>>
102 void SetFields(FieldsT&& value) {
103 m_fieldsHasBeenSet = true;
104 m_fields = std::forward<FieldsT>(value);
105 }
106 template <typename FieldsT = Aws::Map<Aws::String, FieldConfig>>
107 CreateFormData& WithFields(FieldsT&& value) {
108 SetFields(std::forward<FieldsT>(value));
109 return *this;
110 }
111 template <typename FieldsKeyT = Aws::String, typename FieldsValueT = FieldConfig>
112 CreateFormData& AddFields(FieldsKeyT&& key, FieldsValueT&& value) {
113 m_fieldsHasBeenSet = true;
114 m_fields.emplace(std::forward<FieldsKeyT>(key), std::forward<FieldsValueT>(value));
115 return *this;
116 }
118
120
123 inline const FormStyle& GetStyle() const { return m_style; }
124 inline bool StyleHasBeenSet() const { return m_styleHasBeenSet; }
125 template <typename StyleT = FormStyle>
126 void SetStyle(StyleT&& value) {
127 m_styleHasBeenSet = true;
128 m_style = std::forward<StyleT>(value);
129 }
130 template <typename StyleT = FormStyle>
131 CreateFormData& WithStyle(StyleT&& value) {
132 SetStyle(std::forward<StyleT>(value));
133 return *this;
134 }
136
138
142 inline const Aws::Map<Aws::String, SectionalElement>& GetSectionalElements() const { return m_sectionalElements; }
143 inline bool SectionalElementsHasBeenSet() const { return m_sectionalElementsHasBeenSet; }
144 template <typename SectionalElementsT = Aws::Map<Aws::String, SectionalElement>>
145 void SetSectionalElements(SectionalElementsT&& value) {
146 m_sectionalElementsHasBeenSet = true;
147 m_sectionalElements = std::forward<SectionalElementsT>(value);
148 }
149 template <typename SectionalElementsT = Aws::Map<Aws::String, SectionalElement>>
150 CreateFormData& WithSectionalElements(SectionalElementsT&& value) {
151 SetSectionalElements(std::forward<SectionalElementsT>(value));
152 return *this;
153 }
154 template <typename SectionalElementsKeyT = Aws::String, typename SectionalElementsValueT = SectionalElement>
155 CreateFormData& AddSectionalElements(SectionalElementsKeyT&& key, SectionalElementsValueT&& value) {
156 m_sectionalElementsHasBeenSet = true;
157 m_sectionalElements.emplace(std::forward<SectionalElementsKeyT>(key), std::forward<SectionalElementsValueT>(value));
158 return *this;
159 }
161
163
166 inline const Aws::String& GetSchemaVersion() const { return m_schemaVersion; }
167 inline bool SchemaVersionHasBeenSet() const { return m_schemaVersionHasBeenSet; }
168 template <typename SchemaVersionT = Aws::String>
169 void SetSchemaVersion(SchemaVersionT&& value) {
170 m_schemaVersionHasBeenSet = true;
171 m_schemaVersion = std::forward<SchemaVersionT>(value);
172 }
173 template <typename SchemaVersionT = Aws::String>
174 CreateFormData& WithSchemaVersion(SchemaVersionT&& value) {
175 SetSchemaVersion(std::forward<SchemaVersionT>(value));
176 return *this;
177 }
179
181
185 inline const FormCTA& GetCta() const { return m_cta; }
186 inline bool CtaHasBeenSet() const { return m_ctaHasBeenSet; }
187 template <typename CtaT = FormCTA>
188 void SetCta(CtaT&& value) {
189 m_ctaHasBeenSet = true;
190 m_cta = std::forward<CtaT>(value);
191 }
192 template <typename CtaT = FormCTA>
193 CreateFormData& WithCta(CtaT&& value) {
194 SetCta(std::forward<CtaT>(value));
195 return *this;
196 }
198
200
203 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
204 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
205 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
206 void SetTags(TagsT&& value) {
207 m_tagsHasBeenSet = true;
208 m_tags = std::forward<TagsT>(value);
209 }
210 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
211 CreateFormData& WithTags(TagsT&& value) {
212 SetTags(std::forward<TagsT>(value));
213 return *this;
214 }
215 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
216 CreateFormData& AddTags(TagsKeyT&& key, TagsValueT&& value) {
217 m_tagsHasBeenSet = true;
218 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
219 return *this;
220 }
222
224
227 inline LabelDecorator GetLabelDecorator() const { return m_labelDecorator; }
228 inline bool LabelDecoratorHasBeenSet() const { return m_labelDecoratorHasBeenSet; }
230 m_labelDecoratorHasBeenSet = true;
231 m_labelDecorator = value;
232 }
234 SetLabelDecorator(value);
235 return *this;
236 }
238 private:
239 Aws::String m_name;
240
241 FormDataTypeConfig m_dataType;
242
243 FormActionType m_formActionType{FormActionType::NOT_SET};
244
246
247 FormStyle m_style;
248
249 Aws::Map<Aws::String, SectionalElement> m_sectionalElements;
250
251 Aws::String m_schemaVersion;
252
253 FormCTA m_cta;
254
256
257 LabelDecorator m_labelDecorator{LabelDecorator::NOT_SET};
258 bool m_nameHasBeenSet = false;
259 bool m_dataTypeHasBeenSet = false;
260 bool m_formActionTypeHasBeenSet = false;
261 bool m_fieldsHasBeenSet = false;
262 bool m_styleHasBeenSet = false;
263 bool m_sectionalElementsHasBeenSet = false;
264 bool m_schemaVersionHasBeenSet = false;
265 bool m_ctaHasBeenSet = false;
266 bool m_tagsHasBeenSet = false;
267 bool m_labelDecoratorHasBeenSet = false;
268};
269
270} // namespace Model
271} // namespace AmplifyUIBuilder
272} // namespace Aws
CreateFormData & AddFields(FieldsKeyT &&key, FieldsValueT &&value)
CreateFormData & AddSectionalElements(SectionalElementsKeyT &&key, SectionalElementsValueT &&value)
CreateFormData & WithName(NameT &&value)
CreateFormData & WithSchemaVersion(SchemaVersionT &&value)
CreateFormData & WithDataType(DataTypeT &&value)
CreateFormData & WithTags(TagsT &&value)
void SetSchemaVersion(SchemaVersionT &&value)
void SetFormActionType(FormActionType value)
CreateFormData & WithFields(FieldsT &&value)
const Aws::Map< Aws::String, FieldConfig > & GetFields() const
const Aws::String & GetSchemaVersion() const
CreateFormData & WithLabelDecorator(LabelDecorator value)
CreateFormData & WithSectionalElements(SectionalElementsT &&value)
CreateFormData & AddTags(TagsKeyT &&key, TagsValueT &&value)
void SetSectionalElements(SectionalElementsT &&value)
AWS_AMPLIFYUIBUILDER_API CreateFormData()=default
CreateFormData & WithStyle(StyleT &&value)
const Aws::Map< Aws::String, SectionalElement > & GetSectionalElements() const
AWS_AMPLIFYUIBUILDER_API CreateFormData & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const FormDataTypeConfig & GetDataType() const
AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_AMPLIFYUIBUILDER_API CreateFormData(Aws::Utils::Json::JsonView jsonValue)
CreateFormData & WithFormActionType(FormActionType value)
CreateFormData & WithCta(CtaT &&value)
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