AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
ComponentProperty.h
1
6#pragma once
7#include <aws/amplifyuibuilder/AmplifyUIBuilder_EXPORTS.h>
8#include <aws/amplifyuibuilder/model/ComponentPropertyBindingProperties.h>
9#include <aws/amplifyuibuilder/model/FormBindingElement.h>
10#include <aws/core/utils/memory/stl/AWSAllocator.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace AmplifyUIBuilder {
25namespace Model {
26class ComponentConditionProperty;
27
36 public:
37 AWS_AMPLIFYUIBUILDER_API ComponentProperty() = default;
38 AWS_AMPLIFYUIBUILDER_API ComponentProperty(Aws::Utils::Json::JsonView jsonValue);
39 AWS_AMPLIFYUIBUILDER_API ComponentProperty& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
46 inline const Aws::String& GetValue() const { return m_value; }
47 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
48 template <typename ValueT = Aws::String>
49 void SetValue(ValueT&& value) {
50 m_valueHasBeenSet = true;
51 m_value = std::forward<ValueT>(value);
52 }
53 template <typename ValueT = Aws::String>
54 ComponentProperty& WithValue(ValueT&& value) {
55 SetValue(std::forward<ValueT>(value));
56 return *this;
57 }
59
61
64 inline const ComponentPropertyBindingProperties& GetBindingProperties() const { return m_bindingProperties; }
65 inline bool BindingPropertiesHasBeenSet() const { return m_bindingPropertiesHasBeenSet; }
66 template <typename BindingPropertiesT = ComponentPropertyBindingProperties>
67 void SetBindingProperties(BindingPropertiesT&& value) {
68 m_bindingPropertiesHasBeenSet = true;
69 m_bindingProperties = std::forward<BindingPropertiesT>(value);
70 }
71 template <typename BindingPropertiesT = ComponentPropertyBindingProperties>
72 ComponentProperty& WithBindingProperties(BindingPropertiesT&& value) {
73 SetBindingProperties(std::forward<BindingPropertiesT>(value));
74 return *this;
75 }
77
79
83 inline const ComponentPropertyBindingProperties& GetCollectionBindingProperties() const { return m_collectionBindingProperties; }
84 inline bool CollectionBindingPropertiesHasBeenSet() const { return m_collectionBindingPropertiesHasBeenSet; }
85 template <typename CollectionBindingPropertiesT = ComponentPropertyBindingProperties>
86 void SetCollectionBindingProperties(CollectionBindingPropertiesT&& value) {
87 m_collectionBindingPropertiesHasBeenSet = true;
88 m_collectionBindingProperties = std::forward<CollectionBindingPropertiesT>(value);
89 }
90 template <typename CollectionBindingPropertiesT = ComponentPropertyBindingProperties>
91 ComponentProperty& WithCollectionBindingProperties(CollectionBindingPropertiesT&& value) {
92 SetCollectionBindingProperties(std::forward<CollectionBindingPropertiesT>(value));
93 return *this;
94 }
96
98
101 inline const Aws::String& GetDefaultValue() const { return m_defaultValue; }
102 inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
103 template <typename DefaultValueT = Aws::String>
104 void SetDefaultValue(DefaultValueT&& value) {
105 m_defaultValueHasBeenSet = true;
106 m_defaultValue = std::forward<DefaultValueT>(value);
107 }
108 template <typename DefaultValueT = Aws::String>
109 ComponentProperty& WithDefaultValue(DefaultValueT&& value) {
110 SetDefaultValue(std::forward<DefaultValueT>(value));
111 return *this;
112 }
114
116
119 inline const Aws::String& GetModel() const { return m_model; }
120 inline bool ModelHasBeenSet() const { return m_modelHasBeenSet; }
121 template <typename ModelT = Aws::String>
122 void SetModel(ModelT&& value) {
123 m_modelHasBeenSet = true;
124 m_model = std::forward<ModelT>(value);
125 }
126 template <typename ModelT = Aws::String>
127 ComponentProperty& WithModel(ModelT&& value) {
128 SetModel(std::forward<ModelT>(value));
129 return *this;
130 }
132
134
137 inline const Aws::Map<Aws::String, FormBindingElement>& GetBindings() const { return m_bindings; }
138 inline bool BindingsHasBeenSet() const { return m_bindingsHasBeenSet; }
139 template <typename BindingsT = Aws::Map<Aws::String, FormBindingElement>>
140 void SetBindings(BindingsT&& value) {
141 m_bindingsHasBeenSet = true;
142 m_bindings = std::forward<BindingsT>(value);
143 }
144 template <typename BindingsT = Aws::Map<Aws::String, FormBindingElement>>
145 ComponentProperty& WithBindings(BindingsT&& value) {
146 SetBindings(std::forward<BindingsT>(value));
147 return *this;
148 }
149 template <typename BindingsKeyT = Aws::String, typename BindingsValueT = FormBindingElement>
150 ComponentProperty& AddBindings(BindingsKeyT&& key, BindingsValueT&& value) {
151 m_bindingsHasBeenSet = true;
152 m_bindings.emplace(std::forward<BindingsKeyT>(key), std::forward<BindingsValueT>(value));
153 return *this;
154 }
156
158
161 inline const Aws::String& GetEvent() const { return m_event; }
162 inline bool EventHasBeenSet() const { return m_eventHasBeenSet; }
163 template <typename EventT = Aws::String>
164 void SetEvent(EventT&& value) {
165 m_eventHasBeenSet = true;
166 m_event = std::forward<EventT>(value);
167 }
168 template <typename EventT = Aws::String>
169 ComponentProperty& WithEvent(EventT&& value) {
170 SetEvent(std::forward<EventT>(value));
171 return *this;
172 }
174
176
180 inline const Aws::String& GetUserAttribute() const { return m_userAttribute; }
181 inline bool UserAttributeHasBeenSet() const { return m_userAttributeHasBeenSet; }
182 template <typename UserAttributeT = Aws::String>
183 void SetUserAttribute(UserAttributeT&& value) {
184 m_userAttributeHasBeenSet = true;
185 m_userAttribute = std::forward<UserAttributeT>(value);
186 }
187 template <typename UserAttributeT = Aws::String>
188 ComponentProperty& WithUserAttribute(UserAttributeT&& value) {
189 SetUserAttribute(std::forward<UserAttributeT>(value));
190 return *this;
191 }
193
195
199 inline const Aws::Vector<ComponentProperty>& GetConcat() const { return m_concat; }
200 inline bool ConcatHasBeenSet() const { return m_concatHasBeenSet; }
201 template <typename ConcatT = Aws::Vector<ComponentProperty>>
202 void SetConcat(ConcatT&& value) {
203 m_concatHasBeenSet = true;
204 m_concat = std::forward<ConcatT>(value);
205 }
206 template <typename ConcatT = Aws::Vector<ComponentProperty>>
207 ComponentProperty& WithConcat(ConcatT&& value) {
208 SetConcat(std::forward<ConcatT>(value));
209 return *this;
210 }
211 template <typename ConcatT = ComponentProperty>
212 ComponentProperty& AddConcat(ConcatT&& value) {
213 m_concatHasBeenSet = true;
214 m_concat.emplace_back(std::forward<ConcatT>(value));
215 return *this;
216 }
218
220
224 inline const ComponentConditionProperty& GetCondition() const { return *m_condition; }
225 inline bool ConditionHasBeenSet() const { return m_conditionHasBeenSet; }
226 template <typename ConditionT = ComponentConditionProperty>
227 void SetCondition(ConditionT&& value) {
228 m_conditionHasBeenSet = true;
229 m_condition = Aws::MakeShared<ComponentConditionProperty>("ComponentProperty", std::forward<ConditionT>(value));
230 }
231 template <typename ConditionT = ComponentConditionProperty>
232 ComponentProperty& WithCondition(ConditionT&& value) {
233 SetCondition(std::forward<ConditionT>(value));
234 return *this;
235 }
237
239
243 inline bool GetConfigured() const { return m_configured; }
244 inline bool ConfiguredHasBeenSet() const { return m_configuredHasBeenSet; }
245 inline void SetConfigured(bool value) {
246 m_configuredHasBeenSet = true;
247 m_configured = value;
248 }
249 inline ComponentProperty& WithConfigured(bool value) {
250 SetConfigured(value);
251 return *this;
252 }
254
256
259 inline const Aws::String& GetType() const { return m_type; }
260 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
261 template <typename TypeT = Aws::String>
262 void SetType(TypeT&& value) {
263 m_typeHasBeenSet = true;
264 m_type = std::forward<TypeT>(value);
265 }
266 template <typename TypeT = Aws::String>
267 ComponentProperty& WithType(TypeT&& value) {
268 SetType(std::forward<TypeT>(value));
269 return *this;
270 }
272
274
278 inline const Aws::String& GetImportedValue() const { return m_importedValue; }
279 inline bool ImportedValueHasBeenSet() const { return m_importedValueHasBeenSet; }
280 template <typename ImportedValueT = Aws::String>
281 void SetImportedValue(ImportedValueT&& value) {
282 m_importedValueHasBeenSet = true;
283 m_importedValue = std::forward<ImportedValueT>(value);
284 }
285 template <typename ImportedValueT = Aws::String>
286 ComponentProperty& WithImportedValue(ImportedValueT&& value) {
287 SetImportedValue(std::forward<ImportedValueT>(value));
288 return *this;
289 }
291
293
296 inline const Aws::String& GetComponentName() const { return m_componentName; }
297 inline bool ComponentNameHasBeenSet() const { return m_componentNameHasBeenSet; }
298 template <typename ComponentNameT = Aws::String>
299 void SetComponentName(ComponentNameT&& value) {
300 m_componentNameHasBeenSet = true;
301 m_componentName = std::forward<ComponentNameT>(value);
302 }
303 template <typename ComponentNameT = Aws::String>
304 ComponentProperty& WithComponentName(ComponentNameT&& value) {
305 SetComponentName(std::forward<ComponentNameT>(value));
306 return *this;
307 }
309
311
314 inline const Aws::String& GetProperty() const { return m_property; }
315 inline bool PropertyHasBeenSet() const { return m_propertyHasBeenSet; }
316 template <typename PropertyT = Aws::String>
317 void SetProperty(PropertyT&& value) {
318 m_propertyHasBeenSet = true;
319 m_property = std::forward<PropertyT>(value);
320 }
321 template <typename PropertyT = Aws::String>
322 ComponentProperty& WithProperty(PropertyT&& value) {
323 SetProperty(std::forward<PropertyT>(value));
324 return *this;
325 }
327 private:
328 Aws::String m_value;
329
330 ComponentPropertyBindingProperties m_bindingProperties;
331
332 ComponentPropertyBindingProperties m_collectionBindingProperties;
333
334 Aws::String m_defaultValue;
335
336 Aws::String m_model;
337
339
340 Aws::String m_event;
341
342 Aws::String m_userAttribute;
343
345
346 std::shared_ptr<ComponentConditionProperty> m_condition;
347
348 bool m_configured{false};
349
350 Aws::String m_type;
351
352 Aws::String m_importedValue;
353
354 Aws::String m_componentName;
355
356 Aws::String m_property;
357 bool m_valueHasBeenSet = false;
358 bool m_bindingPropertiesHasBeenSet = false;
359 bool m_collectionBindingPropertiesHasBeenSet = false;
360 bool m_defaultValueHasBeenSet = false;
361 bool m_modelHasBeenSet = false;
362 bool m_bindingsHasBeenSet = false;
363 bool m_eventHasBeenSet = false;
364 bool m_userAttributeHasBeenSet = false;
365 bool m_concatHasBeenSet = false;
366 bool m_conditionHasBeenSet = false;
367 bool m_configuredHasBeenSet = false;
368 bool m_typeHasBeenSet = false;
369 bool m_importedValueHasBeenSet = false;
370 bool m_componentNameHasBeenSet = false;
371 bool m_propertyHasBeenSet = false;
372};
373
374} // namespace Model
375} // namespace AmplifyUIBuilder
376} // namespace Aws
AWS_AMPLIFYUIBUILDER_API ComponentProperty(Aws::Utils::Json::JsonView jsonValue)
ComponentProperty & WithModel(ModelT &&value)
ComponentProperty & WithCondition(ConditionT &&value)
const Aws::Map< Aws::String, FormBindingElement > & GetBindings() const
ComponentProperty & WithComponentName(ComponentNameT &&value)
ComponentProperty & WithBindings(BindingsT &&value)
const ComponentPropertyBindingProperties & GetBindingProperties() const
const Aws::Vector< ComponentProperty > & GetConcat() const
ComponentProperty & WithCollectionBindingProperties(CollectionBindingPropertiesT &&value)
ComponentProperty & WithProperty(PropertyT &&value)
ComponentProperty & WithConcat(ConcatT &&value)
const ComponentConditionProperty & GetCondition() const
AWS_AMPLIFYUIBUILDER_API ComponentProperty()=default
ComponentProperty & WithEvent(EventT &&value)
AWS_AMPLIFYUIBUILDER_API ComponentProperty & operator=(Aws::Utils::Json::JsonView jsonValue)
const ComponentPropertyBindingProperties & GetCollectionBindingProperties() const
AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
ComponentProperty & AddBindings(BindingsKeyT &&key, BindingsValueT &&value)
ComponentProperty & WithUserAttribute(UserAttributeT &&value)
void SetBindingProperties(BindingPropertiesT &&value)
ComponentProperty & WithType(TypeT &&value)
ComponentProperty & WithBindingProperties(BindingPropertiesT &&value)
ComponentProperty & WithValue(ValueT &&value)
void SetCollectionBindingProperties(CollectionBindingPropertiesT &&value)
ComponentProperty & WithImportedValue(ImportedValueT &&value)
ComponentProperty & AddConcat(ConcatT &&value)
ComponentProperty & WithDefaultValue(DefaultValueT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
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