AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
ComponentSummary.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/Status.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace IoTTwinMaker {
23namespace Model {
24
32 public:
33 AWS_IOTTWINMAKER_API ComponentSummary() = default;
34 AWS_IOTTWINMAKER_API ComponentSummary(Aws::Utils::Json::JsonView jsonValue);
35 AWS_IOTTWINMAKER_API ComponentSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetComponentName() const { return m_componentName; }
43 inline bool ComponentNameHasBeenSet() const { return m_componentNameHasBeenSet; }
44 template <typename ComponentNameT = Aws::String>
45 void SetComponentName(ComponentNameT&& value) {
46 m_componentNameHasBeenSet = true;
47 m_componentName = std::forward<ComponentNameT>(value);
48 }
49 template <typename ComponentNameT = Aws::String>
50 ComponentSummary& WithComponentName(ComponentNameT&& value) {
51 SetComponentName(std::forward<ComponentNameT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetComponentTypeId() const { return m_componentTypeId; }
61 inline bool ComponentTypeIdHasBeenSet() const { return m_componentTypeIdHasBeenSet; }
62 template <typename ComponentTypeIdT = Aws::String>
63 void SetComponentTypeId(ComponentTypeIdT&& value) {
64 m_componentTypeIdHasBeenSet = true;
65 m_componentTypeId = std::forward<ComponentTypeIdT>(value);
66 }
67 template <typename ComponentTypeIdT = Aws::String>
68 ComponentSummary& WithComponentTypeId(ComponentTypeIdT&& value) {
69 SetComponentTypeId(std::forward<ComponentTypeIdT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetDefinedIn() const { return m_definedIn; }
79 inline bool DefinedInHasBeenSet() const { return m_definedInHasBeenSet; }
80 template <typename DefinedInT = Aws::String>
81 void SetDefinedIn(DefinedInT&& value) {
82 m_definedInHasBeenSet = true;
83 m_definedIn = std::forward<DefinedInT>(value);
84 }
85 template <typename DefinedInT = Aws::String>
86 ComponentSummary& WithDefinedIn(DefinedInT&& value) {
87 SetDefinedIn(std::forward<DefinedInT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetDescription() const { return m_description; }
97 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
98 template <typename DescriptionT = Aws::String>
99 void SetDescription(DescriptionT&& value) {
100 m_descriptionHasBeenSet = true;
101 m_description = std::forward<DescriptionT>(value);
102 }
103 template <typename DescriptionT = Aws::String>
104 ComponentSummary& WithDescription(DescriptionT&& value) {
105 SetDescription(std::forward<DescriptionT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::Map<Aws::String, ComponentPropertyGroupResponse>& GetPropertyGroups() const { return m_propertyGroups; }
115 inline bool PropertyGroupsHasBeenSet() const { return m_propertyGroupsHasBeenSet; }
116 template <typename PropertyGroupsT = Aws::Map<Aws::String, ComponentPropertyGroupResponse>>
117 void SetPropertyGroups(PropertyGroupsT&& value) {
118 m_propertyGroupsHasBeenSet = true;
119 m_propertyGroups = std::forward<PropertyGroupsT>(value);
120 }
121 template <typename PropertyGroupsT = Aws::Map<Aws::String, ComponentPropertyGroupResponse>>
122 ComponentSummary& WithPropertyGroups(PropertyGroupsT&& value) {
123 SetPropertyGroups(std::forward<PropertyGroupsT>(value));
124 return *this;
125 }
126 template <typename PropertyGroupsKeyT = Aws::String, typename PropertyGroupsValueT = ComponentPropertyGroupResponse>
127 ComponentSummary& AddPropertyGroups(PropertyGroupsKeyT&& key, PropertyGroupsValueT&& value) {
128 m_propertyGroupsHasBeenSet = true;
129 m_propertyGroups.emplace(std::forward<PropertyGroupsKeyT>(key), std::forward<PropertyGroupsValueT>(value));
130 return *this;
131 }
133
135
138 inline const Status& GetStatus() const { return m_status; }
139 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
140 template <typename StatusT = Status>
141 void SetStatus(StatusT&& value) {
142 m_statusHasBeenSet = true;
143 m_status = std::forward<StatusT>(value);
144 }
145 template <typename StatusT = Status>
146 ComponentSummary& WithStatus(StatusT&& value) {
147 SetStatus(std::forward<StatusT>(value));
148 return *this;
149 }
151
153
157 inline const Aws::String& GetSyncSource() const { return m_syncSource; }
158 inline bool SyncSourceHasBeenSet() const { return m_syncSourceHasBeenSet; }
159 template <typename SyncSourceT = Aws::String>
160 void SetSyncSource(SyncSourceT&& value) {
161 m_syncSourceHasBeenSet = true;
162 m_syncSource = std::forward<SyncSourceT>(value);
163 }
164 template <typename SyncSourceT = Aws::String>
165 ComponentSummary& WithSyncSource(SyncSourceT&& value) {
166 SetSyncSource(std::forward<SyncSourceT>(value));
167 return *this;
168 }
170
172
176 inline const Aws::String& GetComponentPath() const { return m_componentPath; }
177 inline bool ComponentPathHasBeenSet() const { return m_componentPathHasBeenSet; }
178 template <typename ComponentPathT = Aws::String>
179 void SetComponentPath(ComponentPathT&& value) {
180 m_componentPathHasBeenSet = true;
181 m_componentPath = std::forward<ComponentPathT>(value);
182 }
183 template <typename ComponentPathT = Aws::String>
184 ComponentSummary& WithComponentPath(ComponentPathT&& value) {
185 SetComponentPath(std::forward<ComponentPathT>(value));
186 return *this;
187 }
189 private:
190 Aws::String m_componentName;
191
192 Aws::String m_componentTypeId;
193
194 Aws::String m_definedIn;
195
196 Aws::String m_description;
197
199
200 Status m_status;
201
202 Aws::String m_syncSource;
203
204 Aws::String m_componentPath;
205 bool m_componentNameHasBeenSet = false;
206 bool m_componentTypeIdHasBeenSet = false;
207 bool m_definedInHasBeenSet = false;
208 bool m_descriptionHasBeenSet = false;
209 bool m_propertyGroupsHasBeenSet = false;
210 bool m_statusHasBeenSet = false;
211 bool m_syncSourceHasBeenSet = false;
212 bool m_componentPathHasBeenSet = false;
213};
214
215} // namespace Model
216} // namespace IoTTwinMaker
217} // namespace Aws
const Aws::String & GetComponentPath() const
void SetComponentPath(ComponentPathT &&value)
ComponentSummary & WithComponentTypeId(ComponentTypeIdT &&value)
AWS_IOTTWINMAKER_API ComponentSummary()=default
const Aws::String & GetComponentTypeId() const
ComponentSummary & WithDescription(DescriptionT &&value)
const Aws::String & GetComponentName() const
ComponentSummary & WithSyncSource(SyncSourceT &&value)
AWS_IOTTWINMAKER_API ComponentSummary(Aws::Utils::Json::JsonView jsonValue)
ComponentSummary & WithPropertyGroups(PropertyGroupsT &&value)
const Aws::String & GetDescription() const
const Aws::Map< Aws::String, ComponentPropertyGroupResponse > & GetPropertyGroups() const
AWS_IOTTWINMAKER_API ComponentSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
ComponentSummary & WithComponentPath(ComponentPathT &&value)
ComponentSummary & WithStatus(StatusT &&value)
void SetComponentName(ComponentNameT &&value)
AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
ComponentSummary & AddPropertyGroups(PropertyGroupsKeyT &&key, PropertyGroupsValueT &&value)
void SetPropertyGroups(PropertyGroupsT &&value)
void SetComponentTypeId(ComponentTypeIdT &&value)
ComponentSummary & WithDefinedIn(DefinedInT &&value)
ComponentSummary & 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