AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Component.h
1
6#pragma once
7#include <aws/amplifyuibuilder/AmplifyUIBuilder_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/amplifyuibuilder/model/ComponentProperty.h>
13#include <aws/amplifyuibuilder/model/ComponentChild.h>
14#include <aws/amplifyuibuilder/model/ComponentVariant.h>
15#include <aws/amplifyuibuilder/model/ComponentBindingPropertiesValue.h>
16#include <aws/amplifyuibuilder/model/ComponentDataConfiguration.h>
17#include <aws/amplifyuibuilder/model/ComponentEvent.h>
18#include <utility>
19
20namespace Aws
21{
22namespace Utils
23{
24namespace Json
25{
26 class JsonValue;
27 class JsonView;
28} // namespace Json
29} // namespace Utils
30namespace AmplifyUIBuilder
31{
32namespace Model
33{
34
45 {
46 public:
47 AWS_AMPLIFYUIBUILDER_API Component() = default;
48 AWS_AMPLIFYUIBUILDER_API Component(Aws::Utils::Json::JsonView jsonValue);
49 AWS_AMPLIFYUIBUILDER_API Component& operator=(Aws::Utils::Json::JsonView jsonValue);
50 AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
51
52
54
57 inline const Aws::String& GetAppId() const { return m_appId; }
58 inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
59 template<typename AppIdT = Aws::String>
60 void SetAppId(AppIdT&& value) { m_appIdHasBeenSet = true; m_appId = std::forward<AppIdT>(value); }
61 template<typename AppIdT = Aws::String>
62 Component& WithAppId(AppIdT&& value) { SetAppId(std::forward<AppIdT>(value)); return *this;}
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) { m_environmentNameHasBeenSet = true; m_environmentName = std::forward<EnvironmentNameT>(value); }
73 template<typename EnvironmentNameT = Aws::String>
74 Component& WithEnvironmentName(EnvironmentNameT&& value) { SetEnvironmentName(std::forward<EnvironmentNameT>(value)); return *this;}
76
78
82 inline const Aws::String& GetSourceId() const { return m_sourceId; }
83 inline bool SourceIdHasBeenSet() const { return m_sourceIdHasBeenSet; }
84 template<typename SourceIdT = Aws::String>
85 void SetSourceId(SourceIdT&& value) { m_sourceIdHasBeenSet = true; m_sourceId = std::forward<SourceIdT>(value); }
86 template<typename SourceIdT = Aws::String>
87 Component& WithSourceId(SourceIdT&& value) { SetSourceId(std::forward<SourceIdT>(value)); return *this;}
89
91
94 inline const Aws::String& GetId() const { return m_id; }
95 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
96 template<typename IdT = Aws::String>
97 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
98 template<typename IdT = Aws::String>
99 Component& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
101
103
106 inline const Aws::String& GetName() const { return m_name; }
107 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
108 template<typename NameT = Aws::String>
109 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
110 template<typename NameT = Aws::String>
111 Component& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
113
115
119 inline const Aws::String& GetComponentType() const { return m_componentType; }
120 inline bool ComponentTypeHasBeenSet() const { return m_componentTypeHasBeenSet; }
121 template<typename ComponentTypeT = Aws::String>
122 void SetComponentType(ComponentTypeT&& value) { m_componentTypeHasBeenSet = true; m_componentType = std::forward<ComponentTypeT>(value); }
123 template<typename ComponentTypeT = Aws::String>
124 Component& WithComponentType(ComponentTypeT&& value) { SetComponentType(std::forward<ComponentTypeT>(value)); return *this;}
126
128
132 inline const Aws::Map<Aws::String, ComponentProperty>& GetProperties() const { return m_properties; }
133 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
134 template<typename PropertiesT = Aws::Map<Aws::String, ComponentProperty>>
135 void SetProperties(PropertiesT&& value) { m_propertiesHasBeenSet = true; m_properties = std::forward<PropertiesT>(value); }
136 template<typename PropertiesT = Aws::Map<Aws::String, ComponentProperty>>
137 Component& WithProperties(PropertiesT&& value) { SetProperties(std::forward<PropertiesT>(value)); return *this;}
138 template<typename PropertiesKeyT = Aws::String, typename PropertiesValueT = ComponentProperty>
139 Component& AddProperties(PropertiesKeyT&& key, PropertiesValueT&& value) {
140 m_propertiesHasBeenSet = true; m_properties.emplace(std::forward<PropertiesKeyT>(key), std::forward<PropertiesValueT>(value)); return *this;
141 }
143
145
148 inline const Aws::Vector<ComponentChild>& GetChildren() const { return m_children; }
149 inline bool ChildrenHasBeenSet() const { return m_childrenHasBeenSet; }
150 template<typename ChildrenT = Aws::Vector<ComponentChild>>
151 void SetChildren(ChildrenT&& value) { m_childrenHasBeenSet = true; m_children = std::forward<ChildrenT>(value); }
152 template<typename ChildrenT = Aws::Vector<ComponentChild>>
153 Component& WithChildren(ChildrenT&& value) { SetChildren(std::forward<ChildrenT>(value)); return *this;}
154 template<typename ChildrenT = ComponentChild>
155 Component& AddChildren(ChildrenT&& value) { m_childrenHasBeenSet = true; m_children.emplace_back(std::forward<ChildrenT>(value)); return *this; }
157
159
163 inline const Aws::Vector<ComponentVariant>& GetVariants() const { return m_variants; }
164 inline bool VariantsHasBeenSet() const { return m_variantsHasBeenSet; }
165 template<typename VariantsT = Aws::Vector<ComponentVariant>>
166 void SetVariants(VariantsT&& value) { m_variantsHasBeenSet = true; m_variants = std::forward<VariantsT>(value); }
167 template<typename VariantsT = Aws::Vector<ComponentVariant>>
168 Component& WithVariants(VariantsT&& value) { SetVariants(std::forward<VariantsT>(value)); return *this;}
169 template<typename VariantsT = ComponentVariant>
170 Component& AddVariants(VariantsT&& value) { m_variantsHasBeenSet = true; m_variants.emplace_back(std::forward<VariantsT>(value)); return *this; }
172
174
179 inline const Aws::Map<Aws::String, Aws::Map<Aws::String, Aws::String>>& GetOverrides() const { return m_overrides; }
180 inline bool OverridesHasBeenSet() const { return m_overridesHasBeenSet; }
181 template<typename OverridesT = Aws::Map<Aws::String, Aws::Map<Aws::String, Aws::String>>>
182 void SetOverrides(OverridesT&& value) { m_overridesHasBeenSet = true; m_overrides = std::forward<OverridesT>(value); }
183 template<typename OverridesT = Aws::Map<Aws::String, Aws::Map<Aws::String, Aws::String>>>
184 Component& WithOverrides(OverridesT&& value) { SetOverrides(std::forward<OverridesT>(value)); return *this;}
185 template<typename OverridesKeyT = Aws::String, typename OverridesValueT = Aws::Map<Aws::String, Aws::String>>
186 Component& AddOverrides(OverridesKeyT&& key, OverridesValueT&& value) {
187 m_overridesHasBeenSet = true; m_overrides.emplace(std::forward<OverridesKeyT>(key), std::forward<OverridesValueT>(value)); return *this;
188 }
190
192
197 inline const Aws::Map<Aws::String, ComponentBindingPropertiesValue>& GetBindingProperties() const { return m_bindingProperties; }
198 inline bool BindingPropertiesHasBeenSet() const { return m_bindingPropertiesHasBeenSet; }
199 template<typename BindingPropertiesT = Aws::Map<Aws::String, ComponentBindingPropertiesValue>>
200 void SetBindingProperties(BindingPropertiesT&& value) { m_bindingPropertiesHasBeenSet = true; m_bindingProperties = std::forward<BindingPropertiesT>(value); }
201 template<typename BindingPropertiesT = Aws::Map<Aws::String, ComponentBindingPropertiesValue>>
202 Component& WithBindingProperties(BindingPropertiesT&& value) { SetBindingProperties(std::forward<BindingPropertiesT>(value)); return *this;}
203 template<typename BindingPropertiesKeyT = Aws::String, typename BindingPropertiesValueT = ComponentBindingPropertiesValue>
204 Component& AddBindingProperties(BindingPropertiesKeyT&& key, BindingPropertiesValueT&& value) {
205 m_bindingPropertiesHasBeenSet = true; m_bindingProperties.emplace(std::forward<BindingPropertiesKeyT>(key), std::forward<BindingPropertiesValueT>(value)); return *this;
206 }
208
210
215 inline const Aws::Map<Aws::String, ComponentDataConfiguration>& GetCollectionProperties() const { return m_collectionProperties; }
216 inline bool CollectionPropertiesHasBeenSet() const { return m_collectionPropertiesHasBeenSet; }
217 template<typename CollectionPropertiesT = Aws::Map<Aws::String, ComponentDataConfiguration>>
218 void SetCollectionProperties(CollectionPropertiesT&& value) { m_collectionPropertiesHasBeenSet = true; m_collectionProperties = std::forward<CollectionPropertiesT>(value); }
219 template<typename CollectionPropertiesT = Aws::Map<Aws::String, ComponentDataConfiguration>>
220 Component& WithCollectionProperties(CollectionPropertiesT&& value) { SetCollectionProperties(std::forward<CollectionPropertiesT>(value)); return *this;}
221 template<typename CollectionPropertiesKeyT = Aws::String, typename CollectionPropertiesValueT = ComponentDataConfiguration>
222 Component& AddCollectionProperties(CollectionPropertiesKeyT&& key, CollectionPropertiesValueT&& value) {
223 m_collectionPropertiesHasBeenSet = true; m_collectionProperties.emplace(std::forward<CollectionPropertiesKeyT>(key), std::forward<CollectionPropertiesValueT>(value)); return *this;
224 }
226
228
231 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
232 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
233 template<typename CreatedAtT = Aws::Utils::DateTime>
234 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
235 template<typename CreatedAtT = Aws::Utils::DateTime>
236 Component& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
238
240
243 inline const Aws::Utils::DateTime& GetModifiedAt() const { return m_modifiedAt; }
244 inline bool ModifiedAtHasBeenSet() const { return m_modifiedAtHasBeenSet; }
245 template<typename ModifiedAtT = Aws::Utils::DateTime>
246 void SetModifiedAt(ModifiedAtT&& value) { m_modifiedAtHasBeenSet = true; m_modifiedAt = std::forward<ModifiedAtT>(value); }
247 template<typename ModifiedAtT = Aws::Utils::DateTime>
248 Component& WithModifiedAt(ModifiedAtT&& value) { SetModifiedAt(std::forward<ModifiedAtT>(value)); return *this;}
250
252
255 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
256 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
257 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
258 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
259 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
260 Component& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
261 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
262 Component& AddTags(TagsKeyT&& key, TagsValueT&& value) {
263 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
264 }
266
268
273 inline const Aws::Map<Aws::String, ComponentEvent>& GetEvents() const { return m_events; }
274 inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
275 template<typename EventsT = Aws::Map<Aws::String, ComponentEvent>>
276 void SetEvents(EventsT&& value) { m_eventsHasBeenSet = true; m_events = std::forward<EventsT>(value); }
277 template<typename EventsT = Aws::Map<Aws::String, ComponentEvent>>
278 Component& WithEvents(EventsT&& value) { SetEvents(std::forward<EventsT>(value)); return *this;}
279 template<typename EventsKeyT = Aws::String, typename EventsValueT = ComponentEvent>
280 Component& AddEvents(EventsKeyT&& key, EventsValueT&& value) {
281 m_eventsHasBeenSet = true; m_events.emplace(std::forward<EventsKeyT>(key), std::forward<EventsValueT>(value)); return *this;
282 }
284
286
289 inline const Aws::String& GetSchemaVersion() const { return m_schemaVersion; }
290 inline bool SchemaVersionHasBeenSet() const { return m_schemaVersionHasBeenSet; }
291 template<typename SchemaVersionT = Aws::String>
292 void SetSchemaVersion(SchemaVersionT&& value) { m_schemaVersionHasBeenSet = true; m_schemaVersion = std::forward<SchemaVersionT>(value); }
293 template<typename SchemaVersionT = Aws::String>
294 Component& WithSchemaVersion(SchemaVersionT&& value) { SetSchemaVersion(std::forward<SchemaVersionT>(value)); return *this;}
296 private:
297
298 Aws::String m_appId;
299 bool m_appIdHasBeenSet = false;
300
301 Aws::String m_environmentName;
302 bool m_environmentNameHasBeenSet = false;
303
304 Aws::String m_sourceId;
305 bool m_sourceIdHasBeenSet = false;
306
307 Aws::String m_id;
308 bool m_idHasBeenSet = false;
309
310 Aws::String m_name;
311 bool m_nameHasBeenSet = false;
312
313 Aws::String m_componentType;
314 bool m_componentTypeHasBeenSet = false;
315
317 bool m_propertiesHasBeenSet = false;
318
320 bool m_childrenHasBeenSet = false;
321
323 bool m_variantsHasBeenSet = false;
324
326 bool m_overridesHasBeenSet = false;
327
329 bool m_bindingPropertiesHasBeenSet = false;
330
332 bool m_collectionPropertiesHasBeenSet = false;
333
334 Aws::Utils::DateTime m_createdAt{};
335 bool m_createdAtHasBeenSet = false;
336
337 Aws::Utils::DateTime m_modifiedAt{};
338 bool m_modifiedAtHasBeenSet = false;
339
341 bool m_tagsHasBeenSet = false;
342
344 bool m_eventsHasBeenSet = false;
345
346 Aws::String m_schemaVersion;
347 bool m_schemaVersionHasBeenSet = false;
348 };
349
350} // namespace Model
351} // namespace AmplifyUIBuilder
352} // namespace Aws
void SetProperties(PropertiesT &&value)
Definition Component.h:135
Component & AddChildren(ChildrenT &&value)
Definition Component.h:155
void SetSchemaVersion(SchemaVersionT &&value)
Definition Component.h:292
Component & WithEnvironmentName(EnvironmentNameT &&value)
Definition Component.h:74
Component & WithEvents(EventsT &&value)
Definition Component.h:278
void SetEnvironmentName(EnvironmentNameT &&value)
Definition Component.h:72
Component & WithOverrides(OverridesT &&value)
Definition Component.h:184
void SetChildren(ChildrenT &&value)
Definition Component.h:151
Component & WithChildren(ChildrenT &&value)
Definition Component.h:153
void SetCreatedAt(CreatedAtT &&value)
Definition Component.h:234
AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
Component & AddEvents(EventsKeyT &&key, EventsValueT &&value)
Definition Component.h:280
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Component.h:255
void SetSourceId(SourceIdT &&value)
Definition Component.h:85
void SetVariants(VariantsT &&value)
Definition Component.h:166
Component & WithModifiedAt(ModifiedAtT &&value)
Definition Component.h:248
Component & WithCreatedAt(CreatedAtT &&value)
Definition Component.h:236
Component & WithTags(TagsT &&value)
Definition Component.h:260
const Aws::String & GetSourceId() const
Definition Component.h:82
Component & WithAppId(AppIdT &&value)
Definition Component.h:62
Component & WithId(IdT &&value)
Definition Component.h:99
Component & WithVariants(VariantsT &&value)
Definition Component.h:168
const Aws::String & GetAppId() const
Definition Component.h:57
const Aws::Vector< ComponentChild > & GetChildren() const
Definition Component.h:148
const Aws::String & GetName() const
Definition Component.h:106
void SetComponentType(ComponentTypeT &&value)
Definition Component.h:122
const Aws::String & GetSchemaVersion() const
Definition Component.h:289
const Aws::Map< Aws::String, ComponentDataConfiguration > & GetCollectionProperties() const
Definition Component.h:215
const Aws::String & GetEnvironmentName() const
Definition Component.h:69
Component & AddCollectionProperties(CollectionPropertiesKeyT &&key, CollectionPropertiesValueT &&value)
Definition Component.h:222
void SetBindingProperties(BindingPropertiesT &&value)
Definition Component.h:200
Component & AddProperties(PropertiesKeyT &&key, PropertiesValueT &&value)
Definition Component.h:139
Component & WithProperties(PropertiesT &&value)
Definition Component.h:137
const Aws::Map< Aws::String, ComponentProperty > & GetProperties() const
Definition Component.h:132
Component & WithCollectionProperties(CollectionPropertiesT &&value)
Definition Component.h:220
Component & WithComponentType(ComponentTypeT &&value)
Definition Component.h:124
const Aws::String & GetComponentType() const
Definition Component.h:119
Component & AddOverrides(OverridesKeyT &&key, OverridesValueT &&value)
Definition Component.h:186
AWS_AMPLIFYUIBUILDER_API Component()=default
void SetModifiedAt(ModifiedAtT &&value)
Definition Component.h:246
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Component.h:231
AWS_AMPLIFYUIBUILDER_API Component(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetModifiedAt() const
Definition Component.h:243
const Aws::Map< Aws::String, ComponentEvent > & GetEvents() const
Definition Component.h:273
Component & AddVariants(VariantsT &&value)
Definition Component.h:170
Component & WithBindingProperties(BindingPropertiesT &&value)
Definition Component.h:202
void SetOverrides(OverridesT &&value)
Definition Component.h:182
Component & WithName(NameT &&value)
Definition Component.h:111
const Aws::Map< Aws::String, ComponentBindingPropertiesValue > & GetBindingProperties() const
Definition Component.h:197
Component & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition Component.h:262
Component & AddBindingProperties(BindingPropertiesKeyT &&key, BindingPropertiesValueT &&value)
Definition Component.h:204
void SetCollectionProperties(CollectionPropertiesT &&value)
Definition Component.h:218
const Aws::Map< Aws::String, Aws::Map< Aws::String, Aws::String > > & GetOverrides() const
Definition Component.h:179
Component & WithSourceId(SourceIdT &&value)
Definition Component.h:87
const Aws::Vector< ComponentVariant > & GetVariants() const
Definition Component.h:163
AWS_AMPLIFYUIBUILDER_API Component & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetId() const
Definition Component.h:94
Component & WithSchemaVersion(SchemaVersionT &&value)
Definition Component.h:294
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