AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
UpdateFormData.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 UpdateFormData() = default;
39 AWS_AMPLIFYUIBUILDER_API UpdateFormData(Aws::Utils::Json::JsonView jsonValue);
40 AWS_AMPLIFYUIBUILDER_API UpdateFormData& 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 UpdateFormData& 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 UpdateFormData& 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 UpdateFormData& WithFields(FieldsT&& value) {
108 SetFields(std::forward<FieldsT>(value));
109 return *this;
110 }
111 template <typename FieldsKeyT = Aws::String, typename FieldsValueT = FieldConfig>
112 UpdateFormData& 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 UpdateFormData& 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 UpdateFormData& WithSectionalElements(SectionalElementsT&& value) {
151 SetSectionalElements(std::forward<SectionalElementsT>(value));
152 return *this;
153 }
154 template <typename SectionalElementsKeyT = Aws::String, typename SectionalElementsValueT = SectionalElement>
155 UpdateFormData& 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 UpdateFormData& 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 UpdateFormData& WithCta(CtaT&& value) {
194 SetCta(std::forward<CtaT>(value));
195 return *this;
196 }
198
200
203 inline LabelDecorator GetLabelDecorator() const { return m_labelDecorator; }
204 inline bool LabelDecoratorHasBeenSet() const { return m_labelDecoratorHasBeenSet; }
206 m_labelDecoratorHasBeenSet = true;
207 m_labelDecorator = value;
208 }
210 SetLabelDecorator(value);
211 return *this;
212 }
214 private:
215 Aws::String m_name;
216
217 FormDataTypeConfig m_dataType;
218
219 FormActionType m_formActionType{FormActionType::NOT_SET};
220
222
223 FormStyle m_style;
224
225 Aws::Map<Aws::String, SectionalElement> m_sectionalElements;
226
227 Aws::String m_schemaVersion;
228
229 FormCTA m_cta;
230
231 LabelDecorator m_labelDecorator{LabelDecorator::NOT_SET};
232 bool m_nameHasBeenSet = false;
233 bool m_dataTypeHasBeenSet = false;
234 bool m_formActionTypeHasBeenSet = false;
235 bool m_fieldsHasBeenSet = false;
236 bool m_styleHasBeenSet = false;
237 bool m_sectionalElementsHasBeenSet = false;
238 bool m_schemaVersionHasBeenSet = false;
239 bool m_ctaHasBeenSet = false;
240 bool m_labelDecoratorHasBeenSet = false;
241};
242
243} // namespace Model
244} // namespace AmplifyUIBuilder
245} // namespace Aws
UpdateFormData & WithSchemaVersion(SchemaVersionT &&value)
UpdateFormData & WithSectionalElements(SectionalElementsT &&value)
AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
UpdateFormData & WithFields(FieldsT &&value)
void SetSchemaVersion(SchemaVersionT &&value)
UpdateFormData & WithFormActionType(FormActionType value)
UpdateFormData & AddFields(FieldsKeyT &&key, FieldsValueT &&value)
UpdateFormData & WithLabelDecorator(LabelDecorator value)
UpdateFormData & WithName(NameT &&value)
AWS_AMPLIFYUIBUILDER_API UpdateFormData(Aws::Utils::Json::JsonView jsonValue)
UpdateFormData & WithDataType(DataTypeT &&value)
AWS_AMPLIFYUIBUILDER_API UpdateFormData & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, FieldConfig > & GetFields() const
const Aws::Map< Aws::String, SectionalElement > & GetSectionalElements() const
UpdateFormData & WithCta(CtaT &&value)
UpdateFormData & WithStyle(StyleT &&value)
const Aws::String & GetSchemaVersion() const
void SetFormActionType(FormActionType value)
void SetSectionalElements(SectionalElementsT &&value)
UpdateFormData & AddSectionalElements(SectionalElementsKeyT &&key, SectionalElementsValueT &&value)
AWS_AMPLIFYUIBUILDER_API UpdateFormData()=default
const FormDataTypeConfig & GetDataType() const
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