AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ComponentResponse.h
1
6#pragma once
7#include <aws/iottwinmaker/IoTTwinMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iottwinmaker/model/Status.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/iottwinmaker/model/PropertyResponse.h>
12#include <aws/iottwinmaker/model/ComponentPropertyGroupResponse.h>
13#include <aws/iottwinmaker/model/ComponentSummary.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace IoTTwinMaker
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_IOTTWINMAKER_API ComponentResponse() = default;
41 AWS_IOTTWINMAKER_API ComponentResponse(Aws::Utils::Json::JsonView jsonValue);
42 AWS_IOTTWINMAKER_API ComponentResponse& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetComponentName() const { return m_componentName; }
51 inline bool ComponentNameHasBeenSet() const { return m_componentNameHasBeenSet; }
52 template<typename ComponentNameT = Aws::String>
53 void SetComponentName(ComponentNameT&& value) { m_componentNameHasBeenSet = true; m_componentName = std::forward<ComponentNameT>(value); }
54 template<typename ComponentNameT = Aws::String>
55 ComponentResponse& WithComponentName(ComponentNameT&& value) { SetComponentName(std::forward<ComponentNameT>(value)); return *this;}
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) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
66 template<typename DescriptionT = Aws::String>
67 ComponentResponse& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
69
71
74 inline const Aws::String& GetComponentTypeId() const { return m_componentTypeId; }
75 inline bool ComponentTypeIdHasBeenSet() const { return m_componentTypeIdHasBeenSet; }
76 template<typename ComponentTypeIdT = Aws::String>
77 void SetComponentTypeId(ComponentTypeIdT&& value) { m_componentTypeIdHasBeenSet = true; m_componentTypeId = std::forward<ComponentTypeIdT>(value); }
78 template<typename ComponentTypeIdT = Aws::String>
79 ComponentResponse& WithComponentTypeId(ComponentTypeIdT&& value) { SetComponentTypeId(std::forward<ComponentTypeIdT>(value)); return *this;}
81
83
86 inline const Status& GetStatus() const { return m_status; }
87 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
88 template<typename StatusT = Status>
89 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
90 template<typename StatusT = Status>
91 ComponentResponse& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
93
95
98 inline const Aws::String& GetDefinedIn() const { return m_definedIn; }
99 inline bool DefinedInHasBeenSet() const { return m_definedInHasBeenSet; }
100 template<typename DefinedInT = Aws::String>
101 void SetDefinedIn(DefinedInT&& value) { m_definedInHasBeenSet = true; m_definedIn = std::forward<DefinedInT>(value); }
102 template<typename DefinedInT = Aws::String>
103 ComponentResponse& WithDefinedIn(DefinedInT&& value) { SetDefinedIn(std::forward<DefinedInT>(value)); return *this;}
105
107
111 inline const Aws::Map<Aws::String, PropertyResponse>& GetProperties() const { return m_properties; }
112 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
113 template<typename PropertiesT = Aws::Map<Aws::String, PropertyResponse>>
114 void SetProperties(PropertiesT&& value) { m_propertiesHasBeenSet = true; m_properties = std::forward<PropertiesT>(value); }
115 template<typename PropertiesT = Aws::Map<Aws::String, PropertyResponse>>
116 ComponentResponse& WithProperties(PropertiesT&& value) { SetProperties(std::forward<PropertiesT>(value)); return *this;}
117 template<typename PropertiesKeyT = Aws::String, typename PropertiesValueT = PropertyResponse>
118 ComponentResponse& AddProperties(PropertiesKeyT&& key, PropertiesValueT&& value) {
119 m_propertiesHasBeenSet = true; m_properties.emplace(std::forward<PropertiesKeyT>(key), std::forward<PropertiesValueT>(value)); return *this;
120 }
122
124
127 inline const Aws::Map<Aws::String, ComponentPropertyGroupResponse>& GetPropertyGroups() const { return m_propertyGroups; }
128 inline bool PropertyGroupsHasBeenSet() const { return m_propertyGroupsHasBeenSet; }
129 template<typename PropertyGroupsT = Aws::Map<Aws::String, ComponentPropertyGroupResponse>>
130 void SetPropertyGroups(PropertyGroupsT&& value) { m_propertyGroupsHasBeenSet = true; m_propertyGroups = std::forward<PropertyGroupsT>(value); }
131 template<typename PropertyGroupsT = Aws::Map<Aws::String, ComponentPropertyGroupResponse>>
132 ComponentResponse& WithPropertyGroups(PropertyGroupsT&& value) { SetPropertyGroups(std::forward<PropertyGroupsT>(value)); return *this;}
133 template<typename PropertyGroupsKeyT = Aws::String, typename PropertyGroupsValueT = ComponentPropertyGroupResponse>
134 ComponentResponse& AddPropertyGroups(PropertyGroupsKeyT&& key, PropertyGroupsValueT&& value) {
135 m_propertyGroupsHasBeenSet = true; m_propertyGroups.emplace(std::forward<PropertyGroupsKeyT>(key), std::forward<PropertyGroupsValueT>(value)); return *this;
136 }
138
140
143 inline const Aws::String& GetSyncSource() const { return m_syncSource; }
144 inline bool SyncSourceHasBeenSet() const { return m_syncSourceHasBeenSet; }
145 template<typename SyncSourceT = Aws::String>
146 void SetSyncSource(SyncSourceT&& value) { m_syncSourceHasBeenSet = true; m_syncSource = std::forward<SyncSourceT>(value); }
147 template<typename SyncSourceT = Aws::String>
148 ComponentResponse& WithSyncSource(SyncSourceT&& value) { SetSyncSource(std::forward<SyncSourceT>(value)); return *this;}
150
152
156 inline bool GetAreAllPropertiesReturned() const { return m_areAllPropertiesReturned; }
157 inline bool AreAllPropertiesReturnedHasBeenSet() const { return m_areAllPropertiesReturnedHasBeenSet; }
158 inline void SetAreAllPropertiesReturned(bool value) { m_areAllPropertiesReturnedHasBeenSet = true; m_areAllPropertiesReturned = value; }
161
163
167 inline const Aws::Map<Aws::String, ComponentSummary>& GetCompositeComponents() const { return m_compositeComponents; }
168 inline bool CompositeComponentsHasBeenSet() const { return m_compositeComponentsHasBeenSet; }
169 template<typename CompositeComponentsT = Aws::Map<Aws::String, ComponentSummary>>
170 void SetCompositeComponents(CompositeComponentsT&& value) { m_compositeComponentsHasBeenSet = true; m_compositeComponents = std::forward<CompositeComponentsT>(value); }
171 template<typename CompositeComponentsT = Aws::Map<Aws::String, ComponentSummary>>
172 ComponentResponse& WithCompositeComponents(CompositeComponentsT&& value) { SetCompositeComponents(std::forward<CompositeComponentsT>(value)); return *this;}
173 template<typename CompositeComponentsKeyT = Aws::String, typename CompositeComponentsValueT = ComponentSummary>
174 ComponentResponse& AddCompositeComponents(CompositeComponentsKeyT&& key, CompositeComponentsValueT&& value) {
175 m_compositeComponentsHasBeenSet = true; m_compositeComponents.emplace(std::forward<CompositeComponentsKeyT>(key), std::forward<CompositeComponentsValueT>(value)); return *this;
176 }
178
180
184 inline bool GetAreAllCompositeComponentsReturned() const { return m_areAllCompositeComponentsReturned; }
185 inline bool AreAllCompositeComponentsReturnedHasBeenSet() const { return m_areAllCompositeComponentsReturnedHasBeenSet; }
186 inline void SetAreAllCompositeComponentsReturned(bool value) { m_areAllCompositeComponentsReturnedHasBeenSet = true; m_areAllCompositeComponentsReturned = value; }
189 private:
190
191 Aws::String m_componentName;
192 bool m_componentNameHasBeenSet = false;
193
194 Aws::String m_description;
195 bool m_descriptionHasBeenSet = false;
196
197 Aws::String m_componentTypeId;
198 bool m_componentTypeIdHasBeenSet = false;
199
200 Status m_status;
201 bool m_statusHasBeenSet = false;
202
203 Aws::String m_definedIn;
204 bool m_definedInHasBeenSet = false;
205
207 bool m_propertiesHasBeenSet = false;
208
210 bool m_propertyGroupsHasBeenSet = false;
211
212 Aws::String m_syncSource;
213 bool m_syncSourceHasBeenSet = false;
214
215 bool m_areAllPropertiesReturned{false};
216 bool m_areAllPropertiesReturnedHasBeenSet = false;
217
218 Aws::Map<Aws::String, ComponentSummary> m_compositeComponents;
219 bool m_compositeComponentsHasBeenSet = false;
220
221 bool m_areAllCompositeComponentsReturned{false};
222 bool m_areAllCompositeComponentsReturnedHasBeenSet = false;
223 };
224
225} // namespace Model
226} // namespace IoTTwinMaker
227} // 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