AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ComponentChild.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/ComponentEvent.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace AmplifyUIBuilder
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_AMPLIFYUIBUILDER_API ComponentChild();
40 AWS_AMPLIFYUIBUILDER_API ComponentChild(Aws::Utils::Json::JsonView jsonValue);
41 AWS_AMPLIFYUIBUILDER_API ComponentChild& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetComponentType() const{ return m_componentType; }
50 inline bool ComponentTypeHasBeenSet() const { return m_componentTypeHasBeenSet; }
51 inline void SetComponentType(const Aws::String& value) { m_componentTypeHasBeenSet = true; m_componentType = value; }
52 inline void SetComponentType(Aws::String&& value) { m_componentTypeHasBeenSet = true; m_componentType = std::move(value); }
53 inline void SetComponentType(const char* value) { m_componentTypeHasBeenSet = true; m_componentType.assign(value); }
54 inline ComponentChild& WithComponentType(const Aws::String& value) { SetComponentType(value); return *this;}
55 inline ComponentChild& WithComponentType(Aws::String&& value) { SetComponentType(std::move(value)); return *this;}
56 inline ComponentChild& WithComponentType(const char* value) { SetComponentType(value); return *this;}
58
60
63 inline const Aws::String& GetName() const{ return m_name; }
64 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
65 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
66 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
67 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
68 inline ComponentChild& WithName(const Aws::String& value) { SetName(value); return *this;}
69 inline ComponentChild& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
70 inline ComponentChild& WithName(const char* value) { SetName(value); return *this;}
72
74
78 inline const Aws::Map<Aws::String, ComponentProperty>& GetProperties() const{ return m_properties; }
79 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
80 inline void SetProperties(const Aws::Map<Aws::String, ComponentProperty>& value) { m_propertiesHasBeenSet = true; m_properties = value; }
81 inline void SetProperties(Aws::Map<Aws::String, ComponentProperty>&& value) { m_propertiesHasBeenSet = true; m_properties = std::move(value); }
83 inline ComponentChild& WithProperties(Aws::Map<Aws::String, ComponentProperty>&& value) { SetProperties(std::move(value)); return *this;}
84 inline ComponentChild& AddProperties(const Aws::String& key, const ComponentProperty& value) { m_propertiesHasBeenSet = true; m_properties.emplace(key, value); return *this; }
85 inline ComponentChild& AddProperties(Aws::String&& key, const ComponentProperty& value) { m_propertiesHasBeenSet = true; m_properties.emplace(std::move(key), value); return *this; }
86 inline ComponentChild& AddProperties(const Aws::String& key, ComponentProperty&& value) { m_propertiesHasBeenSet = true; m_properties.emplace(key, std::move(value)); return *this; }
87 inline ComponentChild& AddProperties(Aws::String&& key, ComponentProperty&& value) { m_propertiesHasBeenSet = true; m_properties.emplace(std::move(key), std::move(value)); return *this; }
88 inline ComponentChild& AddProperties(const char* key, ComponentProperty&& value) { m_propertiesHasBeenSet = true; m_properties.emplace(key, std::move(value)); return *this; }
89 inline ComponentChild& AddProperties(const char* key, const ComponentProperty& value) { m_propertiesHasBeenSet = true; m_properties.emplace(key, value); return *this; }
91
93
96 inline const Aws::Vector<ComponentChild>& GetChildren() const{ return m_children; }
97 inline bool ChildrenHasBeenSet() const { return m_childrenHasBeenSet; }
98 inline void SetChildren(const Aws::Vector<ComponentChild>& value) { m_childrenHasBeenSet = true; m_children = value; }
99 inline void SetChildren(Aws::Vector<ComponentChild>&& value) { m_childrenHasBeenSet = true; m_children = std::move(value); }
100 inline ComponentChild& WithChildren(const Aws::Vector<ComponentChild>& value) { SetChildren(value); return *this;}
101 inline ComponentChild& WithChildren(Aws::Vector<ComponentChild>&& value) { SetChildren(std::move(value)); return *this;}
102 inline ComponentChild& AddChildren(const ComponentChild& value) { m_childrenHasBeenSet = true; m_children.push_back(value); return *this; }
103 inline ComponentChild& AddChildren(ComponentChild&& value) { m_childrenHasBeenSet = true; m_children.push_back(std::move(value)); return *this; }
105
107
112 inline const Aws::Map<Aws::String, ComponentEvent>& GetEvents() const{ return m_events; }
113 inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
114 inline void SetEvents(const Aws::Map<Aws::String, ComponentEvent>& value) { m_eventsHasBeenSet = true; m_events = value; }
115 inline void SetEvents(Aws::Map<Aws::String, ComponentEvent>&& value) { m_eventsHasBeenSet = true; m_events = std::move(value); }
116 inline ComponentChild& WithEvents(const Aws::Map<Aws::String, ComponentEvent>& value) { SetEvents(value); return *this;}
117 inline ComponentChild& WithEvents(Aws::Map<Aws::String, ComponentEvent>&& value) { SetEvents(std::move(value)); return *this;}
118 inline ComponentChild& AddEvents(const Aws::String& key, const ComponentEvent& value) { m_eventsHasBeenSet = true; m_events.emplace(key, value); return *this; }
119 inline ComponentChild& AddEvents(Aws::String&& key, const ComponentEvent& value) { m_eventsHasBeenSet = true; m_events.emplace(std::move(key), value); return *this; }
120 inline ComponentChild& AddEvents(const Aws::String& key, ComponentEvent&& value) { m_eventsHasBeenSet = true; m_events.emplace(key, std::move(value)); return *this; }
121 inline ComponentChild& AddEvents(Aws::String&& key, ComponentEvent&& value) { m_eventsHasBeenSet = true; m_events.emplace(std::move(key), std::move(value)); return *this; }
122 inline ComponentChild& AddEvents(const char* key, ComponentEvent&& value) { m_eventsHasBeenSet = true; m_events.emplace(key, std::move(value)); return *this; }
123 inline ComponentChild& AddEvents(const char* key, const ComponentEvent& value) { m_eventsHasBeenSet = true; m_events.emplace(key, value); return *this; }
125
127
131 inline const Aws::String& GetSourceId() const{ return m_sourceId; }
132 inline bool SourceIdHasBeenSet() const { return m_sourceIdHasBeenSet; }
133 inline void SetSourceId(const Aws::String& value) { m_sourceIdHasBeenSet = true; m_sourceId = value; }
134 inline void SetSourceId(Aws::String&& value) { m_sourceIdHasBeenSet = true; m_sourceId = std::move(value); }
135 inline void SetSourceId(const char* value) { m_sourceIdHasBeenSet = true; m_sourceId.assign(value); }
136 inline ComponentChild& WithSourceId(const Aws::String& value) { SetSourceId(value); return *this;}
137 inline ComponentChild& WithSourceId(Aws::String&& value) { SetSourceId(std::move(value)); return *this;}
138 inline ComponentChild& WithSourceId(const char* value) { SetSourceId(value); return *this;}
140 private:
141
142 Aws::String m_componentType;
143 bool m_componentTypeHasBeenSet = false;
144
145 Aws::String m_name;
146 bool m_nameHasBeenSet = false;
147
149 bool m_propertiesHasBeenSet = false;
150
152 bool m_childrenHasBeenSet = false;
153
155 bool m_eventsHasBeenSet = false;
156
157 Aws::String m_sourceId;
158 bool m_sourceIdHasBeenSet = false;
159 };
160
161} // namespace Model
162} // namespace AmplifyUIBuilder
163} // namespace Aws
ComponentChild & AddProperties(const Aws::String &key, ComponentProperty &&value)
void SetSourceId(const Aws::String &value)
ComponentChild & WithName(const Aws::String &value)
AWS_AMPLIFYUIBUILDER_API ComponentChild(Aws::Utils::Json::JsonView jsonValue)
ComponentChild & WithComponentType(Aws::String &&value)
ComponentChild & WithSourceId(Aws::String &&value)
void SetProperties(const Aws::Map< Aws::String, ComponentProperty > &value)
ComponentChild & WithEvents(const Aws::Map< Aws::String, ComponentEvent > &value)
AWS_AMPLIFYUIBUILDER_API ComponentChild()
void SetChildren(const Aws::Vector< ComponentChild > &value)
ComponentChild & AddProperties(const Aws::String &key, const ComponentProperty &value)
ComponentChild & WithEvents(Aws::Map< Aws::String, ComponentEvent > &&value)
ComponentChild & WithSourceId(const Aws::String &value)
ComponentChild & AddChildren(ComponentChild &&value)
ComponentChild & AddProperties(Aws::String &&key, const ComponentProperty &value)
ComponentChild & AddProperties(Aws::String &&key, ComponentProperty &&value)
ComponentChild & AddChildren(const ComponentChild &value)
ComponentChild & AddProperties(const char *key, const ComponentProperty &value)
const Aws::Map< Aws::String, ComponentProperty > & GetProperties() const
void SetEvents(const Aws::Map< Aws::String, ComponentEvent > &value)
void SetName(const Aws::String &value)
ComponentChild & WithProperties(const Aws::Map< Aws::String, ComponentProperty > &value)
const Aws::String & GetComponentType() const
ComponentChild & WithName(Aws::String &&value)
void SetComponentType(const Aws::String &value)
ComponentChild & AddEvents(const Aws::String &key, const ComponentEvent &value)
ComponentChild & AddEvents(const char *key, const ComponentEvent &value)
const Aws::Map< Aws::String, ComponentEvent > & GetEvents() const
void SetProperties(Aws::Map< Aws::String, ComponentProperty > &&value)
AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetChildren(Aws::Vector< ComponentChild > &&value)
ComponentChild & WithProperties(Aws::Map< Aws::String, ComponentProperty > &&value)
void SetEvents(Aws::Map< Aws::String, ComponentEvent > &&value)
ComponentChild & AddEvents(Aws::String &&key, const ComponentEvent &value)
ComponentChild & WithChildren(const Aws::Vector< ComponentChild > &value)
ComponentChild & WithName(const char *value)
ComponentChild & WithSourceId(const char *value)
ComponentChild & WithComponentType(const Aws::String &value)
ComponentChild & AddEvents(Aws::String &&key, ComponentEvent &&value)
ComponentChild & WithChildren(Aws::Vector< ComponentChild > &&value)
const Aws::Vector< ComponentChild > & GetChildren() const
ComponentChild & WithComponentType(const char *value)
ComponentChild & AddEvents(const char *key, ComponentEvent &&value)
ComponentChild & AddProperties(const char *key, ComponentProperty &&value)
AWS_AMPLIFYUIBUILDER_API ComponentChild & operator=(Aws::Utils::Json::JsonView jsonValue)
ComponentChild & AddEvents(const Aws::String &key, ComponentEvent &&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