AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 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 UpdateFormData& WithName(const Aws::String& value) { SetName(value); return *this;}
59 inline UpdateFormData& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
60 inline UpdateFormData& 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 UpdateFormData& WithDataType(const FormDataTypeConfig& value) { SetDataType(value); return *this;}
72 inline UpdateFormData& 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 UpdateFormData& WithFormActionType(const FormActionType& value) { SetFormActionType(value); return *this;}
84 inline UpdateFormData& 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 UpdateFormData& WithFields(const Aws::Map<Aws::String, FieldConfig>& value) { SetFields(value); return *this;}
96 inline UpdateFormData& WithFields(Aws::Map<Aws::String, FieldConfig>&& value) { SetFields(std::move(value)); return *this;}
97 inline UpdateFormData& AddFields(const Aws::String& key, const FieldConfig& value) { m_fieldsHasBeenSet = true; m_fields.emplace(key, value); return *this; }
98 inline UpdateFormData& AddFields(Aws::String&& key, const FieldConfig& value) { m_fieldsHasBeenSet = true; m_fields.emplace(std::move(key), value); return *this; }
99 inline UpdateFormData& AddFields(const Aws::String& key, FieldConfig&& value) { m_fieldsHasBeenSet = true; m_fields.emplace(key, std::move(value)); return *this; }
100 inline UpdateFormData& AddFields(Aws::String&& key, FieldConfig&& value) { m_fieldsHasBeenSet = true; m_fields.emplace(std::move(key), std::move(value)); return *this; }
101 inline UpdateFormData& AddFields(const char* key, FieldConfig&& value) { m_fieldsHasBeenSet = true; m_fields.emplace(key, std::move(value)); return *this; }
102 inline UpdateFormData& 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 UpdateFormData& WithStyle(const FormStyle& value) { SetStyle(value); return *this;}
114 inline UpdateFormData& 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 UpdateFormData& AddSectionalElements(const Aws::String& key, const SectionalElement& value) { m_sectionalElementsHasBeenSet = true; m_sectionalElements.emplace(key, value); return *this; }
129 inline UpdateFormData& AddSectionalElements(Aws::String&& key, const SectionalElement& value) { m_sectionalElementsHasBeenSet = true; m_sectionalElements.emplace(std::move(key), value); return *this; }
130 inline UpdateFormData& AddSectionalElements(const Aws::String& key, SectionalElement&& value) { m_sectionalElementsHasBeenSet = true; m_sectionalElements.emplace(key, std::move(value)); return *this; }
131 inline UpdateFormData& AddSectionalElements(Aws::String&& key, SectionalElement&& value) { m_sectionalElementsHasBeenSet = true; m_sectionalElements.emplace(std::move(key), std::move(value)); return *this; }
132 inline UpdateFormData& AddSectionalElements(const char* key, SectionalElement&& value) { m_sectionalElementsHasBeenSet = true; m_sectionalElements.emplace(key, std::move(value)); return *this; }
133 inline UpdateFormData& 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 UpdateFormData& WithSchemaVersion(const Aws::String& value) { SetSchemaVersion(value); return *this;}
146 inline UpdateFormData& WithSchemaVersion(Aws::String&& value) { SetSchemaVersion(std::move(value)); return *this;}
147 inline UpdateFormData& 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 UpdateFormData& WithCta(const FormCTA& value) { SetCta(value); return *this;}
160 inline UpdateFormData& WithCta(FormCTA&& value) { SetCta(std::move(value)); return *this;}
162
164
167 inline const LabelDecorator& GetLabelDecorator() const{ return m_labelDecorator; }
168 inline bool LabelDecoratorHasBeenSet() const { return m_labelDecoratorHasBeenSet; }
169 inline void SetLabelDecorator(const LabelDecorator& value) { m_labelDecoratorHasBeenSet = true; m_labelDecorator = value; }
170 inline void SetLabelDecorator(LabelDecorator&& value) { m_labelDecoratorHasBeenSet = true; m_labelDecorator = std::move(value); }
171 inline UpdateFormData& WithLabelDecorator(const LabelDecorator& value) { SetLabelDecorator(value); return *this;}
172 inline UpdateFormData& WithLabelDecorator(LabelDecorator&& value) { SetLabelDecorator(std::move(value)); return *this;}
174 private:
175
176 Aws::String m_name;
177 bool m_nameHasBeenSet = false;
178
179 FormDataTypeConfig m_dataType;
180 bool m_dataTypeHasBeenSet = false;
181
182 FormActionType m_formActionType;
183 bool m_formActionTypeHasBeenSet = false;
184
186 bool m_fieldsHasBeenSet = false;
187
188 FormStyle m_style;
189 bool m_styleHasBeenSet = false;
190
191 Aws::Map<Aws::String, SectionalElement> m_sectionalElements;
192 bool m_sectionalElementsHasBeenSet = false;
193
194 Aws::String m_schemaVersion;
195 bool m_schemaVersionHasBeenSet = false;
196
197 FormCTA m_cta;
198 bool m_ctaHasBeenSet = false;
199
200 LabelDecorator m_labelDecorator;
201 bool m_labelDecoratorHasBeenSet = false;
202 };
203
204} // namespace Model
205} // namespace AmplifyUIBuilder
206} // namespace Aws
void SetFormActionType(FormActionType &&value)
UpdateFormData & AddFields(Aws::String &&key, const FieldConfig &value)
void SetDataType(FormDataTypeConfig &&value)
const FormActionType & GetFormActionType() const
void SetSectionalElements(const Aws::Map< Aws::String, SectionalElement > &value)
UpdateFormData & AddSectionalElements(Aws::String &&key, const SectionalElement &value)
UpdateFormData & WithStyle(FormStyle &&value)
AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetFields(const Aws::Map< Aws::String, FieldConfig > &value)
UpdateFormData & WithCta(const FormCTA &value)
UpdateFormData & WithName(const char *value)
void SetLabelDecorator(LabelDecorator &&value)
UpdateFormData & AddFields(const char *key, FieldConfig &&value)
void SetFormActionType(const FormActionType &value)
UpdateFormData & AddSectionalElements(const char *key, SectionalElement &&value)
void SetFields(Aws::Map< Aws::String, FieldConfig > &&value)
UpdateFormData & AddSectionalElements(const Aws::String &key, SectionalElement &&value)
UpdateFormData & WithFormActionType(FormActionType &&value)
void SetSchemaVersion(const Aws::String &value)
UpdateFormData & AddSectionalElements(Aws::String &&key, SectionalElement &&value)
UpdateFormData & WithSectionalElements(Aws::Map< Aws::String, SectionalElement > &&value)
void SetSectionalElements(Aws::Map< Aws::String, SectionalElement > &&value)
UpdateFormData & AddSectionalElements(const char *key, const SectionalElement &value)
UpdateFormData & AddSectionalElements(const Aws::String &key, const SectionalElement &value)
AWS_AMPLIFYUIBUILDER_API UpdateFormData(Aws::Utils::Json::JsonView jsonValue)
AWS_AMPLIFYUIBUILDER_API UpdateFormData & operator=(Aws::Utils::Json::JsonView jsonValue)
UpdateFormData & WithStyle(const FormStyle &value)
UpdateFormData & WithSchemaVersion(const char *value)
UpdateFormData & AddFields(const Aws::String &key, FieldConfig &&value)
const LabelDecorator & GetLabelDecorator() const
const Aws::Map< Aws::String, FieldConfig > & GetFields() const
const Aws::Map< Aws::String, SectionalElement > & GetSectionalElements() const
UpdateFormData & WithFields(Aws::Map< Aws::String, FieldConfig > &&value)
UpdateFormData & AddFields(const Aws::String &key, const FieldConfig &value)
UpdateFormData & AddFields(const char *key, const FieldConfig &value)
UpdateFormData & WithDataType(FormDataTypeConfig &&value)
UpdateFormData & WithName(const Aws::String &value)
UpdateFormData & WithLabelDecorator(const LabelDecorator &value)
void SetDataType(const FormDataTypeConfig &value)
const Aws::String & GetSchemaVersion() const
UpdateFormData & WithFields(const Aws::Map< Aws::String, FieldConfig > &value)
UpdateFormData & WithDataType(const FormDataTypeConfig &value)
UpdateFormData & WithSectionalElements(const Aws::Map< Aws::String, SectionalElement > &value)
UpdateFormData & AddFields(Aws::String &&key, FieldConfig &&value)
const FormDataTypeConfig & GetDataType() const
UpdateFormData & WithCta(FormCTA &&value)
UpdateFormData & WithSchemaVersion(const Aws::String &value)
UpdateFormData & WithFormActionType(const FormActionType &value)
void SetName(const Aws::String &value)
UpdateFormData & WithLabelDecorator(LabelDecorator &&value)
AWS_AMPLIFYUIBUILDER_API UpdateFormData()
UpdateFormData & WithSchemaVersion(Aws::String &&value)
UpdateFormData & WithName(Aws::String &&value)
void SetLabelDecorator(const LabelDecorator &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