AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
ComponentChild.h
1
6#pragma once
7#include <aws/amplifyuibuilder/AmplifyUIBuilder_EXPORTS.h>
8#include <aws/amplifyuibuilder/model/ComponentEvent.h>
9#include <aws/amplifyuibuilder/model/ComponentProperty.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace AmplifyUIBuilder {
24namespace Model {
25
33 public:
34 AWS_AMPLIFYUIBUILDER_API ComponentChild() = default;
35 AWS_AMPLIFYUIBUILDER_API ComponentChild(Aws::Utils::Json::JsonView jsonValue);
36 AWS_AMPLIFYUIBUILDER_API ComponentChild& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetComponentType() const { return m_componentType; }
44 inline bool ComponentTypeHasBeenSet() const { return m_componentTypeHasBeenSet; }
45 template <typename ComponentTypeT = Aws::String>
46 void SetComponentType(ComponentTypeT&& value) {
47 m_componentTypeHasBeenSet = true;
48 m_componentType = std::forward<ComponentTypeT>(value);
49 }
50 template <typename ComponentTypeT = Aws::String>
51 ComponentChild& WithComponentType(ComponentTypeT&& value) {
52 SetComponentType(std::forward<ComponentTypeT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetName() const { return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 template <typename NameT = Aws::String>
64 void SetName(NameT&& value) {
65 m_nameHasBeenSet = true;
66 m_name = std::forward<NameT>(value);
67 }
68 template <typename NameT = Aws::String>
69 ComponentChild& WithName(NameT&& value) {
70 SetName(std::forward<NameT>(value));
71 return *this;
72 }
74
76
80 inline const Aws::Map<Aws::String, ComponentProperty>& GetProperties() const { return m_properties; }
81 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
82 template <typename PropertiesT = Aws::Map<Aws::String, ComponentProperty>>
83 void SetProperties(PropertiesT&& value) {
84 m_propertiesHasBeenSet = true;
85 m_properties = std::forward<PropertiesT>(value);
86 }
87 template <typename PropertiesT = Aws::Map<Aws::String, ComponentProperty>>
88 ComponentChild& WithProperties(PropertiesT&& value) {
89 SetProperties(std::forward<PropertiesT>(value));
90 return *this;
91 }
92 template <typename PropertiesKeyT = Aws::String, typename PropertiesValueT = ComponentProperty>
93 ComponentChild& AddProperties(PropertiesKeyT&& key, PropertiesValueT&& value) {
94 m_propertiesHasBeenSet = true;
95 m_properties.emplace(std::forward<PropertiesKeyT>(key), std::forward<PropertiesValueT>(value));
96 return *this;
97 }
99
101
104 inline const Aws::Vector<ComponentChild>& GetChildren() const { return m_children; }
105 inline bool ChildrenHasBeenSet() const { return m_childrenHasBeenSet; }
106 template <typename ChildrenT = Aws::Vector<ComponentChild>>
107 void SetChildren(ChildrenT&& value) {
108 m_childrenHasBeenSet = true;
109 m_children = std::forward<ChildrenT>(value);
110 }
111 template <typename ChildrenT = Aws::Vector<ComponentChild>>
112 ComponentChild& WithChildren(ChildrenT&& value) {
113 SetChildren(std::forward<ChildrenT>(value));
114 return *this;
115 }
116 template <typename ChildrenT = ComponentChild>
117 ComponentChild& AddChildren(ChildrenT&& value) {
118 m_childrenHasBeenSet = true;
119 m_children.emplace_back(std::forward<ChildrenT>(value));
120 return *this;
121 }
123
125
130 inline const Aws::Map<Aws::String, ComponentEvent>& GetEvents() const { return m_events; }
131 inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
132 template <typename EventsT = Aws::Map<Aws::String, ComponentEvent>>
133 void SetEvents(EventsT&& value) {
134 m_eventsHasBeenSet = true;
135 m_events = std::forward<EventsT>(value);
136 }
137 template <typename EventsT = Aws::Map<Aws::String, ComponentEvent>>
138 ComponentChild& WithEvents(EventsT&& value) {
139 SetEvents(std::forward<EventsT>(value));
140 return *this;
141 }
142 template <typename EventsKeyT = Aws::String, typename EventsValueT = ComponentEvent>
143 ComponentChild& AddEvents(EventsKeyT&& key, EventsValueT&& value) {
144 m_eventsHasBeenSet = true;
145 m_events.emplace(std::forward<EventsKeyT>(key), std::forward<EventsValueT>(value));
146 return *this;
147 }
149
151
155 inline const Aws::String& GetSourceId() const { return m_sourceId; }
156 inline bool SourceIdHasBeenSet() const { return m_sourceIdHasBeenSet; }
157 template <typename SourceIdT = Aws::String>
158 void SetSourceId(SourceIdT&& value) {
159 m_sourceIdHasBeenSet = true;
160 m_sourceId = std::forward<SourceIdT>(value);
161 }
162 template <typename SourceIdT = Aws::String>
163 ComponentChild& WithSourceId(SourceIdT&& value) {
164 SetSourceId(std::forward<SourceIdT>(value));
165 return *this;
166 }
168 private:
169 Aws::String m_componentType;
170
171 Aws::String m_name;
172
174
176
178
179 Aws::String m_sourceId;
180 bool m_componentTypeHasBeenSet = false;
181 bool m_nameHasBeenSet = false;
182 bool m_propertiesHasBeenSet = false;
183 bool m_childrenHasBeenSet = false;
184 bool m_eventsHasBeenSet = false;
185 bool m_sourceIdHasBeenSet = false;
186};
187
188} // namespace Model
189} // namespace AmplifyUIBuilder
190} // namespace Aws
ComponentChild & WithEvents(EventsT &&value)
ComponentChild & WithProperties(PropertiesT &&value)
AWS_AMPLIFYUIBUILDER_API ComponentChild(Aws::Utils::Json::JsonView jsonValue)
ComponentChild & AddEvents(EventsKeyT &&key, EventsValueT &&value)
ComponentChild & AddProperties(PropertiesKeyT &&key, PropertiesValueT &&value)
ComponentChild & WithChildren(ChildrenT &&value)
ComponentChild & AddChildren(ChildrenT &&value)
AWS_AMPLIFYUIBUILDER_API ComponentChild()=default
const Aws::Map< Aws::String, ComponentProperty > & GetProperties() const
const Aws::String & GetComponentType() const
ComponentChild & WithComponentType(ComponentTypeT &&value)
ComponentChild & WithSourceId(SourceIdT &&value)
const Aws::Map< Aws::String, ComponentEvent > & GetEvents() const
void SetComponentType(ComponentTypeT &&value)
AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
ComponentChild & WithName(NameT &&value)
const Aws::Vector< ComponentChild > & GetChildren() const
AWS_AMPLIFYUIBUILDER_API ComponentChild & operator=(Aws::Utils::Json::JsonView jsonValue)
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