AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ComponentProperty.h
1
6#pragma once
7#include <aws/amplifyuibuilder/AmplifyUIBuilder_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/amplifyuibuilder/model/ComponentPropertyBindingProperties.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/amplifyuibuilder/model/FormBindingElement.h>
13#include <utility>
14#include <memory>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace AmplifyUIBuilder
27{
28namespace Model
29{
30 class ComponentConditionProperty;
31
40 {
41 public:
42 AWS_AMPLIFYUIBUILDER_API ComponentProperty();
43 AWS_AMPLIFYUIBUILDER_API ComponentProperty(Aws::Utils::Json::JsonView jsonValue);
44 AWS_AMPLIFYUIBUILDER_API ComponentProperty& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
52 inline const Aws::String& GetValue() const{ return m_value; }
53 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
54 inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
55 inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
56 inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
57 inline ComponentProperty& WithValue(const Aws::String& value) { SetValue(value); return *this;}
58 inline ComponentProperty& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
59 inline ComponentProperty& WithValue(const char* value) { SetValue(value); return *this;}
61
63
66 inline const ComponentPropertyBindingProperties& GetBindingProperties() const{ return m_bindingProperties; }
67 inline bool BindingPropertiesHasBeenSet() const { return m_bindingPropertiesHasBeenSet; }
68 inline void SetBindingProperties(const ComponentPropertyBindingProperties& value) { m_bindingPropertiesHasBeenSet = true; m_bindingProperties = value; }
69 inline void SetBindingProperties(ComponentPropertyBindingProperties&& value) { m_bindingPropertiesHasBeenSet = true; m_bindingProperties = std::move(value); }
73
75
79 inline const ComponentPropertyBindingProperties& GetCollectionBindingProperties() const{ return m_collectionBindingProperties; }
80 inline bool CollectionBindingPropertiesHasBeenSet() const { return m_collectionBindingPropertiesHasBeenSet; }
81 inline void SetCollectionBindingProperties(const ComponentPropertyBindingProperties& value) { m_collectionBindingPropertiesHasBeenSet = true; m_collectionBindingProperties = value; }
82 inline void SetCollectionBindingProperties(ComponentPropertyBindingProperties&& value) { m_collectionBindingPropertiesHasBeenSet = true; m_collectionBindingProperties = std::move(value); }
86
88
91 inline const Aws::String& GetDefaultValue() const{ return m_defaultValue; }
92 inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
93 inline void SetDefaultValue(const Aws::String& value) { m_defaultValueHasBeenSet = true; m_defaultValue = value; }
94 inline void SetDefaultValue(Aws::String&& value) { m_defaultValueHasBeenSet = true; m_defaultValue = std::move(value); }
95 inline void SetDefaultValue(const char* value) { m_defaultValueHasBeenSet = true; m_defaultValue.assign(value); }
96 inline ComponentProperty& WithDefaultValue(const Aws::String& value) { SetDefaultValue(value); return *this;}
97 inline ComponentProperty& WithDefaultValue(Aws::String&& value) { SetDefaultValue(std::move(value)); return *this;}
98 inline ComponentProperty& WithDefaultValue(const char* value) { SetDefaultValue(value); return *this;}
100
102
105 inline const Aws::String& GetModel() const{ return m_model; }
106 inline bool ModelHasBeenSet() const { return m_modelHasBeenSet; }
107 inline void SetModel(const Aws::String& value) { m_modelHasBeenSet = true; m_model = value; }
108 inline void SetModel(Aws::String&& value) { m_modelHasBeenSet = true; m_model = std::move(value); }
109 inline void SetModel(const char* value) { m_modelHasBeenSet = true; m_model.assign(value); }
110 inline ComponentProperty& WithModel(const Aws::String& value) { SetModel(value); return *this;}
111 inline ComponentProperty& WithModel(Aws::String&& value) { SetModel(std::move(value)); return *this;}
112 inline ComponentProperty& WithModel(const char* value) { SetModel(value); return *this;}
114
116
119 inline const Aws::Map<Aws::String, FormBindingElement>& GetBindings() const{ return m_bindings; }
120 inline bool BindingsHasBeenSet() const { return m_bindingsHasBeenSet; }
121 inline void SetBindings(const Aws::Map<Aws::String, FormBindingElement>& value) { m_bindingsHasBeenSet = true; m_bindings = value; }
122 inline void SetBindings(Aws::Map<Aws::String, FormBindingElement>&& value) { m_bindingsHasBeenSet = true; m_bindings = std::move(value); }
124 inline ComponentProperty& WithBindings(Aws::Map<Aws::String, FormBindingElement>&& value) { SetBindings(std::move(value)); return *this;}
125 inline ComponentProperty& AddBindings(const Aws::String& key, const FormBindingElement& value) { m_bindingsHasBeenSet = true; m_bindings.emplace(key, value); return *this; }
126 inline ComponentProperty& AddBindings(Aws::String&& key, const FormBindingElement& value) { m_bindingsHasBeenSet = true; m_bindings.emplace(std::move(key), value); return *this; }
127 inline ComponentProperty& AddBindings(const Aws::String& key, FormBindingElement&& value) { m_bindingsHasBeenSet = true; m_bindings.emplace(key, std::move(value)); return *this; }
128 inline ComponentProperty& AddBindings(Aws::String&& key, FormBindingElement&& value) { m_bindingsHasBeenSet = true; m_bindings.emplace(std::move(key), std::move(value)); return *this; }
129 inline ComponentProperty& AddBindings(const char* key, FormBindingElement&& value) { m_bindingsHasBeenSet = true; m_bindings.emplace(key, std::move(value)); return *this; }
130 inline ComponentProperty& AddBindings(const char* key, const FormBindingElement& value) { m_bindingsHasBeenSet = true; m_bindings.emplace(key, value); return *this; }
132
134
137 inline const Aws::String& GetEvent() const{ return m_event; }
138 inline bool EventHasBeenSet() const { return m_eventHasBeenSet; }
139 inline void SetEvent(const Aws::String& value) { m_eventHasBeenSet = true; m_event = value; }
140 inline void SetEvent(Aws::String&& value) { m_eventHasBeenSet = true; m_event = std::move(value); }
141 inline void SetEvent(const char* value) { m_eventHasBeenSet = true; m_event.assign(value); }
142 inline ComponentProperty& WithEvent(const Aws::String& value) { SetEvent(value); return *this;}
143 inline ComponentProperty& WithEvent(Aws::String&& value) { SetEvent(std::move(value)); return *this;}
144 inline ComponentProperty& WithEvent(const char* value) { SetEvent(value); return *this;}
146
148
152 inline const Aws::String& GetUserAttribute() const{ return m_userAttribute; }
153 inline bool UserAttributeHasBeenSet() const { return m_userAttributeHasBeenSet; }
154 inline void SetUserAttribute(const Aws::String& value) { m_userAttributeHasBeenSet = true; m_userAttribute = value; }
155 inline void SetUserAttribute(Aws::String&& value) { m_userAttributeHasBeenSet = true; m_userAttribute = std::move(value); }
156 inline void SetUserAttribute(const char* value) { m_userAttributeHasBeenSet = true; m_userAttribute.assign(value); }
157 inline ComponentProperty& WithUserAttribute(const Aws::String& value) { SetUserAttribute(value); return *this;}
158 inline ComponentProperty& WithUserAttribute(Aws::String&& value) { SetUserAttribute(std::move(value)); return *this;}
159 inline ComponentProperty& WithUserAttribute(const char* value) { SetUserAttribute(value); return *this;}
161
163
167 inline const Aws::Vector<ComponentProperty>& GetConcat() const{ return m_concat; }
168 inline bool ConcatHasBeenSet() const { return m_concatHasBeenSet; }
169 inline void SetConcat(const Aws::Vector<ComponentProperty>& value) { m_concatHasBeenSet = true; m_concat = value; }
170 inline void SetConcat(Aws::Vector<ComponentProperty>&& value) { m_concatHasBeenSet = true; m_concat = std::move(value); }
171 inline ComponentProperty& WithConcat(const Aws::Vector<ComponentProperty>& value) { SetConcat(value); return *this;}
172 inline ComponentProperty& WithConcat(Aws::Vector<ComponentProperty>&& value) { SetConcat(std::move(value)); return *this;}
173 inline ComponentProperty& AddConcat(const ComponentProperty& value) { m_concatHasBeenSet = true; m_concat.push_back(value); return *this; }
174 inline ComponentProperty& AddConcat(ComponentProperty&& value) { m_concatHasBeenSet = true; m_concat.push_back(std::move(value)); return *this; }
176
178
182 AWS_AMPLIFYUIBUILDER_API const ComponentConditionProperty& GetCondition() const;
183 AWS_AMPLIFYUIBUILDER_API bool ConditionHasBeenSet() const;
184 AWS_AMPLIFYUIBUILDER_API void SetCondition(const ComponentConditionProperty& value);
185 AWS_AMPLIFYUIBUILDER_API void SetCondition(ComponentConditionProperty&& value);
186 AWS_AMPLIFYUIBUILDER_API ComponentProperty& WithCondition(const ComponentConditionProperty& value);
189
191
195 inline bool GetConfigured() const{ return m_configured; }
196 inline bool ConfiguredHasBeenSet() const { return m_configuredHasBeenSet; }
197 inline void SetConfigured(bool value) { m_configuredHasBeenSet = true; m_configured = value; }
198 inline ComponentProperty& WithConfigured(bool value) { SetConfigured(value); return *this;}
200
202
205 inline const Aws::String& GetType() const{ return m_type; }
206 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
207 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
208 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
209 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
210 inline ComponentProperty& WithType(const Aws::String& value) { SetType(value); return *this;}
211 inline ComponentProperty& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
212 inline ComponentProperty& WithType(const char* value) { SetType(value); return *this;}
214
216
220 inline const Aws::String& GetImportedValue() const{ return m_importedValue; }
221 inline bool ImportedValueHasBeenSet() const { return m_importedValueHasBeenSet; }
222 inline void SetImportedValue(const Aws::String& value) { m_importedValueHasBeenSet = true; m_importedValue = value; }
223 inline void SetImportedValue(Aws::String&& value) { m_importedValueHasBeenSet = true; m_importedValue = std::move(value); }
224 inline void SetImportedValue(const char* value) { m_importedValueHasBeenSet = true; m_importedValue.assign(value); }
225 inline ComponentProperty& WithImportedValue(const Aws::String& value) { SetImportedValue(value); return *this;}
226 inline ComponentProperty& WithImportedValue(Aws::String&& value) { SetImportedValue(std::move(value)); return *this;}
227 inline ComponentProperty& WithImportedValue(const char* value) { SetImportedValue(value); return *this;}
229
231
234 inline const Aws::String& GetComponentName() const{ return m_componentName; }
235 inline bool ComponentNameHasBeenSet() const { return m_componentNameHasBeenSet; }
236 inline void SetComponentName(const Aws::String& value) { m_componentNameHasBeenSet = true; m_componentName = value; }
237 inline void SetComponentName(Aws::String&& value) { m_componentNameHasBeenSet = true; m_componentName = std::move(value); }
238 inline void SetComponentName(const char* value) { m_componentNameHasBeenSet = true; m_componentName.assign(value); }
239 inline ComponentProperty& WithComponentName(const Aws::String& value) { SetComponentName(value); return *this;}
240 inline ComponentProperty& WithComponentName(Aws::String&& value) { SetComponentName(std::move(value)); return *this;}
241 inline ComponentProperty& WithComponentName(const char* value) { SetComponentName(value); return *this;}
243
245
248 inline const Aws::String& GetProperty() const{ return m_property; }
249 inline bool PropertyHasBeenSet() const { return m_propertyHasBeenSet; }
250 inline void SetProperty(const Aws::String& value) { m_propertyHasBeenSet = true; m_property = value; }
251 inline void SetProperty(Aws::String&& value) { m_propertyHasBeenSet = true; m_property = std::move(value); }
252 inline void SetProperty(const char* value) { m_propertyHasBeenSet = true; m_property.assign(value); }
253 inline ComponentProperty& WithProperty(const Aws::String& value) { SetProperty(value); return *this;}
254 inline ComponentProperty& WithProperty(Aws::String&& value) { SetProperty(std::move(value)); return *this;}
255 inline ComponentProperty& WithProperty(const char* value) { SetProperty(value); return *this;}
257 private:
258
259 Aws::String m_value;
260 bool m_valueHasBeenSet = false;
261
262 ComponentPropertyBindingProperties m_bindingProperties;
263 bool m_bindingPropertiesHasBeenSet = false;
264
265 ComponentPropertyBindingProperties m_collectionBindingProperties;
266 bool m_collectionBindingPropertiesHasBeenSet = false;
267
268 Aws::String m_defaultValue;
269 bool m_defaultValueHasBeenSet = false;
270
271 Aws::String m_model;
272 bool m_modelHasBeenSet = false;
273
275 bool m_bindingsHasBeenSet = false;
276
277 Aws::String m_event;
278 bool m_eventHasBeenSet = false;
279
280 Aws::String m_userAttribute;
281 bool m_userAttributeHasBeenSet = false;
282
284 bool m_concatHasBeenSet = false;
285
286 std::shared_ptr<ComponentConditionProperty> m_condition;
287 bool m_conditionHasBeenSet = false;
288
289 bool m_configured;
290 bool m_configuredHasBeenSet = false;
291
292 Aws::String m_type;
293 bool m_typeHasBeenSet = false;
294
295 Aws::String m_importedValue;
296 bool m_importedValueHasBeenSet = false;
297
298 Aws::String m_componentName;
299 bool m_componentNameHasBeenSet = false;
300
301 Aws::String m_property;
302 bool m_propertyHasBeenSet = false;
303 };
304
305} // namespace Model
306} // namespace AmplifyUIBuilder
307} // namespace Aws
ComponentProperty & AddBindings(Aws::String &&key, FormBindingElement &&value)
ComponentProperty & WithBindingProperties(ComponentPropertyBindingProperties &&value)
AWS_AMPLIFYUIBUILDER_API ComponentProperty(Aws::Utils::Json::JsonView jsonValue)
void SetBindings(const Aws::Map< Aws::String, FormBindingElement > &value)
void SetConcat(const Aws::Vector< ComponentProperty > &value)
ComponentProperty & WithImportedValue(const Aws::String &value)
ComponentProperty & AddBindings(Aws::String &&key, const FormBindingElement &value)
ComponentProperty & WithCollectionBindingProperties(const ComponentPropertyBindingProperties &value)
ComponentProperty & WithImportedValue(Aws::String &&value)
ComponentProperty & WithConcat(const Aws::Vector< ComponentProperty > &value)
const Aws::Map< Aws::String, FormBindingElement > & GetBindings() const
AWS_AMPLIFYUIBUILDER_API ComponentProperty & WithCondition(ComponentConditionProperty &&value)
ComponentProperty & WithValue(Aws::String &&value)
ComponentProperty & WithUserAttribute(const Aws::String &value)
AWS_AMPLIFYUIBUILDER_API void SetCondition(ComponentConditionProperty &&value)
ComponentProperty & WithEvent(const Aws::String &value)
AWS_AMPLIFYUIBUILDER_API ComponentProperty()
const ComponentPropertyBindingProperties & GetBindingProperties() const
ComponentProperty & AddConcat(const ComponentProperty &value)
const Aws::Vector< ComponentProperty > & GetConcat() const
ComponentProperty & AddBindings(const Aws::String &key, const FormBindingElement &value)
ComponentProperty & WithConcat(Aws::Vector< ComponentProperty > &&value)
AWS_AMPLIFYUIBUILDER_API const ComponentConditionProperty & GetCondition() const
ComponentProperty & WithValue(const Aws::String &value)
ComponentProperty & WithProperty(Aws::String &&value)
ComponentProperty & WithComponentName(Aws::String &&value)
ComponentProperty & WithDefaultValue(Aws::String &&value)
ComponentProperty & WithValue(const char *value)
void SetCollectionBindingProperties(ComponentPropertyBindingProperties &&value)
ComponentProperty & WithBindings(const Aws::Map< Aws::String, FormBindingElement > &value)
void SetBindingProperties(const ComponentPropertyBindingProperties &value)
AWS_AMPLIFYUIBUILDER_API ComponentProperty & WithCondition(const ComponentConditionProperty &value)
ComponentProperty & WithCollectionBindingProperties(ComponentPropertyBindingProperties &&value)
ComponentProperty & WithType(const char *value)
ComponentProperty & WithModel(const Aws::String &value)
AWS_AMPLIFYUIBUILDER_API ComponentProperty & operator=(Aws::Utils::Json::JsonView jsonValue)
ComponentProperty & WithEvent(const char *value)
ComponentProperty & WithUserAttribute(Aws::String &&value)
const ComponentPropertyBindingProperties & GetCollectionBindingProperties() const
ComponentProperty & WithUserAttribute(const char *value)
ComponentProperty & WithImportedValue(const char *value)
AWS_AMPLIFYUIBUILDER_API bool ConditionHasBeenSet() const
ComponentProperty & AddBindings(const char *key, const FormBindingElement &value)
AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
ComponentProperty & WithEvent(Aws::String &&value)
ComponentProperty & WithDefaultValue(const Aws::String &value)
ComponentProperty & WithBindingProperties(const ComponentPropertyBindingProperties &value)
void SetBindingProperties(ComponentPropertyBindingProperties &&value)
ComponentProperty & WithDefaultValue(const char *value)
ComponentProperty & WithType(Aws::String &&value)
ComponentProperty & AddConcat(ComponentProperty &&value)
ComponentProperty & AddBindings(const char *key, FormBindingElement &&value)
ComponentProperty & WithComponentName(const Aws::String &value)
ComponentProperty & WithComponentName(const char *value)
void SetConcat(Aws::Vector< ComponentProperty > &&value)
AWS_AMPLIFYUIBUILDER_API void SetCondition(const ComponentConditionProperty &value)
ComponentProperty & AddBindings(const Aws::String &key, FormBindingElement &&value)
ComponentProperty & WithProperty(const char *value)
void SetBindings(Aws::Map< Aws::String, FormBindingElement > &&value)
ComponentProperty & WithModel(const char *value)
ComponentProperty & WithModel(Aws::String &&value)
ComponentProperty & WithType(const Aws::String &value)
ComponentProperty & WithBindings(Aws::Map< Aws::String, FormBindingElement > &&value)
void SetCollectionBindingProperties(const ComponentPropertyBindingProperties &value)
ComponentProperty & WithProperty(const Aws::String &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