AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
ComponentResponse.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iottwinmaker/IoTTwinMaker_EXPORTS.h>
10#include <aws/iottwinmaker/model/ComponentPropertyGroupResponse.h>
11#include <aws/iottwinmaker/model/ComponentSummary.h>
12#include <aws/iottwinmaker/model/PropertyResponse.h>
13#include <aws/iottwinmaker/model/Status.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace IoTTwinMaker {
25namespace Model {
26
34 public:
35 AWS_IOTTWINMAKER_API ComponentResponse() = default;
36 AWS_IOTTWINMAKER_API ComponentResponse(Aws::Utils::Json::JsonView jsonValue);
37 AWS_IOTTWINMAKER_API ComponentResponse& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetComponentName() const { return m_componentName; }
45 inline bool ComponentNameHasBeenSet() const { return m_componentNameHasBeenSet; }
46 template <typename ComponentNameT = Aws::String>
47 void SetComponentName(ComponentNameT&& value) {
48 m_componentNameHasBeenSet = true;
49 m_componentName = std::forward<ComponentNameT>(value);
50 }
51 template <typename ComponentNameT = Aws::String>
52 ComponentResponse& WithComponentName(ComponentNameT&& value) {
53 SetComponentName(std::forward<ComponentNameT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetDescription() const { return m_description; }
63 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
64 template <typename DescriptionT = Aws::String>
65 void SetDescription(DescriptionT&& value) {
66 m_descriptionHasBeenSet = true;
67 m_description = std::forward<DescriptionT>(value);
68 }
69 template <typename DescriptionT = Aws::String>
70 ComponentResponse& WithDescription(DescriptionT&& value) {
71 SetDescription(std::forward<DescriptionT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetComponentTypeId() const { return m_componentTypeId; }
81 inline bool ComponentTypeIdHasBeenSet() const { return m_componentTypeIdHasBeenSet; }
82 template <typename ComponentTypeIdT = Aws::String>
83 void SetComponentTypeId(ComponentTypeIdT&& value) {
84 m_componentTypeIdHasBeenSet = true;
85 m_componentTypeId = std::forward<ComponentTypeIdT>(value);
86 }
87 template <typename ComponentTypeIdT = Aws::String>
88 ComponentResponse& WithComponentTypeId(ComponentTypeIdT&& value) {
89 SetComponentTypeId(std::forward<ComponentTypeIdT>(value));
90 return *this;
91 }
93
95
98 inline const Status& GetStatus() const { return m_status; }
99 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
100 template <typename StatusT = Status>
101 void SetStatus(StatusT&& value) {
102 m_statusHasBeenSet = true;
103 m_status = std::forward<StatusT>(value);
104 }
105 template <typename StatusT = Status>
106 ComponentResponse& WithStatus(StatusT&& value) {
107 SetStatus(std::forward<StatusT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::String& GetDefinedIn() const { return m_definedIn; }
117 inline bool DefinedInHasBeenSet() const { return m_definedInHasBeenSet; }
118 template <typename DefinedInT = Aws::String>
119 void SetDefinedIn(DefinedInT&& value) {
120 m_definedInHasBeenSet = true;
121 m_definedIn = std::forward<DefinedInT>(value);
122 }
123 template <typename DefinedInT = Aws::String>
124 ComponentResponse& WithDefinedIn(DefinedInT&& value) {
125 SetDefinedIn(std::forward<DefinedInT>(value));
126 return *this;
127 }
129
131
135 inline const Aws::Map<Aws::String, PropertyResponse>& GetProperties() const { return m_properties; }
136 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
137 template <typename PropertiesT = Aws::Map<Aws::String, PropertyResponse>>
138 void SetProperties(PropertiesT&& value) {
139 m_propertiesHasBeenSet = true;
140 m_properties = std::forward<PropertiesT>(value);
141 }
142 template <typename PropertiesT = Aws::Map<Aws::String, PropertyResponse>>
143 ComponentResponse& WithProperties(PropertiesT&& value) {
144 SetProperties(std::forward<PropertiesT>(value));
145 return *this;
146 }
147 template <typename PropertiesKeyT = Aws::String, typename PropertiesValueT = PropertyResponse>
148 ComponentResponse& AddProperties(PropertiesKeyT&& key, PropertiesValueT&& value) {
149 m_propertiesHasBeenSet = true;
150 m_properties.emplace(std::forward<PropertiesKeyT>(key), std::forward<PropertiesValueT>(value));
151 return *this;
152 }
154
156
159 inline const Aws::Map<Aws::String, ComponentPropertyGroupResponse>& GetPropertyGroups() const { return m_propertyGroups; }
160 inline bool PropertyGroupsHasBeenSet() const { return m_propertyGroupsHasBeenSet; }
161 template <typename PropertyGroupsT = Aws::Map<Aws::String, ComponentPropertyGroupResponse>>
162 void SetPropertyGroups(PropertyGroupsT&& value) {
163 m_propertyGroupsHasBeenSet = true;
164 m_propertyGroups = std::forward<PropertyGroupsT>(value);
165 }
166 template <typename PropertyGroupsT = Aws::Map<Aws::String, ComponentPropertyGroupResponse>>
167 ComponentResponse& WithPropertyGroups(PropertyGroupsT&& value) {
168 SetPropertyGroups(std::forward<PropertyGroupsT>(value));
169 return *this;
170 }
171 template <typename PropertyGroupsKeyT = Aws::String, typename PropertyGroupsValueT = ComponentPropertyGroupResponse>
172 ComponentResponse& AddPropertyGroups(PropertyGroupsKeyT&& key, PropertyGroupsValueT&& value) {
173 m_propertyGroupsHasBeenSet = true;
174 m_propertyGroups.emplace(std::forward<PropertyGroupsKeyT>(key), std::forward<PropertyGroupsValueT>(value));
175 return *this;
176 }
178
180
183 inline const Aws::String& GetSyncSource() const { return m_syncSource; }
184 inline bool SyncSourceHasBeenSet() const { return m_syncSourceHasBeenSet; }
185 template <typename SyncSourceT = Aws::String>
186 void SetSyncSource(SyncSourceT&& value) {
187 m_syncSourceHasBeenSet = true;
188 m_syncSource = std::forward<SyncSourceT>(value);
189 }
190 template <typename SyncSourceT = Aws::String>
191 ComponentResponse& WithSyncSource(SyncSourceT&& value) {
192 SetSyncSource(std::forward<SyncSourceT>(value));
193 return *this;
194 }
196
198
202 inline bool GetAreAllPropertiesReturned() const { return m_areAllPropertiesReturned; }
203 inline bool AreAllPropertiesReturnedHasBeenSet() const { return m_areAllPropertiesReturnedHasBeenSet; }
204 inline void SetAreAllPropertiesReturned(bool value) {
205 m_areAllPropertiesReturnedHasBeenSet = true;
206 m_areAllPropertiesReturned = value;
207 }
210 return *this;
211 }
213
215
219 inline const Aws::Map<Aws::String, ComponentSummary>& GetCompositeComponents() const { return m_compositeComponents; }
220 inline bool CompositeComponentsHasBeenSet() const { return m_compositeComponentsHasBeenSet; }
221 template <typename CompositeComponentsT = Aws::Map<Aws::String, ComponentSummary>>
222 void SetCompositeComponents(CompositeComponentsT&& value) {
223 m_compositeComponentsHasBeenSet = true;
224 m_compositeComponents = std::forward<CompositeComponentsT>(value);
225 }
226 template <typename CompositeComponentsT = Aws::Map<Aws::String, ComponentSummary>>
227 ComponentResponse& WithCompositeComponents(CompositeComponentsT&& value) {
228 SetCompositeComponents(std::forward<CompositeComponentsT>(value));
229 return *this;
230 }
231 template <typename CompositeComponentsKeyT = Aws::String, typename CompositeComponentsValueT = ComponentSummary>
232 ComponentResponse& AddCompositeComponents(CompositeComponentsKeyT&& key, CompositeComponentsValueT&& value) {
233 m_compositeComponentsHasBeenSet = true;
234 m_compositeComponents.emplace(std::forward<CompositeComponentsKeyT>(key), std::forward<CompositeComponentsValueT>(value));
235 return *this;
236 }
238
240
244 inline bool GetAreAllCompositeComponentsReturned() const { return m_areAllCompositeComponentsReturned; }
245 inline bool AreAllCompositeComponentsReturnedHasBeenSet() const { return m_areAllCompositeComponentsReturnedHasBeenSet; }
246 inline void SetAreAllCompositeComponentsReturned(bool value) {
247 m_areAllCompositeComponentsReturnedHasBeenSet = true;
248 m_areAllCompositeComponentsReturned = value;
249 }
255 private:
256 Aws::String m_componentName;
257
258 Aws::String m_description;
259
260 Aws::String m_componentTypeId;
261
262 Status m_status;
263
264 Aws::String m_definedIn;
265
267
269
270 Aws::String m_syncSource;
271
272 bool m_areAllPropertiesReturned{false};
273
274 Aws::Map<Aws::String, ComponentSummary> m_compositeComponents;
275
276 bool m_areAllCompositeComponentsReturned{false};
277 bool m_componentNameHasBeenSet = false;
278 bool m_descriptionHasBeenSet = false;
279 bool m_componentTypeIdHasBeenSet = false;
280 bool m_statusHasBeenSet = false;
281 bool m_definedInHasBeenSet = false;
282 bool m_propertiesHasBeenSet = false;
283 bool m_propertyGroupsHasBeenSet = false;
284 bool m_syncSourceHasBeenSet = false;
285 bool m_areAllPropertiesReturnedHasBeenSet = false;
286 bool m_compositeComponentsHasBeenSet = false;
287 bool m_areAllCompositeComponentsReturnedHasBeenSet = false;
288};
289
290} // namespace Model
291} // namespace IoTTwinMaker
292} // namespace Aws
ComponentResponse & WithPropertyGroups(PropertyGroupsT &&value)
ComponentResponse & AddProperties(PropertiesKeyT &&key, PropertiesValueT &&value)
const Aws::String & GetComponentTypeId() const
ComponentResponse & WithDefinedIn(DefinedInT &&value)
void SetComponentTypeId(ComponentTypeIdT &&value)
ComponentResponse & WithCompositeComponents(CompositeComponentsT &&value)
AWS_IOTTWINMAKER_API ComponentResponse()=default
ComponentResponse & AddPropertyGroups(PropertyGroupsKeyT &&key, PropertyGroupsValueT &&value)
ComponentResponse & WithComponentTypeId(ComponentTypeIdT &&value)
const Aws::Map< Aws::String, ComponentSummary > & GetCompositeComponents() const
ComponentResponse & WithDescription(DescriptionT &&value)
AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetPropertyGroups(PropertyGroupsT &&value)
AWS_IOTTWINMAKER_API ComponentResponse(Aws::Utils::Json::JsonView jsonValue)
void SetCompositeComponents(CompositeComponentsT &&value)
ComponentResponse & WithProperties(PropertiesT &&value)
AWS_IOTTWINMAKER_API ComponentResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
ComponentResponse & WithStatus(StatusT &&value)
const Aws::Map< Aws::String, ComponentPropertyGroupResponse > & GetPropertyGroups() const
void SetComponentName(ComponentNameT &&value)
const Aws::Map< Aws::String, PropertyResponse > & GetProperties() const
ComponentResponse & WithAreAllPropertiesReturned(bool value)
ComponentResponse & WithAreAllCompositeComponentsReturned(bool value)
ComponentResponse & WithSyncSource(SyncSourceT &&value)
ComponentResponse & AddCompositeComponents(CompositeComponentsKeyT &&key, CompositeComponentsValueT &&value)
ComponentResponse & WithComponentName(ComponentNameT &&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
Aws::Utils::Json::JsonValue JsonValue