AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetEntityResult.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/core/utils/DateTime.h>
12#include <aws/iottwinmaker/model/ComponentResponse.h>
13#include <utility>
14
15namespace Aws
16{
17template<typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace IoTTwinMaker
28{
29namespace Model
30{
32 {
33 public:
34 AWS_IOTTWINMAKER_API GetEntityResult() = default;
37
38
40
43 inline const Aws::String& GetEntityId() const { return m_entityId; }
44 template<typename EntityIdT = Aws::String>
45 void SetEntityId(EntityIdT&& value) { m_entityIdHasBeenSet = true; m_entityId = std::forward<EntityIdT>(value); }
46 template<typename EntityIdT = Aws::String>
47 GetEntityResult& WithEntityId(EntityIdT&& value) { SetEntityId(std::forward<EntityIdT>(value)); return *this;}
49
51
54 inline const Aws::String& GetEntityName() const { return m_entityName; }
55 template<typename EntityNameT = Aws::String>
56 void SetEntityName(EntityNameT&& value) { m_entityNameHasBeenSet = true; m_entityName = std::forward<EntityNameT>(value); }
57 template<typename EntityNameT = Aws::String>
58 GetEntityResult& WithEntityName(EntityNameT&& value) { SetEntityName(std::forward<EntityNameT>(value)); return *this;}
60
62
65 inline const Aws::String& GetArn() const { return m_arn; }
66 template<typename ArnT = Aws::String>
67 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
68 template<typename ArnT = Aws::String>
69 GetEntityResult& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
71
73
76 inline const Status& GetStatus() const { return m_status; }
77 template<typename StatusT = Status>
78 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
79 template<typename StatusT = Status>
80 GetEntityResult& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
82
84
87 inline const Aws::String& GetWorkspaceId() const { return m_workspaceId; }
88 template<typename WorkspaceIdT = Aws::String>
89 void SetWorkspaceId(WorkspaceIdT&& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = std::forward<WorkspaceIdT>(value); }
90 template<typename WorkspaceIdT = Aws::String>
91 GetEntityResult& WithWorkspaceId(WorkspaceIdT&& value) { SetWorkspaceId(std::forward<WorkspaceIdT>(value)); return *this;}
93
95
98 inline const Aws::String& GetDescription() const { return m_description; }
99 template<typename DescriptionT = Aws::String>
100 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
101 template<typename DescriptionT = Aws::String>
102 GetEntityResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
104
106
110 inline const Aws::Map<Aws::String, ComponentResponse>& GetComponents() const { return m_components; }
111 template<typename ComponentsT = Aws::Map<Aws::String, ComponentResponse>>
112 void SetComponents(ComponentsT&& value) { m_componentsHasBeenSet = true; m_components = std::forward<ComponentsT>(value); }
113 template<typename ComponentsT = Aws::Map<Aws::String, ComponentResponse>>
114 GetEntityResult& WithComponents(ComponentsT&& value) { SetComponents(std::forward<ComponentsT>(value)); return *this;}
115 template<typename ComponentsKeyT = Aws::String, typename ComponentsValueT = ComponentResponse>
116 GetEntityResult& AddComponents(ComponentsKeyT&& key, ComponentsValueT&& value) {
117 m_componentsHasBeenSet = true; m_components.emplace(std::forward<ComponentsKeyT>(key), std::forward<ComponentsValueT>(value)); return *this;
118 }
120
122
125 inline const Aws::String& GetParentEntityId() const { return m_parentEntityId; }
126 template<typename ParentEntityIdT = Aws::String>
127 void SetParentEntityId(ParentEntityIdT&& value) { m_parentEntityIdHasBeenSet = true; m_parentEntityId = std::forward<ParentEntityIdT>(value); }
128 template<typename ParentEntityIdT = Aws::String>
129 GetEntityResult& WithParentEntityId(ParentEntityIdT&& value) { SetParentEntityId(std::forward<ParentEntityIdT>(value)); return *this;}
131
133
137 inline bool GetHasChildEntities() const { return m_hasChildEntities; }
138 inline void SetHasChildEntities(bool value) { m_hasChildEntitiesHasBeenSet = true; m_hasChildEntities = value; }
139 inline GetEntityResult& WithHasChildEntities(bool value) { SetHasChildEntities(value); return *this;}
141
143
146 inline const Aws::Utils::DateTime& GetCreationDateTime() const { return m_creationDateTime; }
147 template<typename CreationDateTimeT = Aws::Utils::DateTime>
148 void SetCreationDateTime(CreationDateTimeT&& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = std::forward<CreationDateTimeT>(value); }
149 template<typename CreationDateTimeT = Aws::Utils::DateTime>
150 GetEntityResult& WithCreationDateTime(CreationDateTimeT&& value) { SetCreationDateTime(std::forward<CreationDateTimeT>(value)); return *this;}
152
154
157 inline const Aws::Utils::DateTime& GetUpdateDateTime() const { return m_updateDateTime; }
158 template<typename UpdateDateTimeT = Aws::Utils::DateTime>
159 void SetUpdateDateTime(UpdateDateTimeT&& value) { m_updateDateTimeHasBeenSet = true; m_updateDateTime = std::forward<UpdateDateTimeT>(value); }
160 template<typename UpdateDateTimeT = Aws::Utils::DateTime>
161 GetEntityResult& WithUpdateDateTime(UpdateDateTimeT&& value) { SetUpdateDateTime(std::forward<UpdateDateTimeT>(value)); return *this;}
163
165
168 inline const Aws::String& GetSyncSource() const { return m_syncSource; }
169 template<typename SyncSourceT = Aws::String>
170 void SetSyncSource(SyncSourceT&& value) { m_syncSourceHasBeenSet = true; m_syncSource = std::forward<SyncSourceT>(value); }
171 template<typename SyncSourceT = Aws::String>
172 GetEntityResult& WithSyncSource(SyncSourceT&& value) { SetSyncSource(std::forward<SyncSourceT>(value)); return *this;}
174
176
180 inline bool GetAreAllComponentsReturned() const { return m_areAllComponentsReturned; }
181 inline void SetAreAllComponentsReturned(bool value) { m_areAllComponentsReturnedHasBeenSet = true; m_areAllComponentsReturned = value; }
184
186
187 inline const Aws::String& GetRequestId() const { return m_requestId; }
188 template<typename RequestIdT = Aws::String>
189 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
190 template<typename RequestIdT = Aws::String>
191 GetEntityResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
193 private:
194
195 Aws::String m_entityId;
196 bool m_entityIdHasBeenSet = false;
197
198 Aws::String m_entityName;
199 bool m_entityNameHasBeenSet = false;
200
201 Aws::String m_arn;
202 bool m_arnHasBeenSet = false;
203
204 Status m_status;
205 bool m_statusHasBeenSet = false;
206
207 Aws::String m_workspaceId;
208 bool m_workspaceIdHasBeenSet = false;
209
210 Aws::String m_description;
211 bool m_descriptionHasBeenSet = false;
212
214 bool m_componentsHasBeenSet = false;
215
216 Aws::String m_parentEntityId;
217 bool m_parentEntityIdHasBeenSet = false;
218
219 bool m_hasChildEntities{false};
220 bool m_hasChildEntitiesHasBeenSet = false;
221
222 Aws::Utils::DateTime m_creationDateTime{};
223 bool m_creationDateTimeHasBeenSet = false;
224
225 Aws::Utils::DateTime m_updateDateTime{};
226 bool m_updateDateTimeHasBeenSet = false;
227
228 Aws::String m_syncSource;
229 bool m_syncSourceHasBeenSet = false;
230
231 bool m_areAllComponentsReturned{false};
232 bool m_areAllComponentsReturnedHasBeenSet = false;
233
234 Aws::String m_requestId;
235 bool m_requestIdHasBeenSet = false;
236 };
237
238} // namespace Model
239} // namespace IoTTwinMaker
240} // 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
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