AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 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>
54 ComponentChild& WithComponentType(ComponentTypeT&& value) { SetComponentType(std::forward<ComponentTypeT>(value)); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
65 template<typename NameT = Aws::String>
66 ComponentChild& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
68
70
74 inline const Aws::Map<Aws::String, ComponentProperty>& GetProperties() const { return m_properties; }
75 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
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>>
79 ComponentChild& WithProperties(PropertiesT&& value) { SetProperties(std::forward<PropertiesT>(value)); return *this;}
80 template<typename PropertiesKeyT = Aws::String, typename PropertiesValueT = ComponentProperty>
81 ComponentChild& AddProperties(PropertiesKeyT&& key, PropertiesValueT&& value) {
82 m_propertiesHasBeenSet = true; m_properties.emplace(std::forward<PropertiesKeyT>(key), std::forward<PropertiesValueT>(value)); return *this;
83 }
85
87
90 inline const Aws::Vector<ComponentChild>& GetChildren() const { return m_children; }
91 inline bool ChildrenHasBeenSet() const { return m_childrenHasBeenSet; }
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>>
95 ComponentChild& WithChildren(ChildrenT&& value) { SetChildren(std::forward<ChildrenT>(value)); return *this;}
96 template<typename ChildrenT = ComponentChild>
97 ComponentChild& AddChildren(ChildrenT&& value) { m_childrenHasBeenSet = true; m_children.emplace_back(std::forward<ChildrenT>(value)); return *this; }
99
101
106 inline const Aws::Map<Aws::String, ComponentEvent>& GetEvents() const { return m_events; }
107 inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
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>>
111 ComponentChild& WithEvents(EventsT&& value) { SetEvents(std::forward<EventsT>(value)); return *this;}
112 template<typename EventsKeyT = Aws::String, typename EventsValueT = ComponentEvent>
113 ComponentChild& AddEvents(EventsKeyT&& key, EventsValueT&& value) {
114 m_eventsHasBeenSet = true; m_events.emplace(std::forward<EventsKeyT>(key), std::forward<EventsValueT>(value)); return *this;
115 }
117
119
123 inline const Aws::String& GetSourceId() const { return m_sourceId; }
124 inline bool SourceIdHasBeenSet() const { return m_sourceIdHasBeenSet; }
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>
128 ComponentChild& WithSourceId(SourceIdT&& value) { SetSourceId(std::forward<SourceIdT>(value)); return *this;}
130 private:
131
132 Aws::String m_componentType;
133 bool m_componentTypeHasBeenSet = false;
134
135 Aws::String m_name;
136 bool m_nameHasBeenSet = false;
137
139 bool m_propertiesHasBeenSet = false;
140
142 bool m_childrenHasBeenSet = false;
143
145 bool m_eventsHasBeenSet = false;
146
147 Aws::String m_sourceId;
148 bool m_sourceIdHasBeenSet = false;
149 };
150
151} // namespace Model
152} // namespace AmplifyUIBuilder
153} // 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