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>
25namespace AmplifyUIBuilder
51 template<
typename ComponentTypeT = Aws::String>
52 void SetComponentType(ComponentTypeT&& value) { m_componentTypeHasBeenSet =
true; m_componentType = std::forward<ComponentTypeT>(value); }
53 template<
typename ComponentTypeT = Aws::String>
63 template<
typename NameT = Aws::String>
64 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
65 template<
typename NameT = Aws::String>
76 template<
typename PropertiesT = Aws::Map<Aws::String, ComponentProperty>>
77 void SetProperties(PropertiesT&& value) { m_propertiesHasBeenSet =
true; m_properties = std::forward<PropertiesT>(value); }
78 template<
typename PropertiesT = Aws::Map<Aws::String, ComponentProperty>>
80 template<
typename PropertiesKeyT = Aws::String,
typename PropertiesValueT = ComponentProperty>
82 m_propertiesHasBeenSet =
true; m_properties.emplace(std::forward<PropertiesKeyT>(key), std::forward<PropertiesValueT>(value));
return *
this;
92 template<
typename ChildrenT = Aws::Vector<ComponentChild>>
93 void SetChildren(ChildrenT&& value) { m_childrenHasBeenSet =
true; m_children = std::forward<ChildrenT>(value); }
94 template<
typename ChildrenT = Aws::Vector<ComponentChild>>
96 template<
typename ChildrenT = ComponentChild>
97 ComponentChild&
AddChildren(ChildrenT&& value) { m_childrenHasBeenSet =
true; m_children.emplace_back(std::forward<ChildrenT>(value));
return *
this; }
108 template<
typename EventsT = Aws::Map<Aws::String, ComponentEvent>>
109 void SetEvents(EventsT&& value) { m_eventsHasBeenSet =
true; m_events = std::forward<EventsT>(value); }
110 template<
typename EventsT = Aws::Map<Aws::String, ComponentEvent>>
112 template<
typename EventsKeyT = Aws::String,
typename EventsValueT = ComponentEvent>
114 m_eventsHasBeenSet =
true; m_events.emplace(std::forward<EventsKeyT>(key), std::forward<EventsValueT>(value));
return *
this;
125 template<
typename SourceIdT = Aws::String>
126 void SetSourceId(SourceIdT&& value) { m_sourceIdHasBeenSet =
true; m_sourceId = std::forward<SourceIdT>(value); }
127 template<
typename SourceIdT = Aws::String>
133 bool m_componentTypeHasBeenSet =
false;
136 bool m_nameHasBeenSet =
false;
139 bool m_propertiesHasBeenSet =
false;
142 bool m_childrenHasBeenSet =
false;
145 bool m_eventsHasBeenSet =
false;
148 bool m_sourceIdHasBeenSet =
false;
void SetEvents(EventsT &&value)
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)
bool NameHasBeenSet() const
ComponentChild & WithChildren(ChildrenT &&value)
ComponentChild & AddChildren(ChildrenT &&value)
void SetChildren(ChildrenT &&value)
AWS_AMPLIFYUIBUILDER_API ComponentChild()=default
void SetProperties(PropertiesT &&value)
const Aws::Map< Aws::String, ComponentProperty > & GetProperties() const
const Aws::String & GetComponentType() const
bool ChildrenHasBeenSet() const
void SetName(NameT &&value)
ComponentChild & WithComponentType(ComponentTypeT &&value)
ComponentChild & WithSourceId(SourceIdT &&value)
bool EventsHasBeenSet() const
const Aws::Map< Aws::String, ComponentEvent > & GetEvents() const
void SetSourceId(SourceIdT &&value)
void SetComponentType(ComponentTypeT &&value)
bool SourceIdHasBeenSet() const
AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetSourceId() const
ComponentChild & WithName(NameT &&value)
const Aws::String & GetName() const
bool ComponentTypeHasBeenSet() const
const Aws::Vector< ComponentChild > & GetChildren() const
bool PropertiesHasBeenSet() 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