AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
Component.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/DateTime.h>
15#include <aws/core/utils/memory/stl/AWSMap.h>
16#include <aws/core/utils/memory/stl/AWSString.h>
17#include <aws/core/utils/memory/stl/AWSVector.h>
18
19#include <utility>
20
21namespace Aws {
22namespace Utils {
23namespace Json {
24class JsonValue;
25class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace AmplifyUIBuilder {
29namespace Model {
30
40class Component {
41 public:
42 AWS_AMPLIFYUIBUILDER_API Component() = default;
43 AWS_AMPLIFYUIBUILDER_API Component(Aws::Utils::Json::JsonView jsonValue);
44 AWS_AMPLIFYUIBUILDER_API Component& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
46
48
51 inline const Aws::String& GetAppId() const { return m_appId; }
52 inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
53 template <typename AppIdT = Aws::String>
54 void SetAppId(AppIdT&& value) {
55 m_appIdHasBeenSet = true;
56 m_appId = std::forward<AppIdT>(value);
57 }
58 template <typename AppIdT = Aws::String>
59 Component& WithAppId(AppIdT&& value) {
60 SetAppId(std::forward<AppIdT>(value));
61 return *this;
62 }
64
66
69 inline const Aws::String& GetEnvironmentName() const { return m_environmentName; }
70 inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; }
71 template <typename EnvironmentNameT = Aws::String>
72 void SetEnvironmentName(EnvironmentNameT&& value) {
73 m_environmentNameHasBeenSet = true;
74 m_environmentName = std::forward<EnvironmentNameT>(value);
75 }
76 template <typename EnvironmentNameT = Aws::String>
77 Component& WithEnvironmentName(EnvironmentNameT&& value) {
78 SetEnvironmentName(std::forward<EnvironmentNameT>(value));
79 return *this;
80 }
82
84
88 inline const Aws::String& GetSourceId() const { return m_sourceId; }
89 inline bool SourceIdHasBeenSet() const { return m_sourceIdHasBeenSet; }
90 template <typename SourceIdT = Aws::String>
91 void SetSourceId(SourceIdT&& value) {
92 m_sourceIdHasBeenSet = true;
93 m_sourceId = std::forward<SourceIdT>(value);
94 }
95 template <typename SourceIdT = Aws::String>
96 Component& WithSourceId(SourceIdT&& value) {
97 SetSourceId(std::forward<SourceIdT>(value));
98 return *this;
99 }
101
103
106 inline const Aws::String& GetId() const { return m_id; }
107 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
108 template <typename IdT = Aws::String>
109 void SetId(IdT&& value) {
110 m_idHasBeenSet = true;
111 m_id = std::forward<IdT>(value);
112 }
113 template <typename IdT = Aws::String>
114 Component& WithId(IdT&& value) {
115 SetId(std::forward<IdT>(value));
116 return *this;
117 }
119
121
124 inline const Aws::String& GetName() const { return m_name; }
125 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
126 template <typename NameT = Aws::String>
127 void SetName(NameT&& value) {
128 m_nameHasBeenSet = true;
129 m_name = std::forward<NameT>(value);
130 }
131 template <typename NameT = Aws::String>
132 Component& WithName(NameT&& value) {
133 SetName(std::forward<NameT>(value));
134 return *this;
135 }
137
139
143 inline const Aws::String& GetComponentType() const { return m_componentType; }
144 inline bool ComponentTypeHasBeenSet() const { return m_componentTypeHasBeenSet; }
145 template <typename ComponentTypeT = Aws::String>
146 void SetComponentType(ComponentTypeT&& value) {
147 m_componentTypeHasBeenSet = true;
148 m_componentType = std::forward<ComponentTypeT>(value);
149 }
150 template <typename ComponentTypeT = Aws::String>
151 Component& WithComponentType(ComponentTypeT&& value) {
152 SetComponentType(std::forward<ComponentTypeT>(value));
153 return *this;
154 }
156
158
162 inline const Aws::Map<Aws::String, ComponentProperty>& GetProperties() const { return m_properties; }
163 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
164 template <typename PropertiesT = Aws::Map<Aws::String, ComponentProperty>>
165 void SetProperties(PropertiesT&& value) {
166 m_propertiesHasBeenSet = true;
167 m_properties = std::forward<PropertiesT>(value);
168 }
169 template <typename PropertiesT = Aws::Map<Aws::String, ComponentProperty>>
170 Component& WithProperties(PropertiesT&& value) {
171 SetProperties(std::forward<PropertiesT>(value));
172 return *this;
173 }
174 template <typename PropertiesKeyT = Aws::String, typename PropertiesValueT = ComponentProperty>
175 Component& AddProperties(PropertiesKeyT&& key, PropertiesValueT&& value) {
176 m_propertiesHasBeenSet = true;
177 m_properties.emplace(std::forward<PropertiesKeyT>(key), std::forward<PropertiesValueT>(value));
178 return *this;
179 }
181
183
186 inline const Aws::Vector<ComponentChild>& GetChildren() const { return m_children; }
187 inline bool ChildrenHasBeenSet() const { return m_childrenHasBeenSet; }
188 template <typename ChildrenT = Aws::Vector<ComponentChild>>
189 void SetChildren(ChildrenT&& value) {
190 m_childrenHasBeenSet = true;
191 m_children = std::forward<ChildrenT>(value);
192 }
193 template <typename ChildrenT = Aws::Vector<ComponentChild>>
194 Component& WithChildren(ChildrenT&& value) {
195 SetChildren(std::forward<ChildrenT>(value));
196 return *this;
197 }
198 template <typename ChildrenT = ComponentChild>
199 Component& AddChildren(ChildrenT&& value) {
200 m_childrenHasBeenSet = true;
201 m_children.emplace_back(std::forward<ChildrenT>(value));
202 return *this;
203 }
205
207
211 inline const Aws::Vector<ComponentVariant>& GetVariants() const { return m_variants; }
212 inline bool VariantsHasBeenSet() const { return m_variantsHasBeenSet; }
213 template <typename VariantsT = Aws::Vector<ComponentVariant>>
214 void SetVariants(VariantsT&& value) {
215 m_variantsHasBeenSet = true;
216 m_variants = std::forward<VariantsT>(value);
217 }
218 template <typename VariantsT = Aws::Vector<ComponentVariant>>
219 Component& WithVariants(VariantsT&& value) {
220 SetVariants(std::forward<VariantsT>(value));
221 return *this;
222 }
223 template <typename VariantsT = ComponentVariant>
224 Component& AddVariants(VariantsT&& value) {
225 m_variantsHasBeenSet = true;
226 m_variants.emplace_back(std::forward<VariantsT>(value));
227 return *this;
228 }
230
232
237 inline const Aws::Map<Aws::String, Aws::Map<Aws::String, Aws::String>>& GetOverrides() const { return m_overrides; }
238 inline bool OverridesHasBeenSet() const { return m_overridesHasBeenSet; }
239 template <typename OverridesT = Aws::Map<Aws::String, Aws::Map<Aws::String, Aws::String>>>
240 void SetOverrides(OverridesT&& value) {
241 m_overridesHasBeenSet = true;
242 m_overrides = std::forward<OverridesT>(value);
243 }
244 template <typename OverridesT = Aws::Map<Aws::String, Aws::Map<Aws::String, Aws::String>>>
245 Component& WithOverrides(OverridesT&& value) {
246 SetOverrides(std::forward<OverridesT>(value));
247 return *this;
248 }
249 template <typename OverridesKeyT = Aws::String, typename OverridesValueT = Aws::Map<Aws::String, Aws::String>>
250 Component& AddOverrides(OverridesKeyT&& key, OverridesValueT&& value) {
251 m_overridesHasBeenSet = true;
252 m_overrides.emplace(std::forward<OverridesKeyT>(key), std::forward<OverridesValueT>(value));
253 return *this;
254 }
256
258
263 inline const Aws::Map<Aws::String, ComponentBindingPropertiesValue>& GetBindingProperties() const { return m_bindingProperties; }
264 inline bool BindingPropertiesHasBeenSet() const { return m_bindingPropertiesHasBeenSet; }
265 template <typename BindingPropertiesT = Aws::Map<Aws::String, ComponentBindingPropertiesValue>>
266 void SetBindingProperties(BindingPropertiesT&& value) {
267 m_bindingPropertiesHasBeenSet = true;
268 m_bindingProperties = std::forward<BindingPropertiesT>(value);
269 }
270 template <typename BindingPropertiesT = Aws::Map<Aws::String, ComponentBindingPropertiesValue>>
271 Component& WithBindingProperties(BindingPropertiesT&& value) {
272 SetBindingProperties(std::forward<BindingPropertiesT>(value));
273 return *this;
274 }
275 template <typename BindingPropertiesKeyT = Aws::String, typename BindingPropertiesValueT = ComponentBindingPropertiesValue>
276 Component& AddBindingProperties(BindingPropertiesKeyT&& key, BindingPropertiesValueT&& value) {
277 m_bindingPropertiesHasBeenSet = true;
278 m_bindingProperties.emplace(std::forward<BindingPropertiesKeyT>(key), std::forward<BindingPropertiesValueT>(value));
279 return *this;
280 }
282
284
289 inline const Aws::Map<Aws::String, ComponentDataConfiguration>& GetCollectionProperties() const { return m_collectionProperties; }
290 inline bool CollectionPropertiesHasBeenSet() const { return m_collectionPropertiesHasBeenSet; }
291 template <typename CollectionPropertiesT = Aws::Map<Aws::String, ComponentDataConfiguration>>
292 void SetCollectionProperties(CollectionPropertiesT&& value) {
293 m_collectionPropertiesHasBeenSet = true;
294 m_collectionProperties = std::forward<CollectionPropertiesT>(value);
295 }
296 template <typename CollectionPropertiesT = Aws::Map<Aws::String, ComponentDataConfiguration>>
297 Component& WithCollectionProperties(CollectionPropertiesT&& value) {
298 SetCollectionProperties(std::forward<CollectionPropertiesT>(value));
299 return *this;
300 }
301 template <typename CollectionPropertiesKeyT = Aws::String, typename CollectionPropertiesValueT = ComponentDataConfiguration>
302 Component& AddCollectionProperties(CollectionPropertiesKeyT&& key, CollectionPropertiesValueT&& value) {
303 m_collectionPropertiesHasBeenSet = true;
304 m_collectionProperties.emplace(std::forward<CollectionPropertiesKeyT>(key), std::forward<CollectionPropertiesValueT>(value));
305 return *this;
306 }
308
310
313 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
314 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
315 template <typename CreatedAtT = Aws::Utils::DateTime>
316 void SetCreatedAt(CreatedAtT&& value) {
317 m_createdAtHasBeenSet = true;
318 m_createdAt = std::forward<CreatedAtT>(value);
319 }
320 template <typename CreatedAtT = Aws::Utils::DateTime>
321 Component& WithCreatedAt(CreatedAtT&& value) {
322 SetCreatedAt(std::forward<CreatedAtT>(value));
323 return *this;
324 }
326
328
331 inline const Aws::Utils::DateTime& GetModifiedAt() const { return m_modifiedAt; }
332 inline bool ModifiedAtHasBeenSet() const { return m_modifiedAtHasBeenSet; }
333 template <typename ModifiedAtT = Aws::Utils::DateTime>
334 void SetModifiedAt(ModifiedAtT&& value) {
335 m_modifiedAtHasBeenSet = true;
336 m_modifiedAt = std::forward<ModifiedAtT>(value);
337 }
338 template <typename ModifiedAtT = Aws::Utils::DateTime>
339 Component& WithModifiedAt(ModifiedAtT&& value) {
340 SetModifiedAt(std::forward<ModifiedAtT>(value));
341 return *this;
342 }
344
346
349 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
350 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
351 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
352 void SetTags(TagsT&& value) {
353 m_tagsHasBeenSet = true;
354 m_tags = std::forward<TagsT>(value);
355 }
356 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
357 Component& WithTags(TagsT&& value) {
358 SetTags(std::forward<TagsT>(value));
359 return *this;
360 }
361 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
362 Component& AddTags(TagsKeyT&& key, TagsValueT&& value) {
363 m_tagsHasBeenSet = true;
364 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
365 return *this;
366 }
368
370
375 inline const Aws::Map<Aws::String, ComponentEvent>& GetEvents() const { return m_events; }
376 inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
377 template <typename EventsT = Aws::Map<Aws::String, ComponentEvent>>
378 void SetEvents(EventsT&& value) {
379 m_eventsHasBeenSet = true;
380 m_events = std::forward<EventsT>(value);
381 }
382 template <typename EventsT = Aws::Map<Aws::String, ComponentEvent>>
383 Component& WithEvents(EventsT&& value) {
384 SetEvents(std::forward<EventsT>(value));
385 return *this;
386 }
387 template <typename EventsKeyT = Aws::String, typename EventsValueT = ComponentEvent>
388 Component& AddEvents(EventsKeyT&& key, EventsValueT&& value) {
389 m_eventsHasBeenSet = true;
390 m_events.emplace(std::forward<EventsKeyT>(key), std::forward<EventsValueT>(value));
391 return *this;
392 }
394
396
399 inline const Aws::String& GetSchemaVersion() const { return m_schemaVersion; }
400 inline bool SchemaVersionHasBeenSet() const { return m_schemaVersionHasBeenSet; }
401 template <typename SchemaVersionT = Aws::String>
402 void SetSchemaVersion(SchemaVersionT&& value) {
403 m_schemaVersionHasBeenSet = true;
404 m_schemaVersion = std::forward<SchemaVersionT>(value);
405 }
406 template <typename SchemaVersionT = Aws::String>
407 Component& WithSchemaVersion(SchemaVersionT&& value) {
408 SetSchemaVersion(std::forward<SchemaVersionT>(value));
409 return *this;
410 }
412 private:
413 Aws::String m_appId;
414
415 Aws::String m_environmentName;
416
417 Aws::String m_sourceId;
418
419 Aws::String m_id;
420
421 Aws::String m_name;
422
423 Aws::String m_componentType;
424
426
428
430
432
434
436
437 Aws::Utils::DateTime m_createdAt{};
438
439 Aws::Utils::DateTime m_modifiedAt{};
440
442
444
445 Aws::String m_schemaVersion;
446 bool m_appIdHasBeenSet = false;
447 bool m_environmentNameHasBeenSet = false;
448 bool m_sourceIdHasBeenSet = false;
449 bool m_idHasBeenSet = false;
450 bool m_nameHasBeenSet = false;
451 bool m_componentTypeHasBeenSet = false;
452 bool m_propertiesHasBeenSet = false;
453 bool m_childrenHasBeenSet = false;
454 bool m_variantsHasBeenSet = false;
455 bool m_overridesHasBeenSet = false;
456 bool m_bindingPropertiesHasBeenSet = false;
457 bool m_collectionPropertiesHasBeenSet = false;
458 bool m_createdAtHasBeenSet = false;
459 bool m_modifiedAtHasBeenSet = false;
460 bool m_tagsHasBeenSet = false;
461 bool m_eventsHasBeenSet = false;
462 bool m_schemaVersionHasBeenSet = false;
463};
464
465} // namespace Model
466} // namespace AmplifyUIBuilder
467} // namespace Aws
void SetProperties(PropertiesT &&value)
Definition Component.h:165
Component & AddChildren(ChildrenT &&value)
Definition Component.h:199
void SetSchemaVersion(SchemaVersionT &&value)
Definition Component.h:402
Component & WithEnvironmentName(EnvironmentNameT &&value)
Definition Component.h:77
Component & WithEvents(EventsT &&value)
Definition Component.h:383
void SetEnvironmentName(EnvironmentNameT &&value)
Definition Component.h:72
Component & WithOverrides(OverridesT &&value)
Definition Component.h:245
void SetChildren(ChildrenT &&value)
Definition Component.h:189
Component & WithChildren(ChildrenT &&value)
Definition Component.h:194
void SetCreatedAt(CreatedAtT &&value)
Definition Component.h:316
AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
Component & AddEvents(EventsKeyT &&key, EventsValueT &&value)
Definition Component.h:388
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Component.h:349
void SetSourceId(SourceIdT &&value)
Definition Component.h:91
void SetVariants(VariantsT &&value)
Definition Component.h:214
Component & WithModifiedAt(ModifiedAtT &&value)
Definition Component.h:339
Component & WithCreatedAt(CreatedAtT &&value)
Definition Component.h:321
Component & WithTags(TagsT &&value)
Definition Component.h:357
const Aws::String & GetSourceId() const
Definition Component.h:88
Component & WithAppId(AppIdT &&value)
Definition Component.h:59
Component & WithId(IdT &&value)
Definition Component.h:114
Component & WithVariants(VariantsT &&value)
Definition Component.h:219
const Aws::String & GetAppId() const
Definition Component.h:51
const Aws::Vector< ComponentChild > & GetChildren() const
Definition Component.h:186
const Aws::String & GetName() const
Definition Component.h:124
void SetComponentType(ComponentTypeT &&value)
Definition Component.h:146
const Aws::String & GetSchemaVersion() const
Definition Component.h:399
const Aws::Map< Aws::String, ComponentDataConfiguration > & GetCollectionProperties() const
Definition Component.h:289
const Aws::String & GetEnvironmentName() const
Definition Component.h:69
Component & AddCollectionProperties(CollectionPropertiesKeyT &&key, CollectionPropertiesValueT &&value)
Definition Component.h:302
void SetBindingProperties(BindingPropertiesT &&value)
Definition Component.h:266
Component & AddProperties(PropertiesKeyT &&key, PropertiesValueT &&value)
Definition Component.h:175
Component & WithProperties(PropertiesT &&value)
Definition Component.h:170
const Aws::Map< Aws::String, ComponentProperty > & GetProperties() const
Definition Component.h:162
Component & WithCollectionProperties(CollectionPropertiesT &&value)
Definition Component.h:297
Component & WithComponentType(ComponentTypeT &&value)
Definition Component.h:151
const Aws::String & GetComponentType() const
Definition Component.h:143
Component & AddOverrides(OverridesKeyT &&key, OverridesValueT &&value)
Definition Component.h:250
AWS_AMPLIFYUIBUILDER_API Component()=default
void SetModifiedAt(ModifiedAtT &&value)
Definition Component.h:334
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Component.h:313
AWS_AMPLIFYUIBUILDER_API Component(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetModifiedAt() const
Definition Component.h:331
const Aws::Map< Aws::String, ComponentEvent > & GetEvents() const
Definition Component.h:375
Component & AddVariants(VariantsT &&value)
Definition Component.h:224
Component & WithBindingProperties(BindingPropertiesT &&value)
Definition Component.h:271
void SetOverrides(OverridesT &&value)
Definition Component.h:240
Component & WithName(NameT &&value)
Definition Component.h:132
const Aws::Map< Aws::String, ComponentBindingPropertiesValue > & GetBindingProperties() const
Definition Component.h:263
Component & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition Component.h:362
Component & AddBindingProperties(BindingPropertiesKeyT &&key, BindingPropertiesValueT &&value)
Definition Component.h:276
void SetCollectionProperties(CollectionPropertiesT &&value)
Definition Component.h:292
const Aws::Map< Aws::String, Aws::Map< Aws::String, Aws::String > > & GetOverrides() const
Definition Component.h:237
Component & WithSourceId(SourceIdT &&value)
Definition Component.h:96
const Aws::Vector< ComponentVariant > & GetVariants() const
Definition Component.h:211
AWS_AMPLIFYUIBUILDER_API Component & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetId() const
Definition Component.h:106
Component & WithSchemaVersion(SchemaVersionT &&value)
Definition Component.h:407
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