AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetComponentName(const Aws::String& value) { m_componentNameHasBeenSet = true; m_componentName = value; }
53 inline void SetComponentName(Aws::String&& value) { m_componentNameHasBeenSet = true; m_componentName = std::move(value); }
54 inline void SetComponentName(const char* value) { m_componentNameHasBeenSet = true; m_componentName.assign(value); }
55 inline ComponentResponse& WithComponentName(const Aws::String& value) { SetComponentName(value); return *this;}
56 inline ComponentResponse& WithComponentName(Aws::String&& value) { SetComponentName(std::move(value)); return *this;}
57 inline ComponentResponse& WithComponentName(const char* value) { SetComponentName(value); return *this;}
59
61
64 inline const Aws::String& GetDescription() const{ return m_description; }
65 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
66 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
67 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
68 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
69 inline ComponentResponse& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
70 inline ComponentResponse& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
71 inline ComponentResponse& WithDescription(const char* value) { SetDescription(value); return *this;}
73
75
78 inline const Aws::String& GetComponentTypeId() const{ return m_componentTypeId; }
79 inline bool ComponentTypeIdHasBeenSet() const { return m_componentTypeIdHasBeenSet; }
80 inline void SetComponentTypeId(const Aws::String& value) { m_componentTypeIdHasBeenSet = true; m_componentTypeId = value; }
81 inline void SetComponentTypeId(Aws::String&& value) { m_componentTypeIdHasBeenSet = true; m_componentTypeId = std::move(value); }
82 inline void SetComponentTypeId(const char* value) { m_componentTypeIdHasBeenSet = true; m_componentTypeId.assign(value); }
83 inline ComponentResponse& WithComponentTypeId(const Aws::String& value) { SetComponentTypeId(value); return *this;}
84 inline ComponentResponse& WithComponentTypeId(Aws::String&& value) { SetComponentTypeId(std::move(value)); return *this;}
85 inline ComponentResponse& WithComponentTypeId(const char* value) { SetComponentTypeId(value); return *this;}
87
89
92 inline const Status& GetStatus() const{ return m_status; }
93 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
94 inline void SetStatus(const Status& value) { m_statusHasBeenSet = true; m_status = value; }
95 inline void SetStatus(Status&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
96 inline ComponentResponse& WithStatus(const Status& value) { SetStatus(value); return *this;}
97 inline ComponentResponse& WithStatus(Status&& value) { SetStatus(std::move(value)); return *this;}
99
101
104 inline const Aws::String& GetDefinedIn() const{ return m_definedIn; }
105 inline bool DefinedInHasBeenSet() const { return m_definedInHasBeenSet; }
106 inline void SetDefinedIn(const Aws::String& value) { m_definedInHasBeenSet = true; m_definedIn = value; }
107 inline void SetDefinedIn(Aws::String&& value) { m_definedInHasBeenSet = true; m_definedIn = std::move(value); }
108 inline void SetDefinedIn(const char* value) { m_definedInHasBeenSet = true; m_definedIn.assign(value); }
109 inline ComponentResponse& WithDefinedIn(const Aws::String& value) { SetDefinedIn(value); return *this;}
110 inline ComponentResponse& WithDefinedIn(Aws::String&& value) { SetDefinedIn(std::move(value)); return *this;}
111 inline ComponentResponse& WithDefinedIn(const char* value) { SetDefinedIn(value); return *this;}
113
115
119 inline const Aws::Map<Aws::String, PropertyResponse>& GetProperties() const{ return m_properties; }
120 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
121 inline void SetProperties(const Aws::Map<Aws::String, PropertyResponse>& value) { m_propertiesHasBeenSet = true; m_properties = value; }
122 inline void SetProperties(Aws::Map<Aws::String, PropertyResponse>&& value) { m_propertiesHasBeenSet = true; m_properties = std::move(value); }
125 inline ComponentResponse& AddProperties(const Aws::String& key, const PropertyResponse& value) { m_propertiesHasBeenSet = true; m_properties.emplace(key, value); return *this; }
126 inline ComponentResponse& AddProperties(Aws::String&& key, const PropertyResponse& value) { m_propertiesHasBeenSet = true; m_properties.emplace(std::move(key), value); return *this; }
127 inline ComponentResponse& AddProperties(const Aws::String& key, PropertyResponse&& value) { m_propertiesHasBeenSet = true; m_properties.emplace(key, std::move(value)); return *this; }
128 inline ComponentResponse& AddProperties(Aws::String&& key, PropertyResponse&& value) { m_propertiesHasBeenSet = true; m_properties.emplace(std::move(key), std::move(value)); return *this; }
129 inline ComponentResponse& AddProperties(const char* key, PropertyResponse&& value) { m_propertiesHasBeenSet = true; m_properties.emplace(key, std::move(value)); return *this; }
130 inline ComponentResponse& AddProperties(const char* key, const PropertyResponse& value) { m_propertiesHasBeenSet = true; m_properties.emplace(key, value); return *this; }
132
134
137 inline const Aws::Map<Aws::String, ComponentPropertyGroupResponse>& GetPropertyGroups() const{ return m_propertyGroups; }
138 inline bool PropertyGroupsHasBeenSet() const { return m_propertyGroupsHasBeenSet; }
139 inline void SetPropertyGroups(const Aws::Map<Aws::String, ComponentPropertyGroupResponse>& value) { m_propertyGroupsHasBeenSet = true; m_propertyGroups = value; }
140 inline void SetPropertyGroups(Aws::Map<Aws::String, ComponentPropertyGroupResponse>&& value) { m_propertyGroupsHasBeenSet = true; m_propertyGroups = std::move(value); }
143 inline ComponentResponse& AddPropertyGroups(const Aws::String& key, const ComponentPropertyGroupResponse& value) { m_propertyGroupsHasBeenSet = true; m_propertyGroups.emplace(key, value); return *this; }
144 inline ComponentResponse& AddPropertyGroups(Aws::String&& key, const ComponentPropertyGroupResponse& value) { m_propertyGroupsHasBeenSet = true; m_propertyGroups.emplace(std::move(key), value); return *this; }
145 inline ComponentResponse& AddPropertyGroups(const Aws::String& key, ComponentPropertyGroupResponse&& value) { m_propertyGroupsHasBeenSet = true; m_propertyGroups.emplace(key, std::move(value)); return *this; }
146 inline ComponentResponse& AddPropertyGroups(Aws::String&& key, ComponentPropertyGroupResponse&& value) { m_propertyGroupsHasBeenSet = true; m_propertyGroups.emplace(std::move(key), std::move(value)); return *this; }
147 inline ComponentResponse& AddPropertyGroups(const char* key, ComponentPropertyGroupResponse&& value) { m_propertyGroupsHasBeenSet = true; m_propertyGroups.emplace(key, std::move(value)); return *this; }
148 inline ComponentResponse& AddPropertyGroups(const char* key, const ComponentPropertyGroupResponse& value) { m_propertyGroupsHasBeenSet = true; m_propertyGroups.emplace(key, value); return *this; }
150
152
155 inline const Aws::String& GetSyncSource() const{ return m_syncSource; }
156 inline bool SyncSourceHasBeenSet() const { return m_syncSourceHasBeenSet; }
157 inline void SetSyncSource(const Aws::String& value) { m_syncSourceHasBeenSet = true; m_syncSource = value; }
158 inline void SetSyncSource(Aws::String&& value) { m_syncSourceHasBeenSet = true; m_syncSource = std::move(value); }
159 inline void SetSyncSource(const char* value) { m_syncSourceHasBeenSet = true; m_syncSource.assign(value); }
160 inline ComponentResponse& WithSyncSource(const Aws::String& value) { SetSyncSource(value); return *this;}
161 inline ComponentResponse& WithSyncSource(Aws::String&& value) { SetSyncSource(std::move(value)); return *this;}
162 inline ComponentResponse& WithSyncSource(const char* value) { SetSyncSource(value); return *this;}
164
166
170 inline bool GetAreAllPropertiesReturned() const{ return m_areAllPropertiesReturned; }
171 inline bool AreAllPropertiesReturnedHasBeenSet() const { return m_areAllPropertiesReturnedHasBeenSet; }
172 inline void SetAreAllPropertiesReturned(bool value) { m_areAllPropertiesReturnedHasBeenSet = true; m_areAllPropertiesReturned = value; }
175
177
181 inline const Aws::Map<Aws::String, ComponentSummary>& GetCompositeComponents() const{ return m_compositeComponents; }
182 inline bool CompositeComponentsHasBeenSet() const { return m_compositeComponentsHasBeenSet; }
183 inline void SetCompositeComponents(const Aws::Map<Aws::String, ComponentSummary>& value) { m_compositeComponentsHasBeenSet = true; m_compositeComponents = value; }
184 inline void SetCompositeComponents(Aws::Map<Aws::String, ComponentSummary>&& value) { m_compositeComponentsHasBeenSet = true; m_compositeComponents = std::move(value); }
187 inline ComponentResponse& AddCompositeComponents(const Aws::String& key, const ComponentSummary& value) { m_compositeComponentsHasBeenSet = true; m_compositeComponents.emplace(key, value); return *this; }
188 inline ComponentResponse& AddCompositeComponents(Aws::String&& key, const ComponentSummary& value) { m_compositeComponentsHasBeenSet = true; m_compositeComponents.emplace(std::move(key), value); return *this; }
189 inline ComponentResponse& AddCompositeComponents(const Aws::String& key, ComponentSummary&& value) { m_compositeComponentsHasBeenSet = true; m_compositeComponents.emplace(key, std::move(value)); return *this; }
190 inline ComponentResponse& AddCompositeComponents(Aws::String&& key, ComponentSummary&& value) { m_compositeComponentsHasBeenSet = true; m_compositeComponents.emplace(std::move(key), std::move(value)); return *this; }
191 inline ComponentResponse& AddCompositeComponents(const char* key, ComponentSummary&& value) { m_compositeComponentsHasBeenSet = true; m_compositeComponents.emplace(key, std::move(value)); return *this; }
192 inline ComponentResponse& AddCompositeComponents(const char* key, const ComponentSummary& value) { m_compositeComponentsHasBeenSet = true; m_compositeComponents.emplace(key, value); return *this; }
194
196
200 inline bool GetAreAllCompositeComponentsReturned() const{ return m_areAllCompositeComponentsReturned; }
201 inline bool AreAllCompositeComponentsReturnedHasBeenSet() const { return m_areAllCompositeComponentsReturnedHasBeenSet; }
202 inline void SetAreAllCompositeComponentsReturned(bool value) { m_areAllCompositeComponentsReturnedHasBeenSet = true; m_areAllCompositeComponentsReturned = value; }
205 private:
206
207 Aws::String m_componentName;
208 bool m_componentNameHasBeenSet = false;
209
210 Aws::String m_description;
211 bool m_descriptionHasBeenSet = false;
212
213 Aws::String m_componentTypeId;
214 bool m_componentTypeIdHasBeenSet = false;
215
216 Status m_status;
217 bool m_statusHasBeenSet = false;
218
219 Aws::String m_definedIn;
220 bool m_definedInHasBeenSet = false;
221
223 bool m_propertiesHasBeenSet = false;
224
226 bool m_propertyGroupsHasBeenSet = false;
227
228 Aws::String m_syncSource;
229 bool m_syncSourceHasBeenSet = false;
230
231 bool m_areAllPropertiesReturned;
232 bool m_areAllPropertiesReturnedHasBeenSet = false;
233
234 Aws::Map<Aws::String, ComponentSummary> m_compositeComponents;
235 bool m_compositeComponentsHasBeenSet = false;
236
237 bool m_areAllCompositeComponentsReturned;
238 bool m_areAllCompositeComponentsReturnedHasBeenSet = false;
239 };
240
241} // namespace Model
242} // namespace IoTTwinMaker
243} // namespace Aws
ComponentResponse & AddPropertyGroups(const char *key, const ComponentPropertyGroupResponse &value)
ComponentResponse & AddProperties(const Aws::String &key, const PropertyResponse &value)
ComponentResponse & AddPropertyGroups(const Aws::String &key, ComponentPropertyGroupResponse &&value)
ComponentResponse & WithCompositeComponents(const Aws::Map< Aws::String, ComponentSummary > &value)
const Aws::String & GetComponentTypeId() const
void SetCompositeComponents(const Aws::Map< Aws::String, ComponentSummary > &value)
ComponentResponse & WithDescription(const char *value)
ComponentResponse & AddCompositeComponents(Aws::String &&key, const ComponentSummary &value)
ComponentResponse & WithProperties(Aws::Map< Aws::String, PropertyResponse > &&value)
ComponentResponse & AddProperties(const Aws::String &key, PropertyResponse &&value)
void SetDefinedIn(const Aws::String &value)
ComponentResponse & WithPropertyGroups(const Aws::Map< Aws::String, ComponentPropertyGroupResponse > &value)
ComponentResponse & WithDescription(Aws::String &&value)
ComponentResponse & WithComponentTypeId(Aws::String &&value)
ComponentResponse & AddPropertyGroups(const Aws::String &key, const ComponentPropertyGroupResponse &value)
ComponentResponse & WithDefinedIn(const char *value)
ComponentResponse & AddCompositeComponents(const Aws::String &key, const ComponentSummary &value)
ComponentResponse & AddCompositeComponents(const Aws::String &key, ComponentSummary &&value)
ComponentResponse & AddProperties(Aws::String &&key, const PropertyResponse &value)
ComponentResponse & WithStatus(Status &&value)
ComponentResponse & AddPropertyGroups(Aws::String &&key, const ComponentPropertyGroupResponse &value)
const Aws::Map< Aws::String, ComponentSummary > & GetCompositeComponents() const
ComponentResponse & WithComponentName(Aws::String &&value)
ComponentResponse & WithDescription(const Aws::String &value)
ComponentResponse & WithCompositeComponents(Aws::Map< Aws::String, ComponentSummary > &&value)
void SetCompositeComponents(Aws::Map< Aws::String, ComponentSummary > &&value)
AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
ComponentResponse & WithSyncSource(const char *value)
ComponentResponse & AddPropertyGroups(Aws::String &&key, ComponentPropertyGroupResponse &&value)
void SetComponentName(const Aws::String &value)
AWS_IOTTWINMAKER_API ComponentResponse(Aws::Utils::Json::JsonView jsonValue)
ComponentResponse & WithComponentTypeId(const char *value)
void SetPropertyGroups(Aws::Map< Aws::String, ComponentPropertyGroupResponse > &&value)
void SetDescription(const Aws::String &value)
ComponentResponse & AddProperties(const char *key, const PropertyResponse &value)
ComponentResponse & AddCompositeComponents(const char *key, ComponentSummary &&value)
ComponentResponse & WithPropertyGroups(Aws::Map< Aws::String, ComponentPropertyGroupResponse > &&value)
ComponentResponse & AddPropertyGroups(const char *key, ComponentPropertyGroupResponse &&value)
ComponentResponse & WithSyncSource(const Aws::String &value)
ComponentResponse & WithDefinedIn(Aws::String &&value)
void SetProperties(const Aws::Map< Aws::String, PropertyResponse > &value)
AWS_IOTTWINMAKER_API ComponentResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, ComponentPropertyGroupResponse > & GetPropertyGroups() const
ComponentResponse & WithComponentTypeId(const Aws::String &value)
void SetPropertyGroups(const Aws::Map< Aws::String, ComponentPropertyGroupResponse > &value)
ComponentResponse & AddCompositeComponents(const char *key, const ComponentSummary &value)
void SetComponentTypeId(const Aws::String &value)
ComponentResponse & WithDefinedIn(const Aws::String &value)
ComponentResponse & WithProperties(const Aws::Map< Aws::String, PropertyResponse > &value)
const Aws::Map< Aws::String, PropertyResponse > & GetProperties() const
ComponentResponse & WithComponentName(const Aws::String &value)
ComponentResponse & WithComponentName(const char *value)
ComponentResponse & AddProperties(Aws::String &&key, PropertyResponse &&value)
ComponentResponse & AddProperties(const char *key, PropertyResponse &&value)
ComponentResponse & WithAreAllPropertiesReturned(bool value)
ComponentResponse & WithAreAllCompositeComponentsReturned(bool value)
void SetProperties(Aws::Map< Aws::String, PropertyResponse > &&value)
ComponentResponse & AddCompositeComponents(Aws::String &&key, ComponentSummary &&value)
ComponentResponse & WithSyncSource(Aws::String &&value)
void SetSyncSource(const Aws::String &value)
ComponentResponse & WithStatus(const Status &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