AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
56 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
57 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
58 inline CreateFormData& WithName(const Aws::String& value) { SetName(value); return *this;}
59 inline CreateFormData& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
60 inline CreateFormData& WithName(const char* value) { SetName(value); return *this;}
62
64
67 inline const FormDataTypeConfig& GetDataType() const{ return m_dataType; }
68 inline bool DataTypeHasBeenSet() const { return m_dataTypeHasBeenSet; }
69 inline void SetDataType(const FormDataTypeConfig& value) { m_dataTypeHasBeenSet = true; m_dataType = value; }
70 inline void SetDataType(FormDataTypeConfig&& value) { m_dataTypeHasBeenSet = true; m_dataType = std::move(value); }
71 inline CreateFormData& WithDataType(const FormDataTypeConfig& value) { SetDataType(value); return *this;}
72 inline CreateFormData& WithDataType(FormDataTypeConfig&& value) { SetDataType(std::move(value)); return *this;}
74
76
79 inline const FormActionType& GetFormActionType() const{ return m_formActionType; }
80 inline bool FormActionTypeHasBeenSet() const { return m_formActionTypeHasBeenSet; }
81 inline void SetFormActionType(const FormActionType& value) { m_formActionTypeHasBeenSet = true; m_formActionType = value; }
82 inline void SetFormActionType(FormActionType&& value) { m_formActionTypeHasBeenSet = true; m_formActionType = std::move(value); }
83 inline CreateFormData& WithFormActionType(const FormActionType& value) { SetFormActionType(value); return *this;}
84 inline CreateFormData& WithFormActionType(FormActionType&& value) { SetFormActionType(std::move(value)); return *this;}
86
88
91 inline const Aws::Map<Aws::String, FieldConfig>& GetFields() const{ return m_fields; }
92 inline bool FieldsHasBeenSet() const { return m_fieldsHasBeenSet; }
93 inline void SetFields(const Aws::Map<Aws::String, FieldConfig>& value) { m_fieldsHasBeenSet = true; m_fields = value; }
94 inline void SetFields(Aws::Map<Aws::String, FieldConfig>&& value) { m_fieldsHasBeenSet = true; m_fields = std::move(value); }
95 inline CreateFormData& WithFields(const Aws::Map<Aws::String, FieldConfig>& value) { SetFields(value); return *this;}
96 inline CreateFormData& WithFields(Aws::Map<Aws::String, FieldConfig>&& value) { SetFields(std::move(value)); return *this;}
97 inline CreateFormData& AddFields(const Aws::String& key, const FieldConfig& value) { m_fieldsHasBeenSet = true; m_fields.emplace(key, value); return *this; }
98 inline CreateFormData& AddFields(Aws::String&& key, const FieldConfig& value) { m_fieldsHasBeenSet = true; m_fields.emplace(std::move(key), value); return *this; }
99 inline CreateFormData& AddFields(const Aws::String& key, FieldConfig&& value) { m_fieldsHasBeenSet = true; m_fields.emplace(key, std::move(value)); return *this; }
100 inline CreateFormData& AddFields(Aws::String&& key, FieldConfig&& value) { m_fieldsHasBeenSet = true; m_fields.emplace(std::move(key), std::move(value)); return *this; }
101 inline CreateFormData& AddFields(const char* key, FieldConfig&& value) { m_fieldsHasBeenSet = true; m_fields.emplace(key, std::move(value)); return *this; }
102 inline CreateFormData& AddFields(const char* key, const FieldConfig& value) { m_fieldsHasBeenSet = true; m_fields.emplace(key, value); return *this; }
104
106
109 inline const FormStyle& GetStyle() const{ return m_style; }
110 inline bool StyleHasBeenSet() const { return m_styleHasBeenSet; }
111 inline void SetStyle(const FormStyle& value) { m_styleHasBeenSet = true; m_style = value; }
112 inline void SetStyle(FormStyle&& value) { m_styleHasBeenSet = true; m_style = std::move(value); }
113 inline CreateFormData& WithStyle(const FormStyle& value) { SetStyle(value); return *this;}
114 inline CreateFormData& WithStyle(FormStyle&& value) { SetStyle(std::move(value)); return *this;}
116
118
122 inline const Aws::Map<Aws::String, SectionalElement>& GetSectionalElements() const{ return m_sectionalElements; }
123 inline bool SectionalElementsHasBeenSet() const { return m_sectionalElementsHasBeenSet; }
124 inline void SetSectionalElements(const Aws::Map<Aws::String, SectionalElement>& value) { m_sectionalElementsHasBeenSet = true; m_sectionalElements = value; }
125 inline void SetSectionalElements(Aws::Map<Aws::String, SectionalElement>&& value) { m_sectionalElementsHasBeenSet = true; m_sectionalElements = std::move(value); }
128 inline CreateFormData& AddSectionalElements(const Aws::String& key, const SectionalElement& value) { m_sectionalElementsHasBeenSet = true; m_sectionalElements.emplace(key, value); return *this; }
129 inline CreateFormData& AddSectionalElements(Aws::String&& key, const SectionalElement& value) { m_sectionalElementsHasBeenSet = true; m_sectionalElements.emplace(std::move(key), value); return *this; }
130 inline CreateFormData& AddSectionalElements(const Aws::String& key, SectionalElement&& value) { m_sectionalElementsHasBeenSet = true; m_sectionalElements.emplace(key, std::move(value)); return *this; }
131 inline CreateFormData& AddSectionalElements(Aws::String&& key, SectionalElement&& value) { m_sectionalElementsHasBeenSet = true; m_sectionalElements.emplace(std::move(key), std::move(value)); return *this; }
132 inline CreateFormData& AddSectionalElements(const char* key, SectionalElement&& value) { m_sectionalElementsHasBeenSet = true; m_sectionalElements.emplace(key, std::move(value)); return *this; }
133 inline CreateFormData& AddSectionalElements(const char* key, const SectionalElement& value) { m_sectionalElementsHasBeenSet = true; m_sectionalElements.emplace(key, value); return *this; }
135
137
140 inline const Aws::String& GetSchemaVersion() const{ return m_schemaVersion; }
141 inline bool SchemaVersionHasBeenSet() const { return m_schemaVersionHasBeenSet; }
142 inline void SetSchemaVersion(const Aws::String& value) { m_schemaVersionHasBeenSet = true; m_schemaVersion = value; }
143 inline void SetSchemaVersion(Aws::String&& value) { m_schemaVersionHasBeenSet = true; m_schemaVersion = std::move(value); }
144 inline void SetSchemaVersion(const char* value) { m_schemaVersionHasBeenSet = true; m_schemaVersion.assign(value); }
145 inline CreateFormData& WithSchemaVersion(const Aws::String& value) { SetSchemaVersion(value); return *this;}
146 inline CreateFormData& WithSchemaVersion(Aws::String&& value) { SetSchemaVersion(std::move(value)); return *this;}
147 inline CreateFormData& WithSchemaVersion(const char* value) { SetSchemaVersion(value); return *this;}
149
151
155 inline const FormCTA& GetCta() const{ return m_cta; }
156 inline bool CtaHasBeenSet() const { return m_ctaHasBeenSet; }
157 inline void SetCta(const FormCTA& value) { m_ctaHasBeenSet = true; m_cta = value; }
158 inline void SetCta(FormCTA&& value) { m_ctaHasBeenSet = true; m_cta = std::move(value); }
159 inline CreateFormData& WithCta(const FormCTA& value) { SetCta(value); return *this;}
160 inline CreateFormData& WithCta(FormCTA&& value) { SetCta(std::move(value)); return *this;}
162
164
167 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
168 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
169 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
170 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
171 inline CreateFormData& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
172 inline CreateFormData& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
173 inline CreateFormData& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
174 inline CreateFormData& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
175 inline CreateFormData& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
176 inline CreateFormData& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
177 inline CreateFormData& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
178 inline CreateFormData& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
179 inline CreateFormData& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
181
183
186 inline const LabelDecorator& GetLabelDecorator() const{ return m_labelDecorator; }
187 inline bool LabelDecoratorHasBeenSet() const { return m_labelDecoratorHasBeenSet; }
188 inline void SetLabelDecorator(const LabelDecorator& value) { m_labelDecoratorHasBeenSet = true; m_labelDecorator = value; }
189 inline void SetLabelDecorator(LabelDecorator&& value) { m_labelDecoratorHasBeenSet = true; m_labelDecorator = std::move(value); }
190 inline CreateFormData& WithLabelDecorator(const LabelDecorator& value) { SetLabelDecorator(value); return *this;}
191 inline CreateFormData& WithLabelDecorator(LabelDecorator&& value) { SetLabelDecorator(std::move(value)); return *this;}
193 private:
194
195 Aws::String m_name;
196 bool m_nameHasBeenSet = false;
197
198 FormDataTypeConfig m_dataType;
199 bool m_dataTypeHasBeenSet = false;
200
201 FormActionType m_formActionType;
202 bool m_formActionTypeHasBeenSet = false;
203
205 bool m_fieldsHasBeenSet = false;
206
207 FormStyle m_style;
208 bool m_styleHasBeenSet = false;
209
210 Aws::Map<Aws::String, SectionalElement> m_sectionalElements;
211 bool m_sectionalElementsHasBeenSet = false;
212
213 Aws::String m_schemaVersion;
214 bool m_schemaVersionHasBeenSet = false;
215
216 FormCTA m_cta;
217 bool m_ctaHasBeenSet = false;
218
220 bool m_tagsHasBeenSet = false;
221
222 LabelDecorator m_labelDecorator;
223 bool m_labelDecoratorHasBeenSet = false;
224 };
225
226} // namespace Model
227} // namespace AmplifyUIBuilder
228} // namespace Aws
CreateFormData & WithSectionalElements(Aws::Map< Aws::String, SectionalElement > &&value)
CreateFormData & WithStyle(const FormStyle &value)
CreateFormData & WithFields(Aws::Map< Aws::String, FieldConfig > &&value)
CreateFormData & AddSectionalElements(const Aws::String &key, SectionalElement &&value)
void SetSectionalElements(const Aws::Map< Aws::String, SectionalElement > &value)
CreateFormData & WithLabelDecorator(const LabelDecorator &value)
CreateFormData & AddSectionalElements(const char *key, SectionalElement &&value)
CreateFormData & AddTags(Aws::String &&key, const Aws::String &value)
CreateFormData & WithSchemaVersion(const Aws::String &value)
CreateFormData & WithName(const Aws::String &value)
CreateFormData & WithName(Aws::String &&value)
void SetSchemaVersion(const Aws::String &value)
const LabelDecorator & GetLabelDecorator() const
void SetFormActionType(const FormActionType &value)
CreateFormData & WithSchemaVersion(Aws::String &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateFormData & AddSectionalElements(Aws::String &&key, SectionalElement &&value)
CreateFormData & AddTags(const char *key, Aws::String &&value)
CreateFormData & WithName(const char *value)
CreateFormData & AddTags(const char *key, const char *value)
CreateFormData & AddTags(Aws::String &&key, const char *value)
CreateFormData & WithSchemaVersion(const char *value)
CreateFormData & AddTags(Aws::String &&key, Aws::String &&value)
CreateFormData & WithCta(const FormCTA &value)
void SetDataType(const FormDataTypeConfig &value)
CreateFormData & AddTags(const Aws::String &key, const Aws::String &value)
CreateFormData & WithCta(FormCTA &&value)
const Aws::Map< Aws::String, FieldConfig > & GetFields() const
CreateFormData & WithDataType(FormDataTypeConfig &&value)
void SetFields(Aws::Map< Aws::String, FieldConfig > &&value)
CreateFormData & AddFields(const char *key, FieldConfig &&value)
CreateFormData & WithSectionalElements(const Aws::Map< Aws::String, SectionalElement > &value)
const Aws::String & GetSchemaVersion() const
CreateFormData & AddSectionalElements(Aws::String &&key, const SectionalElement &value)
void SetFormActionType(FormActionType &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateFormData & AddSectionalElements(const char *key, const SectionalElement &value)
void SetName(const Aws::String &value)
CreateFormData & AddFields(Aws::String &&key, FieldConfig &&value)
void SetLabelDecorator(const LabelDecorator &value)
CreateFormData & AddTags(const Aws::String &key, Aws::String &&value)
void SetSectionalElements(Aws::Map< Aws::String, SectionalElement > &&value)
CreateFormData & WithFormActionType(const FormActionType &value)
CreateFormData & AddFields(const char *key, const FieldConfig &value)
CreateFormData & WithFields(const Aws::Map< Aws::String, FieldConfig > &value)
CreateFormData & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Map< Aws::String, SectionalElement > & GetSectionalElements() const
CreateFormData & WithFormActionType(FormActionType &&value)
AWS_AMPLIFYUIBUILDER_API CreateFormData & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const FormDataTypeConfig & GetDataType() const
CreateFormData & AddFields(const Aws::String &key, const FieldConfig &value)
CreateFormData & WithDataType(const FormDataTypeConfig &value)
AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_AMPLIFYUIBUILDER_API CreateFormData(Aws::Utils::Json::JsonView jsonValue)
CreateFormData & AddFields(const Aws::String &key, FieldConfig &&value)
void SetDataType(FormDataTypeConfig &&value)
CreateFormData & WithLabelDecorator(LabelDecorator &&value)
CreateFormData & AddSectionalElements(const Aws::String &key, const SectionalElement &value)
void SetFields(const Aws::Map< Aws::String, FieldConfig > &value)
CreateFormData & WithStyle(FormStyle &&value)
void SetLabelDecorator(LabelDecorator &&value)
CreateFormData & AddFields(Aws::String &&key, const FieldConfig &value)
const FormActionType & GetFormActionType() const
CreateFormData & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
AWS_AMPLIFYUIBUILDER_API CreateFormData()
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