AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateFormData.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/FormDataTypeConfig.h>
10#include <aws/amplifyuibuilder/model/FormActionType.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/amplifyuibuilder/model/FormStyle.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
41 {
42 public:
43 AWS_AMPLIFYUIBUILDER_API UpdateFormData() = default;
44 AWS_AMPLIFYUIBUILDER_API UpdateFormData(Aws::Utils::Json::JsonView jsonValue);
45 AWS_AMPLIFYUIBUILDER_API UpdateFormData& operator=(Aws::Utils::Json::JsonView jsonValue);
46 AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
53 inline const Aws::String& GetName() const { return m_name; }
54 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
55 template<typename NameT = Aws::String>
56 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
57 template<typename NameT = Aws::String>
58 UpdateFormData& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_dataTypeHasBeenSet = true; m_dataType = std::forward<DataTypeT>(value); }
69 template<typename DataTypeT = FormDataTypeConfig>
70 UpdateFormData& WithDataType(DataTypeT&& value) { SetDataType(std::forward<DataTypeT>(value)); return *this;}
72
74
77 inline FormActionType GetFormActionType() const { return m_formActionType; }
78 inline bool FormActionTypeHasBeenSet() const { return m_formActionTypeHasBeenSet; }
79 inline void SetFormActionType(FormActionType value) { m_formActionTypeHasBeenSet = true; m_formActionType = value; }
80 inline UpdateFormData& WithFormActionType(FormActionType value) { SetFormActionType(value); return *this;}
82
84
87 inline const Aws::Map<Aws::String, FieldConfig>& GetFields() const { return m_fields; }
88 inline bool FieldsHasBeenSet() const { return m_fieldsHasBeenSet; }
89 template<typename FieldsT = Aws::Map<Aws::String, FieldConfig>>
90 void SetFields(FieldsT&& value) { m_fieldsHasBeenSet = true; m_fields = std::forward<FieldsT>(value); }
91 template<typename FieldsT = Aws::Map<Aws::String, FieldConfig>>
92 UpdateFormData& WithFields(FieldsT&& value) { SetFields(std::forward<FieldsT>(value)); return *this;}
93 template<typename FieldsKeyT = Aws::String, typename FieldsValueT = FieldConfig>
94 UpdateFormData& AddFields(FieldsKeyT&& key, FieldsValueT&& value) {
95 m_fieldsHasBeenSet = true; m_fields.emplace(std::forward<FieldsKeyT>(key), std::forward<FieldsValueT>(value)); return *this;
96 }
98
100
103 inline const FormStyle& GetStyle() const { return m_style; }
104 inline bool StyleHasBeenSet() const { return m_styleHasBeenSet; }
105 template<typename StyleT = FormStyle>
106 void SetStyle(StyleT&& value) { m_styleHasBeenSet = true; m_style = std::forward<StyleT>(value); }
107 template<typename StyleT = FormStyle>
108 UpdateFormData& WithStyle(StyleT&& value) { SetStyle(std::forward<StyleT>(value)); return *this;}
110
112
116 inline const Aws::Map<Aws::String, SectionalElement>& GetSectionalElements() const { return m_sectionalElements; }
117 inline bool SectionalElementsHasBeenSet() const { return m_sectionalElementsHasBeenSet; }
118 template<typename SectionalElementsT = Aws::Map<Aws::String, SectionalElement>>
119 void SetSectionalElements(SectionalElementsT&& value) { m_sectionalElementsHasBeenSet = true; m_sectionalElements = std::forward<SectionalElementsT>(value); }
120 template<typename SectionalElementsT = Aws::Map<Aws::String, SectionalElement>>
121 UpdateFormData& WithSectionalElements(SectionalElementsT&& value) { SetSectionalElements(std::forward<SectionalElementsT>(value)); return *this;}
122 template<typename SectionalElementsKeyT = Aws::String, typename SectionalElementsValueT = SectionalElement>
123 UpdateFormData& AddSectionalElements(SectionalElementsKeyT&& key, SectionalElementsValueT&& value) {
124 m_sectionalElementsHasBeenSet = true; m_sectionalElements.emplace(std::forward<SectionalElementsKeyT>(key), std::forward<SectionalElementsValueT>(value)); return *this;
125 }
127
129
132 inline const Aws::String& GetSchemaVersion() const { return m_schemaVersion; }
133 inline bool SchemaVersionHasBeenSet() const { return m_schemaVersionHasBeenSet; }
134 template<typename SchemaVersionT = Aws::String>
135 void SetSchemaVersion(SchemaVersionT&& value) { m_schemaVersionHasBeenSet = true; m_schemaVersion = std::forward<SchemaVersionT>(value); }
136 template<typename SchemaVersionT = Aws::String>
137 UpdateFormData& WithSchemaVersion(SchemaVersionT&& value) { SetSchemaVersion(std::forward<SchemaVersionT>(value)); return *this;}
139
141
145 inline const FormCTA& GetCta() const { return m_cta; }
146 inline bool CtaHasBeenSet() const { return m_ctaHasBeenSet; }
147 template<typename CtaT = FormCTA>
148 void SetCta(CtaT&& value) { m_ctaHasBeenSet = true; m_cta = std::forward<CtaT>(value); }
149 template<typename CtaT = FormCTA>
150 UpdateFormData& WithCta(CtaT&& value) { SetCta(std::forward<CtaT>(value)); return *this;}
152
154
157 inline LabelDecorator GetLabelDecorator() const { return m_labelDecorator; }
158 inline bool LabelDecoratorHasBeenSet() const { return m_labelDecoratorHasBeenSet; }
159 inline void SetLabelDecorator(LabelDecorator value) { m_labelDecoratorHasBeenSet = true; m_labelDecorator = value; }
162 private:
163
164 Aws::String m_name;
165 bool m_nameHasBeenSet = false;
166
167 FormDataTypeConfig m_dataType;
168 bool m_dataTypeHasBeenSet = false;
169
170 FormActionType m_formActionType{FormActionType::NOT_SET};
171 bool m_formActionTypeHasBeenSet = false;
172
174 bool m_fieldsHasBeenSet = false;
175
176 FormStyle m_style;
177 bool m_styleHasBeenSet = false;
178
179 Aws::Map<Aws::String, SectionalElement> m_sectionalElements;
180 bool m_sectionalElementsHasBeenSet = false;
181
182 Aws::String m_schemaVersion;
183 bool m_schemaVersionHasBeenSet = false;
184
185 FormCTA m_cta;
186 bool m_ctaHasBeenSet = false;
187
188 LabelDecorator m_labelDecorator{LabelDecorator::NOT_SET};
189 bool m_labelDecoratorHasBeenSet = false;
190 };
191
192} // namespace Model
193} // namespace AmplifyUIBuilder
194} // 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