AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
CreateComponentData.h
1
6#pragma once
7#include <aws/amplifyuibuilder/AmplifyUIBuilder_EXPORTS.h>
8#include <aws/amplifyuibuilder/model/ComponentBindingPropertiesValue.h>
9#include <aws/amplifyuibuilder/model/ComponentChild.h>
10#include <aws/amplifyuibuilder/model/ComponentDataConfiguration.h>
11#include <aws/amplifyuibuilder/model/ComponentEvent.h>
12#include <aws/amplifyuibuilder/model/ComponentProperty.h>
13#include <aws/amplifyuibuilder/model/ComponentVariant.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <aws/core/utils/memory/stl/AWSString.h>
16#include <aws/core/utils/memory/stl/AWSVector.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 CreateComponentData() = default;
39 AWS_AMPLIFYUIBUILDER_API CreateComponentData(Aws::Utils::Json::JsonView jsonValue);
40 AWS_AMPLIFYUIBUILDER_API CreateComponentData& 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 CreateComponentData& WithName(NameT&& value) {
56 SetName(std::forward<NameT>(value));
57 return *this;
58 }
60
62
66 inline const Aws::String& GetSourceId() const { return m_sourceId; }
67 inline bool SourceIdHasBeenSet() const { return m_sourceIdHasBeenSet; }
68 template <typename SourceIdT = Aws::String>
69 void SetSourceId(SourceIdT&& value) {
70 m_sourceIdHasBeenSet = true;
71 m_sourceId = std::forward<SourceIdT>(value);
72 }
73 template <typename SourceIdT = Aws::String>
74 CreateComponentData& WithSourceId(SourceIdT&& value) {
75 SetSourceId(std::forward<SourceIdT>(value));
76 return *this;
77 }
79
81
85 inline const Aws::String& GetComponentType() const { return m_componentType; }
86 inline bool ComponentTypeHasBeenSet() const { return m_componentTypeHasBeenSet; }
87 template <typename ComponentTypeT = Aws::String>
88 void SetComponentType(ComponentTypeT&& value) {
89 m_componentTypeHasBeenSet = true;
90 m_componentType = std::forward<ComponentTypeT>(value);
91 }
92 template <typename ComponentTypeT = Aws::String>
93 CreateComponentData& WithComponentType(ComponentTypeT&& value) {
94 SetComponentType(std::forward<ComponentTypeT>(value));
95 return *this;
96 }
98
100
103 inline const Aws::Map<Aws::String, ComponentProperty>& GetProperties() const { return m_properties; }
104 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
105 template <typename PropertiesT = Aws::Map<Aws::String, ComponentProperty>>
106 void SetProperties(PropertiesT&& value) {
107 m_propertiesHasBeenSet = true;
108 m_properties = std::forward<PropertiesT>(value);
109 }
110 template <typename PropertiesT = Aws::Map<Aws::String, ComponentProperty>>
111 CreateComponentData& WithProperties(PropertiesT&& value) {
112 SetProperties(std::forward<PropertiesT>(value));
113 return *this;
114 }
115 template <typename PropertiesKeyT = Aws::String, typename PropertiesValueT = ComponentProperty>
116 CreateComponentData& AddProperties(PropertiesKeyT&& key, PropertiesValueT&& value) {
117 m_propertiesHasBeenSet = true;
118 m_properties.emplace(std::forward<PropertiesKeyT>(key), std::forward<PropertiesValueT>(value));
119 return *this;
120 }
122
124
127 inline const Aws::Vector<ComponentChild>& GetChildren() const { return m_children; }
128 inline bool ChildrenHasBeenSet() const { return m_childrenHasBeenSet; }
129 template <typename ChildrenT = Aws::Vector<ComponentChild>>
130 void SetChildren(ChildrenT&& value) {
131 m_childrenHasBeenSet = true;
132 m_children = std::forward<ChildrenT>(value);
133 }
134 template <typename ChildrenT = Aws::Vector<ComponentChild>>
135 CreateComponentData& WithChildren(ChildrenT&& value) {
136 SetChildren(std::forward<ChildrenT>(value));
137 return *this;
138 }
139 template <typename ChildrenT = ComponentChild>
140 CreateComponentData& AddChildren(ChildrenT&& value) {
141 m_childrenHasBeenSet = true;
142 m_children.emplace_back(std::forward<ChildrenT>(value));
143 return *this;
144 }
146
148
151 inline const Aws::Vector<ComponentVariant>& GetVariants() const { return m_variants; }
152 inline bool VariantsHasBeenSet() const { return m_variantsHasBeenSet; }
153 template <typename VariantsT = Aws::Vector<ComponentVariant>>
154 void SetVariants(VariantsT&& value) {
155 m_variantsHasBeenSet = true;
156 m_variants = std::forward<VariantsT>(value);
157 }
158 template <typename VariantsT = Aws::Vector<ComponentVariant>>
159 CreateComponentData& WithVariants(VariantsT&& value) {
160 SetVariants(std::forward<VariantsT>(value));
161 return *this;
162 }
163 template <typename VariantsT = ComponentVariant>
164 CreateComponentData& AddVariants(VariantsT&& value) {
165 m_variantsHasBeenSet = true;
166 m_variants.emplace_back(std::forward<VariantsT>(value));
167 return *this;
168 }
170
172
176 inline const Aws::Map<Aws::String, Aws::Map<Aws::String, Aws::String>>& GetOverrides() const { return m_overrides; }
177 inline bool OverridesHasBeenSet() const { return m_overridesHasBeenSet; }
178 template <typename OverridesT = Aws::Map<Aws::String, Aws::Map<Aws::String, Aws::String>>>
179 void SetOverrides(OverridesT&& value) {
180 m_overridesHasBeenSet = true;
181 m_overrides = std::forward<OverridesT>(value);
182 }
183 template <typename OverridesT = Aws::Map<Aws::String, Aws::Map<Aws::String, Aws::String>>>
184 CreateComponentData& WithOverrides(OverridesT&& value) {
185 SetOverrides(std::forward<OverridesT>(value));
186 return *this;
187 }
188 template <typename OverridesKeyT = Aws::String, typename OverridesValueT = Aws::Map<Aws::String, Aws::String>>
189 CreateComponentData& AddOverrides(OverridesKeyT&& key, OverridesValueT&& value) {
190 m_overridesHasBeenSet = true;
191 m_overrides.emplace(std::forward<OverridesKeyT>(key), std::forward<OverridesValueT>(value));
192 return *this;
193 }
195
197
200 inline const Aws::Map<Aws::String, ComponentBindingPropertiesValue>& GetBindingProperties() const { return m_bindingProperties; }
201 inline bool BindingPropertiesHasBeenSet() const { return m_bindingPropertiesHasBeenSet; }
202 template <typename BindingPropertiesT = Aws::Map<Aws::String, ComponentBindingPropertiesValue>>
203 void SetBindingProperties(BindingPropertiesT&& value) {
204 m_bindingPropertiesHasBeenSet = true;
205 m_bindingProperties = std::forward<BindingPropertiesT>(value);
206 }
207 template <typename BindingPropertiesT = Aws::Map<Aws::String, ComponentBindingPropertiesValue>>
208 CreateComponentData& WithBindingProperties(BindingPropertiesT&& value) {
209 SetBindingProperties(std::forward<BindingPropertiesT>(value));
210 return *this;
211 }
212 template <typename BindingPropertiesKeyT = Aws::String, typename BindingPropertiesValueT = ComponentBindingPropertiesValue>
213 CreateComponentData& AddBindingProperties(BindingPropertiesKeyT&& key, BindingPropertiesValueT&& value) {
214 m_bindingPropertiesHasBeenSet = true;
215 m_bindingProperties.emplace(std::forward<BindingPropertiesKeyT>(key), std::forward<BindingPropertiesValueT>(value));
216 return *this;
217 }
219
221
225 inline const Aws::Map<Aws::String, ComponentDataConfiguration>& GetCollectionProperties() const { return m_collectionProperties; }
226 inline bool CollectionPropertiesHasBeenSet() const { return m_collectionPropertiesHasBeenSet; }
227 template <typename CollectionPropertiesT = Aws::Map<Aws::String, ComponentDataConfiguration>>
228 void SetCollectionProperties(CollectionPropertiesT&& value) {
229 m_collectionPropertiesHasBeenSet = true;
230 m_collectionProperties = std::forward<CollectionPropertiesT>(value);
231 }
232 template <typename CollectionPropertiesT = Aws::Map<Aws::String, ComponentDataConfiguration>>
233 CreateComponentData& WithCollectionProperties(CollectionPropertiesT&& value) {
234 SetCollectionProperties(std::forward<CollectionPropertiesT>(value));
235 return *this;
236 }
237 template <typename CollectionPropertiesKeyT = Aws::String, typename CollectionPropertiesValueT = ComponentDataConfiguration>
238 CreateComponentData& AddCollectionProperties(CollectionPropertiesKeyT&& key, CollectionPropertiesValueT&& value) {
239 m_collectionPropertiesHasBeenSet = true;
240 m_collectionProperties.emplace(std::forward<CollectionPropertiesKeyT>(key), std::forward<CollectionPropertiesValueT>(value));
241 return *this;
242 }
244
246
249 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
250 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
251 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
252 void SetTags(TagsT&& value) {
253 m_tagsHasBeenSet = true;
254 m_tags = std::forward<TagsT>(value);
255 }
256 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
258 SetTags(std::forward<TagsT>(value));
259 return *this;
260 }
261 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
262 CreateComponentData& AddTags(TagsKeyT&& key, TagsValueT&& value) {
263 m_tagsHasBeenSet = true;
264 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
265 return *this;
266 }
268
270
274 inline const Aws::Map<Aws::String, ComponentEvent>& GetEvents() const { return m_events; }
275 inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
276 template <typename EventsT = Aws::Map<Aws::String, ComponentEvent>>
277 void SetEvents(EventsT&& value) {
278 m_eventsHasBeenSet = true;
279 m_events = std::forward<EventsT>(value);
280 }
281 template <typename EventsT = Aws::Map<Aws::String, ComponentEvent>>
282 CreateComponentData& WithEvents(EventsT&& value) {
283 SetEvents(std::forward<EventsT>(value));
284 return *this;
285 }
286 template <typename EventsKeyT = Aws::String, typename EventsValueT = ComponentEvent>
287 CreateComponentData& AddEvents(EventsKeyT&& key, EventsValueT&& value) {
288 m_eventsHasBeenSet = true;
289 m_events.emplace(std::forward<EventsKeyT>(key), std::forward<EventsValueT>(value));
290 return *this;
291 }
293
295
298 inline const Aws::String& GetSchemaVersion() const { return m_schemaVersion; }
299 inline bool SchemaVersionHasBeenSet() const { return m_schemaVersionHasBeenSet; }
300 template <typename SchemaVersionT = Aws::String>
301 void SetSchemaVersion(SchemaVersionT&& value) {
302 m_schemaVersionHasBeenSet = true;
303 m_schemaVersion = std::forward<SchemaVersionT>(value);
304 }
305 template <typename SchemaVersionT = Aws::String>
306 CreateComponentData& WithSchemaVersion(SchemaVersionT&& value) {
307 SetSchemaVersion(std::forward<SchemaVersionT>(value));
308 return *this;
309 }
311 private:
312 Aws::String m_name;
313
314 Aws::String m_sourceId;
315
316 Aws::String m_componentType;
317
319
321
323
325
327
329
331
333
334 Aws::String m_schemaVersion;
335 bool m_nameHasBeenSet = false;
336 bool m_sourceIdHasBeenSet = false;
337 bool m_componentTypeHasBeenSet = false;
338 bool m_propertiesHasBeenSet = false;
339 bool m_childrenHasBeenSet = false;
340 bool m_variantsHasBeenSet = false;
341 bool m_overridesHasBeenSet = false;
342 bool m_bindingPropertiesHasBeenSet = false;
343 bool m_collectionPropertiesHasBeenSet = false;
344 bool m_tagsHasBeenSet = false;
345 bool m_eventsHasBeenSet = false;
346 bool m_schemaVersionHasBeenSet = false;
347};
348
349} // namespace Model
350} // namespace AmplifyUIBuilder
351} // namespace Aws
CreateComponentData & WithSchemaVersion(SchemaVersionT &&value)
CreateComponentData & AddBindingProperties(BindingPropertiesKeyT &&key, BindingPropertiesValueT &&value)
CreateComponentData & WithEvents(EventsT &&value)
AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_AMPLIFYUIBUILDER_API CreateComponentData()=default
CreateComponentData & AddOverrides(OverridesKeyT &&key, OverridesValueT &&value)
CreateComponentData & WithBindingProperties(BindingPropertiesT &&value)
CreateComponentData & WithProperties(PropertiesT &&value)
CreateComponentData & WithTags(TagsT &&value)
CreateComponentData & AddVariants(VariantsT &&value)
CreateComponentData & WithOverrides(OverridesT &&value)
void SetCollectionProperties(CollectionPropertiesT &&value)
AWS_AMPLIFYUIBUILDER_API CreateComponentData & operator=(Aws::Utils::Json::JsonView jsonValue)
CreateComponentData & AddCollectionProperties(CollectionPropertiesKeyT &&key, CollectionPropertiesValueT &&value)
const Aws::Vector< ComponentChild > & GetChildren() const
CreateComponentData & WithSourceId(SourceIdT &&value)
CreateComponentData & AddChildren(ChildrenT &&value)
const Aws::Map< Aws::String, ComponentEvent > & GetEvents() const
const Aws::Map< Aws::String, Aws::Map< Aws::String, Aws::String > > & GetOverrides() const
const Aws::Map< Aws::String, ComponentBindingPropertiesValue > & GetBindingProperties() const
CreateComponentData & WithName(NameT &&value)
const Aws::Vector< ComponentVariant > & GetVariants() const
const Aws::Map< Aws::String, ComponentProperty > & GetProperties() const
AWS_AMPLIFYUIBUILDER_API CreateComponentData(Aws::Utils::Json::JsonView jsonValue)
CreateComponentData & WithChildren(ChildrenT &&value)
CreateComponentData & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateComponentData & WithCollectionProperties(CollectionPropertiesT &&value)
void SetBindingProperties(BindingPropertiesT &&value)
const Aws::Map< Aws::String, ComponentDataConfiguration > & GetCollectionProperties() const
CreateComponentData & WithComponentType(ComponentTypeT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateComponentData & WithVariants(VariantsT &&value)
CreateComponentData & AddProperties(PropertiesKeyT &&key, PropertiesValueT &&value)
CreateComponentData & AddEvents(EventsKeyT &&key, EventsValueT &&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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue