AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
GetEntityResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/iottwinmaker/IoTTwinMaker_EXPORTS.h>
12#include <aws/iottwinmaker/model/ComponentResponse.h>
13#include <aws/iottwinmaker/model/Status.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace IoTTwinMaker {
27namespace Model {
29 public:
30 AWS_IOTTWINMAKER_API GetEntityResult() = default;
33
35
38 inline const Aws::String& GetEntityId() const { return m_entityId; }
39 template <typename EntityIdT = Aws::String>
40 void SetEntityId(EntityIdT&& value) {
41 m_entityIdHasBeenSet = true;
42 m_entityId = std::forward<EntityIdT>(value);
43 }
44 template <typename EntityIdT = Aws::String>
45 GetEntityResult& WithEntityId(EntityIdT&& value) {
46 SetEntityId(std::forward<EntityIdT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetEntityName() const { return m_entityName; }
56 template <typename EntityNameT = Aws::String>
57 void SetEntityName(EntityNameT&& value) {
58 m_entityNameHasBeenSet = true;
59 m_entityName = std::forward<EntityNameT>(value);
60 }
61 template <typename EntityNameT = Aws::String>
62 GetEntityResult& WithEntityName(EntityNameT&& value) {
63 SetEntityName(std::forward<EntityNameT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetArn() const { return m_arn; }
73 template <typename ArnT = Aws::String>
74 void SetArn(ArnT&& value) {
75 m_arnHasBeenSet = true;
76 m_arn = std::forward<ArnT>(value);
77 }
78 template <typename ArnT = Aws::String>
79 GetEntityResult& WithArn(ArnT&& value) {
80 SetArn(std::forward<ArnT>(value));
81 return *this;
82 }
84
86
89 inline const Status& GetStatus() const { return m_status; }
90 template <typename StatusT = Status>
91 void SetStatus(StatusT&& value) {
92 m_statusHasBeenSet = true;
93 m_status = std::forward<StatusT>(value);
94 }
95 template <typename StatusT = Status>
96 GetEntityResult& WithStatus(StatusT&& value) {
97 SetStatus(std::forward<StatusT>(value));
98 return *this;
99 }
101
103
106 inline const Aws::String& GetWorkspaceId() const { return m_workspaceId; }
107 template <typename WorkspaceIdT = Aws::String>
108 void SetWorkspaceId(WorkspaceIdT&& value) {
109 m_workspaceIdHasBeenSet = true;
110 m_workspaceId = std::forward<WorkspaceIdT>(value);
111 }
112 template <typename WorkspaceIdT = Aws::String>
113 GetEntityResult& WithWorkspaceId(WorkspaceIdT&& value) {
114 SetWorkspaceId(std::forward<WorkspaceIdT>(value));
115 return *this;
116 }
118
120
123 inline const Aws::String& GetDescription() const { return m_description; }
124 template <typename DescriptionT = Aws::String>
125 void SetDescription(DescriptionT&& value) {
126 m_descriptionHasBeenSet = true;
127 m_description = std::forward<DescriptionT>(value);
128 }
129 template <typename DescriptionT = Aws::String>
130 GetEntityResult& WithDescription(DescriptionT&& value) {
131 SetDescription(std::forward<DescriptionT>(value));
132 return *this;
133 }
135
137
141 inline const Aws::Map<Aws::String, ComponentResponse>& GetComponents() const { return m_components; }
142 template <typename ComponentsT = Aws::Map<Aws::String, ComponentResponse>>
143 void SetComponents(ComponentsT&& value) {
144 m_componentsHasBeenSet = true;
145 m_components = std::forward<ComponentsT>(value);
146 }
147 template <typename ComponentsT = Aws::Map<Aws::String, ComponentResponse>>
148 GetEntityResult& WithComponents(ComponentsT&& value) {
149 SetComponents(std::forward<ComponentsT>(value));
150 return *this;
151 }
152 template <typename ComponentsKeyT = Aws::String, typename ComponentsValueT = ComponentResponse>
153 GetEntityResult& AddComponents(ComponentsKeyT&& key, ComponentsValueT&& value) {
154 m_componentsHasBeenSet = true;
155 m_components.emplace(std::forward<ComponentsKeyT>(key), std::forward<ComponentsValueT>(value));
156 return *this;
157 }
159
161
164 inline const Aws::String& GetParentEntityId() const { return m_parentEntityId; }
165 template <typename ParentEntityIdT = Aws::String>
166 void SetParentEntityId(ParentEntityIdT&& value) {
167 m_parentEntityIdHasBeenSet = true;
168 m_parentEntityId = std::forward<ParentEntityIdT>(value);
169 }
170 template <typename ParentEntityIdT = Aws::String>
171 GetEntityResult& WithParentEntityId(ParentEntityIdT&& value) {
172 SetParentEntityId(std::forward<ParentEntityIdT>(value));
173 return *this;
174 }
176
178
182 inline bool GetHasChildEntities() const { return m_hasChildEntities; }
183 inline void SetHasChildEntities(bool value) {
184 m_hasChildEntitiesHasBeenSet = true;
185 m_hasChildEntities = value;
186 }
188 SetHasChildEntities(value);
189 return *this;
190 }
192
194
197 inline const Aws::Utils::DateTime& GetCreationDateTime() const { return m_creationDateTime; }
198 template <typename CreationDateTimeT = Aws::Utils::DateTime>
199 void SetCreationDateTime(CreationDateTimeT&& value) {
200 m_creationDateTimeHasBeenSet = true;
201 m_creationDateTime = std::forward<CreationDateTimeT>(value);
202 }
203 template <typename CreationDateTimeT = Aws::Utils::DateTime>
204 GetEntityResult& WithCreationDateTime(CreationDateTimeT&& value) {
205 SetCreationDateTime(std::forward<CreationDateTimeT>(value));
206 return *this;
207 }
209
211
214 inline const Aws::Utils::DateTime& GetUpdateDateTime() const { return m_updateDateTime; }
215 template <typename UpdateDateTimeT = Aws::Utils::DateTime>
216 void SetUpdateDateTime(UpdateDateTimeT&& value) {
217 m_updateDateTimeHasBeenSet = true;
218 m_updateDateTime = std::forward<UpdateDateTimeT>(value);
219 }
220 template <typename UpdateDateTimeT = Aws::Utils::DateTime>
221 GetEntityResult& WithUpdateDateTime(UpdateDateTimeT&& value) {
222 SetUpdateDateTime(std::forward<UpdateDateTimeT>(value));
223 return *this;
224 }
226
228
231 inline const Aws::String& GetSyncSource() const { return m_syncSource; }
232 template <typename SyncSourceT = Aws::String>
233 void SetSyncSource(SyncSourceT&& value) {
234 m_syncSourceHasBeenSet = true;
235 m_syncSource = std::forward<SyncSourceT>(value);
236 }
237 template <typename SyncSourceT = Aws::String>
238 GetEntityResult& WithSyncSource(SyncSourceT&& value) {
239 SetSyncSource(std::forward<SyncSourceT>(value));
240 return *this;
241 }
243
245
249 inline bool GetAreAllComponentsReturned() const { return m_areAllComponentsReturned; }
250 inline void SetAreAllComponentsReturned(bool value) {
251 m_areAllComponentsReturnedHasBeenSet = true;
252 m_areAllComponentsReturned = value;
253 }
256 return *this;
257 }
259
261
262 inline const Aws::String& GetRequestId() const { return m_requestId; }
263 template <typename RequestIdT = Aws::String>
264 void SetRequestId(RequestIdT&& value) {
265 m_requestIdHasBeenSet = true;
266 m_requestId = std::forward<RequestIdT>(value);
267 }
268 template <typename RequestIdT = Aws::String>
269 GetEntityResult& WithRequestId(RequestIdT&& value) {
270 SetRequestId(std::forward<RequestIdT>(value));
271 return *this;
272 }
274 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
275
276 private:
277 Aws::String m_entityId;
278
279 Aws::String m_entityName;
280
281 Aws::String m_arn;
282
283 Status m_status;
284
285 Aws::String m_workspaceId;
286
287 Aws::String m_description;
288
290
291 Aws::String m_parentEntityId;
292
293 bool m_hasChildEntities{false};
294
295 Aws::Utils::DateTime m_creationDateTime{};
296
297 Aws::Utils::DateTime m_updateDateTime{};
298
299 Aws::String m_syncSource;
300
301 bool m_areAllComponentsReturned{false};
302
303 Aws::String m_requestId;
304 Aws::Http::HttpResponseCode m_HttpResponseCode;
305 bool m_entityIdHasBeenSet = false;
306 bool m_entityNameHasBeenSet = false;
307 bool m_arnHasBeenSet = false;
308 bool m_statusHasBeenSet = false;
309 bool m_workspaceIdHasBeenSet = false;
310 bool m_descriptionHasBeenSet = false;
311 bool m_componentsHasBeenSet = false;
312 bool m_parentEntityIdHasBeenSet = false;
313 bool m_hasChildEntitiesHasBeenSet = false;
314 bool m_creationDateTimeHasBeenSet = false;
315 bool m_updateDateTimeHasBeenSet = false;
316 bool m_syncSourceHasBeenSet = false;
317 bool m_areAllComponentsReturnedHasBeenSet = false;
318 bool m_requestIdHasBeenSet = false;
319};
320
321} // namespace Model
322} // namespace IoTTwinMaker
323} // namespace Aws
const Aws::String & GetParentEntityId() const
void SetWorkspaceId(WorkspaceIdT &&value)
GetEntityResult & WithParentEntityId(ParentEntityIdT &&value)
const Aws::String & GetRequestId() const
AWS_IOTTWINMAKER_API GetEntityResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetEntityResult & AddComponents(ComponentsKeyT &&key, ComponentsValueT &&value)
GetEntityResult & WithSyncSource(SyncSourceT &&value)
GetEntityResult & WithWorkspaceId(WorkspaceIdT &&value)
GetEntityResult & WithRequestId(RequestIdT &&value)
const Aws::Map< Aws::String, ComponentResponse > & GetComponents() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::Utils::DateTime & GetUpdateDateTime() const
const Aws::String & GetWorkspaceId() const
GetEntityResult & WithComponents(ComponentsT &&value)
GetEntityResult & WithHasChildEntities(bool value)
GetEntityResult & WithCreationDateTime(CreationDateTimeT &&value)
GetEntityResult & WithEntityName(EntityNameT &&value)
AWS_IOTTWINMAKER_API GetEntityResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetUpdateDateTime(UpdateDateTimeT &&value)
const Aws::Utils::DateTime & GetCreationDateTime() const
const Aws::String & GetSyncSource() const
GetEntityResult & WithStatus(StatusT &&value)
const Aws::String & GetEntityId() const
GetEntityResult & WithEntityId(EntityIdT &&value)
const Aws::String & GetEntityName() const
const Aws::String & GetDescription() const
void SetCreationDateTime(CreationDateTimeT &&value)
GetEntityResult & WithUpdateDateTime(UpdateDateTimeT &&value)
void SetDescription(DescriptionT &&value)
AWS_IOTTWINMAKER_API GetEntityResult()=default
GetEntityResult & WithArn(ArnT &&value)
void SetParentEntityId(ParentEntityIdT &&value)
GetEntityResult & WithAreAllComponentsReturned(bool value)
GetEntityResult & WithDescription(DescriptionT &&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