AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
UpdateComponentData.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 UpdateComponentData() = default;
44 AWS_AMPLIFYUIBUILDER_API UpdateComponentData(Aws::Utils::Json::JsonView jsonValue);
45 AWS_AMPLIFYUIBUILDER_API UpdateComponentData& operator=(Aws::Utils::Json::JsonView jsonValue);
46 AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
53 inline const Aws::String& GetId() const { return m_id; }
54 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
55 template<typename IdT = Aws::String>
56 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
57 template<typename IdT = Aws::String>
58 UpdateComponentData& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
69 template<typename NameT = Aws::String>
70 UpdateComponentData& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
72
74
78 inline const Aws::String& GetSourceId() const { return m_sourceId; }
79 inline bool SourceIdHasBeenSet() const { return m_sourceIdHasBeenSet; }
80 template<typename SourceIdT = Aws::String>
81 void SetSourceId(SourceIdT&& value) { m_sourceIdHasBeenSet = true; m_sourceId = std::forward<SourceIdT>(value); }
82 template<typename SourceIdT = Aws::String>
83 UpdateComponentData& WithSourceId(SourceIdT&& value) { SetSourceId(std::forward<SourceIdT>(value)); return *this;}
85
87
91 inline const Aws::String& GetComponentType() const { return m_componentType; }
92 inline bool ComponentTypeHasBeenSet() const { return m_componentTypeHasBeenSet; }
93 template<typename ComponentTypeT = Aws::String>
94 void SetComponentType(ComponentTypeT&& value) { m_componentTypeHasBeenSet = true; m_componentType = std::forward<ComponentTypeT>(value); }
95 template<typename ComponentTypeT = Aws::String>
96 UpdateComponentData& WithComponentType(ComponentTypeT&& value) { SetComponentType(std::forward<ComponentTypeT>(value)); return *this;}
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) { m_propertiesHasBeenSet = true; m_properties = std::forward<PropertiesT>(value); }
107 template<typename PropertiesT = Aws::Map<Aws::String, ComponentProperty>>
108 UpdateComponentData& WithProperties(PropertiesT&& value) { SetProperties(std::forward<PropertiesT>(value)); return *this;}
109 template<typename PropertiesKeyT = Aws::String, typename PropertiesValueT = ComponentProperty>
110 UpdateComponentData& AddProperties(PropertiesKeyT&& key, PropertiesValueT&& value) {
111 m_propertiesHasBeenSet = true; m_properties.emplace(std::forward<PropertiesKeyT>(key), std::forward<PropertiesValueT>(value)); return *this;
112 }
114
116
119 inline const Aws::Vector<ComponentChild>& GetChildren() const { return m_children; }
120 inline bool ChildrenHasBeenSet() const { return m_childrenHasBeenSet; }
121 template<typename ChildrenT = Aws::Vector<ComponentChild>>
122 void SetChildren(ChildrenT&& value) { m_childrenHasBeenSet = true; m_children = std::forward<ChildrenT>(value); }
123 template<typename ChildrenT = Aws::Vector<ComponentChild>>
124 UpdateComponentData& WithChildren(ChildrenT&& value) { SetChildren(std::forward<ChildrenT>(value)); return *this;}
125 template<typename ChildrenT = ComponentChild>
126 UpdateComponentData& AddChildren(ChildrenT&& value) { m_childrenHasBeenSet = true; m_children.emplace_back(std::forward<ChildrenT>(value)); return *this; }
128
130
133 inline const Aws::Vector<ComponentVariant>& GetVariants() const { return m_variants; }
134 inline bool VariantsHasBeenSet() const { return m_variantsHasBeenSet; }
135 template<typename VariantsT = Aws::Vector<ComponentVariant>>
136 void SetVariants(VariantsT&& value) { m_variantsHasBeenSet = true; m_variants = std::forward<VariantsT>(value); }
137 template<typename VariantsT = Aws::Vector<ComponentVariant>>
138 UpdateComponentData& WithVariants(VariantsT&& value) { SetVariants(std::forward<VariantsT>(value)); return *this;}
139 template<typename VariantsT = ComponentVariant>
140 UpdateComponentData& AddVariants(VariantsT&& value) { m_variantsHasBeenSet = true; m_variants.emplace_back(std::forward<VariantsT>(value)); return *this; }
142
144
148 inline const Aws::Map<Aws::String, Aws::Map<Aws::String, Aws::String>>& GetOverrides() const { return m_overrides; }
149 inline bool OverridesHasBeenSet() const { return m_overridesHasBeenSet; }
150 template<typename OverridesT = Aws::Map<Aws::String, Aws::Map<Aws::String, Aws::String>>>
151 void SetOverrides(OverridesT&& value) { m_overridesHasBeenSet = true; m_overrides = std::forward<OverridesT>(value); }
152 template<typename OverridesT = Aws::Map<Aws::String, Aws::Map<Aws::String, Aws::String>>>
153 UpdateComponentData& WithOverrides(OverridesT&& value) { SetOverrides(std::forward<OverridesT>(value)); return *this;}
154 template<typename OverridesKeyT = Aws::String, typename OverridesValueT = Aws::Map<Aws::String, Aws::String>>
155 UpdateComponentData& AddOverrides(OverridesKeyT&& key, OverridesValueT&& value) {
156 m_overridesHasBeenSet = true; m_overrides.emplace(std::forward<OverridesKeyT>(key), std::forward<OverridesValueT>(value)); return *this;
157 }
159
161
164 inline const Aws::Map<Aws::String, ComponentBindingPropertiesValue>& GetBindingProperties() const { return m_bindingProperties; }
165 inline bool BindingPropertiesHasBeenSet() const { return m_bindingPropertiesHasBeenSet; }
166 template<typename BindingPropertiesT = Aws::Map<Aws::String, ComponentBindingPropertiesValue>>
167 void SetBindingProperties(BindingPropertiesT&& value) { m_bindingPropertiesHasBeenSet = true; m_bindingProperties = std::forward<BindingPropertiesT>(value); }
168 template<typename BindingPropertiesT = Aws::Map<Aws::String, ComponentBindingPropertiesValue>>
169 UpdateComponentData& WithBindingProperties(BindingPropertiesT&& value) { SetBindingProperties(std::forward<BindingPropertiesT>(value)); return *this;}
170 template<typename BindingPropertiesKeyT = Aws::String, typename BindingPropertiesValueT = ComponentBindingPropertiesValue>
171 UpdateComponentData& AddBindingProperties(BindingPropertiesKeyT&& key, BindingPropertiesValueT&& value) {
172 m_bindingPropertiesHasBeenSet = true; m_bindingProperties.emplace(std::forward<BindingPropertiesKeyT>(key), std::forward<BindingPropertiesValueT>(value)); return *this;
173 }
175
177
181 inline const Aws::Map<Aws::String, ComponentDataConfiguration>& GetCollectionProperties() const { return m_collectionProperties; }
182 inline bool CollectionPropertiesHasBeenSet() const { return m_collectionPropertiesHasBeenSet; }
183 template<typename CollectionPropertiesT = Aws::Map<Aws::String, ComponentDataConfiguration>>
184 void SetCollectionProperties(CollectionPropertiesT&& value) { m_collectionPropertiesHasBeenSet = true; m_collectionProperties = std::forward<CollectionPropertiesT>(value); }
185 template<typename CollectionPropertiesT = Aws::Map<Aws::String, ComponentDataConfiguration>>
186 UpdateComponentData& WithCollectionProperties(CollectionPropertiesT&& value) { SetCollectionProperties(std::forward<CollectionPropertiesT>(value)); return *this;}
187 template<typename CollectionPropertiesKeyT = Aws::String, typename CollectionPropertiesValueT = ComponentDataConfiguration>
188 UpdateComponentData& AddCollectionProperties(CollectionPropertiesKeyT&& key, CollectionPropertiesValueT&& value) {
189 m_collectionPropertiesHasBeenSet = true; m_collectionProperties.emplace(std::forward<CollectionPropertiesKeyT>(key), std::forward<CollectionPropertiesValueT>(value)); return *this;
190 }
192
194
198 inline const Aws::Map<Aws::String, ComponentEvent>& GetEvents() const { return m_events; }
199 inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
200 template<typename EventsT = Aws::Map<Aws::String, ComponentEvent>>
201 void SetEvents(EventsT&& value) { m_eventsHasBeenSet = true; m_events = std::forward<EventsT>(value); }
202 template<typename EventsT = Aws::Map<Aws::String, ComponentEvent>>
203 UpdateComponentData& WithEvents(EventsT&& value) { SetEvents(std::forward<EventsT>(value)); return *this;}
204 template<typename EventsKeyT = Aws::String, typename EventsValueT = ComponentEvent>
205 UpdateComponentData& AddEvents(EventsKeyT&& key, EventsValueT&& value) {
206 m_eventsHasBeenSet = true; m_events.emplace(std::forward<EventsKeyT>(key), std::forward<EventsValueT>(value)); return *this;
207 }
209
211
214 inline const Aws::String& GetSchemaVersion() const { return m_schemaVersion; }
215 inline bool SchemaVersionHasBeenSet() const { return m_schemaVersionHasBeenSet; }
216 template<typename SchemaVersionT = Aws::String>
217 void SetSchemaVersion(SchemaVersionT&& value) { m_schemaVersionHasBeenSet = true; m_schemaVersion = std::forward<SchemaVersionT>(value); }
218 template<typename SchemaVersionT = Aws::String>
219 UpdateComponentData& WithSchemaVersion(SchemaVersionT&& value) { SetSchemaVersion(std::forward<SchemaVersionT>(value)); return *this;}
221 private:
222
223 Aws::String m_id;
224 bool m_idHasBeenSet = false;
225
226 Aws::String m_name;
227 bool m_nameHasBeenSet = false;
228
229 Aws::String m_sourceId;
230 bool m_sourceIdHasBeenSet = false;
231
232 Aws::String m_componentType;
233 bool m_componentTypeHasBeenSet = false;
234
236 bool m_propertiesHasBeenSet = false;
237
239 bool m_childrenHasBeenSet = false;
240
242 bool m_variantsHasBeenSet = false;
243
245 bool m_overridesHasBeenSet = false;
246
248 bool m_bindingPropertiesHasBeenSet = false;
249
251 bool m_collectionPropertiesHasBeenSet = false;
252
254 bool m_eventsHasBeenSet = false;
255
256 Aws::String m_schemaVersion;
257 bool m_schemaVersionHasBeenSet = false;
258 };
259
260} // namespace Model
261} // namespace AmplifyUIBuilder
262} // 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