AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateComponentData.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/amplifyuibuilder/model/ComponentProperty.h>
12#include <aws/amplifyuibuilder/model/ComponentChild.h>
13#include <aws/amplifyuibuilder/model/ComponentVariant.h>
14#include <aws/amplifyuibuilder/model/ComponentBindingPropertiesValue.h>
15#include <aws/amplifyuibuilder/model/ComponentDataConfiguration.h>
16#include <aws/amplifyuibuilder/model/ComponentEvent.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 CreateComponentData() = default;
44 AWS_AMPLIFYUIBUILDER_API CreateComponentData(Aws::Utils::Json::JsonView jsonValue);
45 AWS_AMPLIFYUIBUILDER_API CreateComponentData& 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 template<typename NameT = Aws::String>
56 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
57 template<typename NameT = Aws::String>
58 CreateComponentData& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_sourceIdHasBeenSet = true; m_sourceId = std::forward<SourceIdT>(value); }
70 template<typename SourceIdT = Aws::String>
71 CreateComponentData& WithSourceId(SourceIdT&& value) { SetSourceId(std::forward<SourceIdT>(value)); return *this;}
73
75
79 inline const Aws::String& GetComponentType() const { return m_componentType; }
80 inline bool ComponentTypeHasBeenSet() const { return m_componentTypeHasBeenSet; }
81 template<typename ComponentTypeT = Aws::String>
82 void SetComponentType(ComponentTypeT&& value) { m_componentTypeHasBeenSet = true; m_componentType = std::forward<ComponentTypeT>(value); }
83 template<typename ComponentTypeT = Aws::String>
84 CreateComponentData& WithComponentType(ComponentTypeT&& value) { SetComponentType(std::forward<ComponentTypeT>(value)); return *this;}
86
88
91 inline const Aws::Map<Aws::String, ComponentProperty>& GetProperties() const { return m_properties; }
92 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
93 template<typename PropertiesT = Aws::Map<Aws::String, ComponentProperty>>
94 void SetProperties(PropertiesT&& value) { m_propertiesHasBeenSet = true; m_properties = std::forward<PropertiesT>(value); }
95 template<typename PropertiesT = Aws::Map<Aws::String, ComponentProperty>>
96 CreateComponentData& WithProperties(PropertiesT&& value) { SetProperties(std::forward<PropertiesT>(value)); return *this;}
97 template<typename PropertiesKeyT = Aws::String, typename PropertiesValueT = ComponentProperty>
98 CreateComponentData& AddProperties(PropertiesKeyT&& key, PropertiesValueT&& value) {
99 m_propertiesHasBeenSet = true; m_properties.emplace(std::forward<PropertiesKeyT>(key), std::forward<PropertiesValueT>(value)); return *this;
100 }
102
104
107 inline const Aws::Vector<ComponentChild>& GetChildren() const { return m_children; }
108 inline bool ChildrenHasBeenSet() const { return m_childrenHasBeenSet; }
109 template<typename ChildrenT = Aws::Vector<ComponentChild>>
110 void SetChildren(ChildrenT&& value) { m_childrenHasBeenSet = true; m_children = std::forward<ChildrenT>(value); }
111 template<typename ChildrenT = Aws::Vector<ComponentChild>>
112 CreateComponentData& WithChildren(ChildrenT&& value) { SetChildren(std::forward<ChildrenT>(value)); return *this;}
113 template<typename ChildrenT = ComponentChild>
114 CreateComponentData& AddChildren(ChildrenT&& value) { m_childrenHasBeenSet = true; m_children.emplace_back(std::forward<ChildrenT>(value)); return *this; }
116
118
121 inline const Aws::Vector<ComponentVariant>& GetVariants() const { return m_variants; }
122 inline bool VariantsHasBeenSet() const { return m_variantsHasBeenSet; }
123 template<typename VariantsT = Aws::Vector<ComponentVariant>>
124 void SetVariants(VariantsT&& value) { m_variantsHasBeenSet = true; m_variants = std::forward<VariantsT>(value); }
125 template<typename VariantsT = Aws::Vector<ComponentVariant>>
126 CreateComponentData& WithVariants(VariantsT&& value) { SetVariants(std::forward<VariantsT>(value)); return *this;}
127 template<typename VariantsT = ComponentVariant>
128 CreateComponentData& AddVariants(VariantsT&& value) { m_variantsHasBeenSet = true; m_variants.emplace_back(std::forward<VariantsT>(value)); return *this; }
130
132
136 inline const Aws::Map<Aws::String, Aws::Map<Aws::String, Aws::String>>& GetOverrides() const { return m_overrides; }
137 inline bool OverridesHasBeenSet() const { return m_overridesHasBeenSet; }
138 template<typename OverridesT = Aws::Map<Aws::String, Aws::Map<Aws::String, Aws::String>>>
139 void SetOverrides(OverridesT&& value) { m_overridesHasBeenSet = true; m_overrides = std::forward<OverridesT>(value); }
140 template<typename OverridesT = Aws::Map<Aws::String, Aws::Map<Aws::String, Aws::String>>>
141 CreateComponentData& WithOverrides(OverridesT&& value) { SetOverrides(std::forward<OverridesT>(value)); return *this;}
142 template<typename OverridesKeyT = Aws::String, typename OverridesValueT = Aws::Map<Aws::String, Aws::String>>
143 CreateComponentData& AddOverrides(OverridesKeyT&& key, OverridesValueT&& value) {
144 m_overridesHasBeenSet = true; m_overrides.emplace(std::forward<OverridesKeyT>(key), std::forward<OverridesValueT>(value)); return *this;
145 }
147
149
152 inline const Aws::Map<Aws::String, ComponentBindingPropertiesValue>& GetBindingProperties() const { return m_bindingProperties; }
153 inline bool BindingPropertiesHasBeenSet() const { return m_bindingPropertiesHasBeenSet; }
154 template<typename BindingPropertiesT = Aws::Map<Aws::String, ComponentBindingPropertiesValue>>
155 void SetBindingProperties(BindingPropertiesT&& value) { m_bindingPropertiesHasBeenSet = true; m_bindingProperties = std::forward<BindingPropertiesT>(value); }
156 template<typename BindingPropertiesT = Aws::Map<Aws::String, ComponentBindingPropertiesValue>>
157 CreateComponentData& WithBindingProperties(BindingPropertiesT&& value) { SetBindingProperties(std::forward<BindingPropertiesT>(value)); return *this;}
158 template<typename BindingPropertiesKeyT = Aws::String, typename BindingPropertiesValueT = ComponentBindingPropertiesValue>
159 CreateComponentData& AddBindingProperties(BindingPropertiesKeyT&& key, BindingPropertiesValueT&& value) {
160 m_bindingPropertiesHasBeenSet = true; m_bindingProperties.emplace(std::forward<BindingPropertiesKeyT>(key), std::forward<BindingPropertiesValueT>(value)); return *this;
161 }
163
165
169 inline const Aws::Map<Aws::String, ComponentDataConfiguration>& GetCollectionProperties() const { return m_collectionProperties; }
170 inline bool CollectionPropertiesHasBeenSet() const { return m_collectionPropertiesHasBeenSet; }
171 template<typename CollectionPropertiesT = Aws::Map<Aws::String, ComponentDataConfiguration>>
172 void SetCollectionProperties(CollectionPropertiesT&& value) { m_collectionPropertiesHasBeenSet = true; m_collectionProperties = std::forward<CollectionPropertiesT>(value); }
173 template<typename CollectionPropertiesT = Aws::Map<Aws::String, ComponentDataConfiguration>>
174 CreateComponentData& WithCollectionProperties(CollectionPropertiesT&& value) { SetCollectionProperties(std::forward<CollectionPropertiesT>(value)); return *this;}
175 template<typename CollectionPropertiesKeyT = Aws::String, typename CollectionPropertiesValueT = ComponentDataConfiguration>
176 CreateComponentData& AddCollectionProperties(CollectionPropertiesKeyT&& key, CollectionPropertiesValueT&& value) {
177 m_collectionPropertiesHasBeenSet = true; m_collectionProperties.emplace(std::forward<CollectionPropertiesKeyT>(key), std::forward<CollectionPropertiesValueT>(value)); return *this;
178 }
180
182
185 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
186 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
187 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
188 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
189 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
190 CreateComponentData& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
191 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
192 CreateComponentData& AddTags(TagsKeyT&& key, TagsValueT&& value) {
193 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
194 }
196
198
202 inline const Aws::Map<Aws::String, ComponentEvent>& GetEvents() const { return m_events; }
203 inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
204 template<typename EventsT = Aws::Map<Aws::String, ComponentEvent>>
205 void SetEvents(EventsT&& value) { m_eventsHasBeenSet = true; m_events = std::forward<EventsT>(value); }
206 template<typename EventsT = Aws::Map<Aws::String, ComponentEvent>>
207 CreateComponentData& WithEvents(EventsT&& value) { SetEvents(std::forward<EventsT>(value)); return *this;}
208 template<typename EventsKeyT = Aws::String, typename EventsValueT = ComponentEvent>
209 CreateComponentData& AddEvents(EventsKeyT&& key, EventsValueT&& value) {
210 m_eventsHasBeenSet = true; m_events.emplace(std::forward<EventsKeyT>(key), std::forward<EventsValueT>(value)); return *this;
211 }
213
215
218 inline const Aws::String& GetSchemaVersion() const { return m_schemaVersion; }
219 inline bool SchemaVersionHasBeenSet() const { return m_schemaVersionHasBeenSet; }
220 template<typename SchemaVersionT = Aws::String>
221 void SetSchemaVersion(SchemaVersionT&& value) { m_schemaVersionHasBeenSet = true; m_schemaVersion = std::forward<SchemaVersionT>(value); }
222 template<typename SchemaVersionT = Aws::String>
223 CreateComponentData& WithSchemaVersion(SchemaVersionT&& value) { SetSchemaVersion(std::forward<SchemaVersionT>(value)); return *this;}
225 private:
226
227 Aws::String m_name;
228 bool m_nameHasBeenSet = false;
229
230 Aws::String m_sourceId;
231 bool m_sourceIdHasBeenSet = false;
232
233 Aws::String m_componentType;
234 bool m_componentTypeHasBeenSet = false;
235
237 bool m_propertiesHasBeenSet = false;
238
240 bool m_childrenHasBeenSet = false;
241
243 bool m_variantsHasBeenSet = false;
244
246 bool m_overridesHasBeenSet = false;
247
249 bool m_bindingPropertiesHasBeenSet = false;
250
252 bool m_collectionPropertiesHasBeenSet = false;
253
255 bool m_tagsHasBeenSet = false;
256
258 bool m_eventsHasBeenSet = false;
259
260 Aws::String m_schemaVersion;
261 bool m_schemaVersionHasBeenSet = false;
262 };
263
264} // namespace Model
265} // namespace AmplifyUIBuilder
266} // 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