AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
UpdateComponentData.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 UpdateComponentData() = default;
39 AWS_AMPLIFYUIBUILDER_API UpdateComponentData(Aws::Utils::Json::JsonView jsonValue);
40 AWS_AMPLIFYUIBUILDER_API UpdateComponentData& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
47 inline const Aws::String& GetId() const { return m_id; }
48 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
49 template <typename IdT = Aws::String>
50 void SetId(IdT&& value) {
51 m_idHasBeenSet = true;
52 m_id = std::forward<IdT>(value);
53 }
54 template <typename IdT = Aws::String>
56 SetId(std::forward<IdT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetName() const { return m_name; }
66 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
67 template <typename NameT = Aws::String>
68 void SetName(NameT&& value) {
69 m_nameHasBeenSet = true;
70 m_name = std::forward<NameT>(value);
71 }
72 template <typename NameT = Aws::String>
73 UpdateComponentData& WithName(NameT&& value) {
74 SetName(std::forward<NameT>(value));
75 return *this;
76 }
78
80
84 inline const Aws::String& GetSourceId() const { return m_sourceId; }
85 inline bool SourceIdHasBeenSet() const { return m_sourceIdHasBeenSet; }
86 template <typename SourceIdT = Aws::String>
87 void SetSourceId(SourceIdT&& value) {
88 m_sourceIdHasBeenSet = true;
89 m_sourceId = std::forward<SourceIdT>(value);
90 }
91 template <typename SourceIdT = Aws::String>
92 UpdateComponentData& WithSourceId(SourceIdT&& value) {
93 SetSourceId(std::forward<SourceIdT>(value));
94 return *this;
95 }
97
99
103 inline const Aws::String& GetComponentType() const { return m_componentType; }
104 inline bool ComponentTypeHasBeenSet() const { return m_componentTypeHasBeenSet; }
105 template <typename ComponentTypeT = Aws::String>
106 void SetComponentType(ComponentTypeT&& value) {
107 m_componentTypeHasBeenSet = true;
108 m_componentType = std::forward<ComponentTypeT>(value);
109 }
110 template <typename ComponentTypeT = Aws::String>
111 UpdateComponentData& WithComponentType(ComponentTypeT&& value) {
112 SetComponentType(std::forward<ComponentTypeT>(value));
113 return *this;
114 }
116
118
121 inline const Aws::Map<Aws::String, ComponentProperty>& GetProperties() const { return m_properties; }
122 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
123 template <typename PropertiesT = Aws::Map<Aws::String, ComponentProperty>>
124 void SetProperties(PropertiesT&& value) {
125 m_propertiesHasBeenSet = true;
126 m_properties = std::forward<PropertiesT>(value);
127 }
128 template <typename PropertiesT = Aws::Map<Aws::String, ComponentProperty>>
129 UpdateComponentData& WithProperties(PropertiesT&& value) {
130 SetProperties(std::forward<PropertiesT>(value));
131 return *this;
132 }
133 template <typename PropertiesKeyT = Aws::String, typename PropertiesValueT = ComponentProperty>
134 UpdateComponentData& AddProperties(PropertiesKeyT&& key, PropertiesValueT&& value) {
135 m_propertiesHasBeenSet = true;
136 m_properties.emplace(std::forward<PropertiesKeyT>(key), std::forward<PropertiesValueT>(value));
137 return *this;
138 }
140
142
145 inline const Aws::Vector<ComponentChild>& GetChildren() const { return m_children; }
146 inline bool ChildrenHasBeenSet() const { return m_childrenHasBeenSet; }
147 template <typename ChildrenT = Aws::Vector<ComponentChild>>
148 void SetChildren(ChildrenT&& value) {
149 m_childrenHasBeenSet = true;
150 m_children = std::forward<ChildrenT>(value);
151 }
152 template <typename ChildrenT = Aws::Vector<ComponentChild>>
153 UpdateComponentData& WithChildren(ChildrenT&& value) {
154 SetChildren(std::forward<ChildrenT>(value));
155 return *this;
156 }
157 template <typename ChildrenT = ComponentChild>
158 UpdateComponentData& AddChildren(ChildrenT&& value) {
159 m_childrenHasBeenSet = true;
160 m_children.emplace_back(std::forward<ChildrenT>(value));
161 return *this;
162 }
164
166
169 inline const Aws::Vector<ComponentVariant>& GetVariants() const { return m_variants; }
170 inline bool VariantsHasBeenSet() const { return m_variantsHasBeenSet; }
171 template <typename VariantsT = Aws::Vector<ComponentVariant>>
172 void SetVariants(VariantsT&& value) {
173 m_variantsHasBeenSet = true;
174 m_variants = std::forward<VariantsT>(value);
175 }
176 template <typename VariantsT = Aws::Vector<ComponentVariant>>
177 UpdateComponentData& WithVariants(VariantsT&& value) {
178 SetVariants(std::forward<VariantsT>(value));
179 return *this;
180 }
181 template <typename VariantsT = ComponentVariant>
182 UpdateComponentData& AddVariants(VariantsT&& value) {
183 m_variantsHasBeenSet = true;
184 m_variants.emplace_back(std::forward<VariantsT>(value));
185 return *this;
186 }
188
190
194 inline const Aws::Map<Aws::String, Aws::Map<Aws::String, Aws::String>>& GetOverrides() const { return m_overrides; }
195 inline bool OverridesHasBeenSet() const { return m_overridesHasBeenSet; }
196 template <typename OverridesT = Aws::Map<Aws::String, Aws::Map<Aws::String, Aws::String>>>
197 void SetOverrides(OverridesT&& value) {
198 m_overridesHasBeenSet = true;
199 m_overrides = std::forward<OverridesT>(value);
200 }
201 template <typename OverridesT = Aws::Map<Aws::String, Aws::Map<Aws::String, Aws::String>>>
202 UpdateComponentData& WithOverrides(OverridesT&& value) {
203 SetOverrides(std::forward<OverridesT>(value));
204 return *this;
205 }
206 template <typename OverridesKeyT = Aws::String, typename OverridesValueT = Aws::Map<Aws::String, Aws::String>>
207 UpdateComponentData& AddOverrides(OverridesKeyT&& key, OverridesValueT&& value) {
208 m_overridesHasBeenSet = true;
209 m_overrides.emplace(std::forward<OverridesKeyT>(key), std::forward<OverridesValueT>(value));
210 return *this;
211 }
213
215
218 inline const Aws::Map<Aws::String, ComponentBindingPropertiesValue>& GetBindingProperties() const { return m_bindingProperties; }
219 inline bool BindingPropertiesHasBeenSet() const { return m_bindingPropertiesHasBeenSet; }
220 template <typename BindingPropertiesT = Aws::Map<Aws::String, ComponentBindingPropertiesValue>>
221 void SetBindingProperties(BindingPropertiesT&& value) {
222 m_bindingPropertiesHasBeenSet = true;
223 m_bindingProperties = std::forward<BindingPropertiesT>(value);
224 }
225 template <typename BindingPropertiesT = Aws::Map<Aws::String, ComponentBindingPropertiesValue>>
226 UpdateComponentData& WithBindingProperties(BindingPropertiesT&& value) {
227 SetBindingProperties(std::forward<BindingPropertiesT>(value));
228 return *this;
229 }
230 template <typename BindingPropertiesKeyT = Aws::String, typename BindingPropertiesValueT = ComponentBindingPropertiesValue>
231 UpdateComponentData& AddBindingProperties(BindingPropertiesKeyT&& key, BindingPropertiesValueT&& value) {
232 m_bindingPropertiesHasBeenSet = true;
233 m_bindingProperties.emplace(std::forward<BindingPropertiesKeyT>(key), std::forward<BindingPropertiesValueT>(value));
234 return *this;
235 }
237
239
243 inline const Aws::Map<Aws::String, ComponentDataConfiguration>& GetCollectionProperties() const { return m_collectionProperties; }
244 inline bool CollectionPropertiesHasBeenSet() const { return m_collectionPropertiesHasBeenSet; }
245 template <typename CollectionPropertiesT = Aws::Map<Aws::String, ComponentDataConfiguration>>
246 void SetCollectionProperties(CollectionPropertiesT&& value) {
247 m_collectionPropertiesHasBeenSet = true;
248 m_collectionProperties = std::forward<CollectionPropertiesT>(value);
249 }
250 template <typename CollectionPropertiesT = Aws::Map<Aws::String, ComponentDataConfiguration>>
251 UpdateComponentData& WithCollectionProperties(CollectionPropertiesT&& value) {
252 SetCollectionProperties(std::forward<CollectionPropertiesT>(value));
253 return *this;
254 }
255 template <typename CollectionPropertiesKeyT = Aws::String, typename CollectionPropertiesValueT = ComponentDataConfiguration>
256 UpdateComponentData& AddCollectionProperties(CollectionPropertiesKeyT&& key, CollectionPropertiesValueT&& value) {
257 m_collectionPropertiesHasBeenSet = true;
258 m_collectionProperties.emplace(std::forward<CollectionPropertiesKeyT>(key), std::forward<CollectionPropertiesValueT>(value));
259 return *this;
260 }
262
264
268 inline const Aws::Map<Aws::String, ComponentEvent>& GetEvents() const { return m_events; }
269 inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
270 template <typename EventsT = Aws::Map<Aws::String, ComponentEvent>>
271 void SetEvents(EventsT&& value) {
272 m_eventsHasBeenSet = true;
273 m_events = std::forward<EventsT>(value);
274 }
275 template <typename EventsT = Aws::Map<Aws::String, ComponentEvent>>
276 UpdateComponentData& WithEvents(EventsT&& value) {
277 SetEvents(std::forward<EventsT>(value));
278 return *this;
279 }
280 template <typename EventsKeyT = Aws::String, typename EventsValueT = ComponentEvent>
281 UpdateComponentData& AddEvents(EventsKeyT&& key, EventsValueT&& value) {
282 m_eventsHasBeenSet = true;
283 m_events.emplace(std::forward<EventsKeyT>(key), std::forward<EventsValueT>(value));
284 return *this;
285 }
287
289
292 inline const Aws::String& GetSchemaVersion() const { return m_schemaVersion; }
293 inline bool SchemaVersionHasBeenSet() const { return m_schemaVersionHasBeenSet; }
294 template <typename SchemaVersionT = Aws::String>
295 void SetSchemaVersion(SchemaVersionT&& value) {
296 m_schemaVersionHasBeenSet = true;
297 m_schemaVersion = std::forward<SchemaVersionT>(value);
298 }
299 template <typename SchemaVersionT = Aws::String>
300 UpdateComponentData& WithSchemaVersion(SchemaVersionT&& value) {
301 SetSchemaVersion(std::forward<SchemaVersionT>(value));
302 return *this;
303 }
305 private:
306 Aws::String m_id;
307
308 Aws::String m_name;
309
310 Aws::String m_sourceId;
311
312 Aws::String m_componentType;
313
315
317
319
321
323
325
327
328 Aws::String m_schemaVersion;
329 bool m_idHasBeenSet = false;
330 bool m_nameHasBeenSet = false;
331 bool m_sourceIdHasBeenSet = false;
332 bool m_componentTypeHasBeenSet = false;
333 bool m_propertiesHasBeenSet = false;
334 bool m_childrenHasBeenSet = false;
335 bool m_variantsHasBeenSet = false;
336 bool m_overridesHasBeenSet = false;
337 bool m_bindingPropertiesHasBeenSet = false;
338 bool m_collectionPropertiesHasBeenSet = false;
339 bool m_eventsHasBeenSet = false;
340 bool m_schemaVersionHasBeenSet = false;
341};
342
343} // namespace Model
344} // namespace AmplifyUIBuilder
345} // namespace Aws
void SetBindingProperties(BindingPropertiesT &&value)
UpdateComponentData & WithVariants(VariantsT &&value)
const Aws::Map< Aws::String, ComponentBindingPropertiesValue > & GetBindingProperties() const
const Aws::Map< Aws::String, Aws::Map< Aws::String, Aws::String > > & GetOverrides() const
UpdateComponentData & AddBindingProperties(BindingPropertiesKeyT &&key, BindingPropertiesValueT &&value)
UpdateComponentData & AddCollectionProperties(CollectionPropertiesKeyT &&key, CollectionPropertiesValueT &&value)
UpdateComponentData & AddProperties(PropertiesKeyT &&key, PropertiesValueT &&value)
AWS_AMPLIFYUIBUILDER_API UpdateComponentData()=default
AWS_AMPLIFYUIBUILDER_API UpdateComponentData & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_AMPLIFYUIBUILDER_API UpdateComponentData(Aws::Utils::Json::JsonView jsonValue)
UpdateComponentData & WithCollectionProperties(CollectionPropertiesT &&value)
UpdateComponentData & WithBindingProperties(BindingPropertiesT &&value)
UpdateComponentData & WithName(NameT &&value)
UpdateComponentData & WithSourceId(SourceIdT &&value)
UpdateComponentData & AddOverrides(OverridesKeyT &&key, OverridesValueT &&value)
UpdateComponentData & AddVariants(VariantsT &&value)
UpdateComponentData & WithEvents(EventsT &&value)
const Aws::Map< Aws::String, ComponentProperty > & GetProperties() const
AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
UpdateComponentData & WithOverrides(OverridesT &&value)
void SetCollectionProperties(CollectionPropertiesT &&value)
UpdateComponentData & WithChildren(ChildrenT &&value)
UpdateComponentData & AddEvents(EventsKeyT &&key, EventsValueT &&value)
const Aws::Vector< ComponentVariant > & GetVariants() const
UpdateComponentData & WithProperties(PropertiesT &&value)
UpdateComponentData & AddChildren(ChildrenT &&value)
const Aws::Vector< ComponentChild > & GetChildren() const
const Aws::Map< Aws::String, ComponentEvent > & GetEvents() const
const Aws::Map< Aws::String, ComponentDataConfiguration > & GetCollectionProperties() const
UpdateComponentData & WithComponentType(ComponentTypeT &&value)
UpdateComponentData & WithSchemaVersion(SchemaVersionT &&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