AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateFormData.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 CreateFormData() = default;
44 AWS_AMPLIFYUIBUILDER_API CreateFormData(Aws::Utils::Json::JsonView jsonValue);
45 AWS_AMPLIFYUIBUILDER_API CreateFormData& 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 CreateFormData& 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 CreateFormData& 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 CreateFormData& 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 CreateFormData& WithFields(FieldsT&& value) { SetFields(std::forward<FieldsT>(value)); return *this;}
93 template<typename FieldsKeyT = Aws::String, typename FieldsValueT = FieldConfig>
94 CreateFormData& 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 CreateFormData& 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 CreateFormData& WithSectionalElements(SectionalElementsT&& value) { SetSectionalElements(std::forward<SectionalElementsT>(value)); return *this;}
122 template<typename SectionalElementsKeyT = Aws::String, typename SectionalElementsValueT = SectionalElement>
123 CreateFormData& 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 CreateFormData& 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 CreateFormData& WithCta(CtaT&& value) { SetCta(std::forward<CtaT>(value)); return *this;}
152
154
157 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
158 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
159 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
160 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
161 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
162 CreateFormData& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
163 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
164 CreateFormData& AddTags(TagsKeyT&& key, TagsValueT&& value) {
165 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
166 }
168
170
173 inline LabelDecorator GetLabelDecorator() const { return m_labelDecorator; }
174 inline bool LabelDecoratorHasBeenSet() const { return m_labelDecoratorHasBeenSet; }
175 inline void SetLabelDecorator(LabelDecorator value) { m_labelDecoratorHasBeenSet = true; m_labelDecorator = value; }
178 private:
179
180 Aws::String m_name;
181 bool m_nameHasBeenSet = false;
182
183 FormDataTypeConfig m_dataType;
184 bool m_dataTypeHasBeenSet = false;
185
186 FormActionType m_formActionType{FormActionType::NOT_SET};
187 bool m_formActionTypeHasBeenSet = false;
188
190 bool m_fieldsHasBeenSet = false;
191
192 FormStyle m_style;
193 bool m_styleHasBeenSet = false;
194
195 Aws::Map<Aws::String, SectionalElement> m_sectionalElements;
196 bool m_sectionalElementsHasBeenSet = false;
197
198 Aws::String m_schemaVersion;
199 bool m_schemaVersionHasBeenSet = false;
200
201 FormCTA m_cta;
202 bool m_ctaHasBeenSet = false;
203
205 bool m_tagsHasBeenSet = false;
206
207 LabelDecorator m_labelDecorator{LabelDecorator::NOT_SET};
208 bool m_labelDecoratorHasBeenSet = false;
209 };
210
211} // namespace Model
212} // namespace AmplifyUIBuilder
213} // 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