AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
UpdateEntityRequest.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/IoTTwinMakerRequest.h>
10#include <aws/iottwinmaker/IoTTwinMaker_EXPORTS.h>
11#include <aws/iottwinmaker/model/ComponentUpdateRequest.h>
12#include <aws/iottwinmaker/model/CompositeComponentUpdateRequest.h>
13#include <aws/iottwinmaker/model/ParentEntityUpdateRequest.h>
14
15#include <utility>
16
17namespace Aws {
18namespace IoTTwinMaker {
19namespace Model {
20
24 public:
25 AWS_IOTTWINMAKER_API UpdateEntityRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateEntity"; }
32
33 AWS_IOTTWINMAKER_API Aws::String SerializePayload() const override;
34
36
39 inline const Aws::String& GetWorkspaceId() const { return m_workspaceId; }
40 inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; }
41 template <typename WorkspaceIdT = Aws::String>
42 void SetWorkspaceId(WorkspaceIdT&& value) {
43 m_workspaceIdHasBeenSet = true;
44 m_workspaceId = std::forward<WorkspaceIdT>(value);
45 }
46 template <typename WorkspaceIdT = Aws::String>
47 UpdateEntityRequest& WithWorkspaceId(WorkspaceIdT&& value) {
48 SetWorkspaceId(std::forward<WorkspaceIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetEntityId() const { return m_entityId; }
58 inline bool EntityIdHasBeenSet() const { return m_entityIdHasBeenSet; }
59 template <typename EntityIdT = Aws::String>
60 void SetEntityId(EntityIdT&& value) {
61 m_entityIdHasBeenSet = true;
62 m_entityId = std::forward<EntityIdT>(value);
63 }
64 template <typename EntityIdT = Aws::String>
65 UpdateEntityRequest& WithEntityId(EntityIdT&& value) {
66 SetEntityId(std::forward<EntityIdT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetEntityName() const { return m_entityName; }
76 inline bool EntityNameHasBeenSet() const { return m_entityNameHasBeenSet; }
77 template <typename EntityNameT = Aws::String>
78 void SetEntityName(EntityNameT&& value) {
79 m_entityNameHasBeenSet = true;
80 m_entityName = std::forward<EntityNameT>(value);
81 }
82 template <typename EntityNameT = Aws::String>
83 UpdateEntityRequest& WithEntityName(EntityNameT&& value) {
84 SetEntityName(std::forward<EntityNameT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetDescription() const { return m_description; }
94 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
95 template <typename DescriptionT = Aws::String>
96 void SetDescription(DescriptionT&& value) {
97 m_descriptionHasBeenSet = true;
98 m_description = std::forward<DescriptionT>(value);
99 }
100 template <typename DescriptionT = Aws::String>
101 UpdateEntityRequest& WithDescription(DescriptionT&& value) {
102 SetDescription(std::forward<DescriptionT>(value));
103 return *this;
104 }
106
108
112 inline const Aws::Map<Aws::String, ComponentUpdateRequest>& GetComponentUpdates() const { return m_componentUpdates; }
113 inline bool ComponentUpdatesHasBeenSet() const { return m_componentUpdatesHasBeenSet; }
114 template <typename ComponentUpdatesT = Aws::Map<Aws::String, ComponentUpdateRequest>>
115 void SetComponentUpdates(ComponentUpdatesT&& value) {
116 m_componentUpdatesHasBeenSet = true;
117 m_componentUpdates = std::forward<ComponentUpdatesT>(value);
118 }
119 template <typename ComponentUpdatesT = Aws::Map<Aws::String, ComponentUpdateRequest>>
120 UpdateEntityRequest& WithComponentUpdates(ComponentUpdatesT&& value) {
121 SetComponentUpdates(std::forward<ComponentUpdatesT>(value));
122 return *this;
123 }
124 template <typename ComponentUpdatesKeyT = Aws::String, typename ComponentUpdatesValueT = ComponentUpdateRequest>
125 UpdateEntityRequest& AddComponentUpdates(ComponentUpdatesKeyT&& key, ComponentUpdatesValueT&& value) {
126 m_componentUpdatesHasBeenSet = true;
127 m_componentUpdates.emplace(std::forward<ComponentUpdatesKeyT>(key), std::forward<ComponentUpdatesValueT>(value));
128 return *this;
129 }
131
133
139 return m_compositeComponentUpdates;
140 }
141 inline bool CompositeComponentUpdatesHasBeenSet() const { return m_compositeComponentUpdatesHasBeenSet; }
142 template <typename CompositeComponentUpdatesT = Aws::Map<Aws::String, CompositeComponentUpdateRequest>>
143 void SetCompositeComponentUpdates(CompositeComponentUpdatesT&& value) {
144 m_compositeComponentUpdatesHasBeenSet = true;
145 m_compositeComponentUpdates = std::forward<CompositeComponentUpdatesT>(value);
146 }
147 template <typename CompositeComponentUpdatesT = Aws::Map<Aws::String, CompositeComponentUpdateRequest>>
148 UpdateEntityRequest& WithCompositeComponentUpdates(CompositeComponentUpdatesT&& value) {
149 SetCompositeComponentUpdates(std::forward<CompositeComponentUpdatesT>(value));
150 return *this;
151 }
152 template <typename CompositeComponentUpdatesKeyT = Aws::String,
153 typename CompositeComponentUpdatesValueT = CompositeComponentUpdateRequest>
154 UpdateEntityRequest& AddCompositeComponentUpdates(CompositeComponentUpdatesKeyT&& key, CompositeComponentUpdatesValueT&& value) {
155 m_compositeComponentUpdatesHasBeenSet = true;
156 m_compositeComponentUpdates.emplace(std::forward<CompositeComponentUpdatesKeyT>(key),
157 std::forward<CompositeComponentUpdatesValueT>(value));
158 return *this;
159 }
161
163
166 inline const ParentEntityUpdateRequest& GetParentEntityUpdate() const { return m_parentEntityUpdate; }
167 inline bool ParentEntityUpdateHasBeenSet() const { return m_parentEntityUpdateHasBeenSet; }
168 template <typename ParentEntityUpdateT = ParentEntityUpdateRequest>
169 void SetParentEntityUpdate(ParentEntityUpdateT&& value) {
170 m_parentEntityUpdateHasBeenSet = true;
171 m_parentEntityUpdate = std::forward<ParentEntityUpdateT>(value);
172 }
173 template <typename ParentEntityUpdateT = ParentEntityUpdateRequest>
174 UpdateEntityRequest& WithParentEntityUpdate(ParentEntityUpdateT&& value) {
175 SetParentEntityUpdate(std::forward<ParentEntityUpdateT>(value));
176 return *this;
177 }
179 private:
180 Aws::String m_workspaceId;
181
182 Aws::String m_entityId;
183
184 Aws::String m_entityName;
185
186 Aws::String m_description;
187
189
191
192 ParentEntityUpdateRequest m_parentEntityUpdate;
193 bool m_workspaceIdHasBeenSet = false;
194 bool m_entityIdHasBeenSet = false;
195 bool m_entityNameHasBeenSet = false;
196 bool m_descriptionHasBeenSet = false;
197 bool m_componentUpdatesHasBeenSet = false;
198 bool m_compositeComponentUpdatesHasBeenSet = false;
199 bool m_parentEntityUpdateHasBeenSet = false;
200};
201
202} // namespace Model
203} // namespace IoTTwinMaker
204} // namespace Aws
UpdateEntityRequest & WithWorkspaceId(WorkspaceIdT &&value)
UpdateEntityRequest & WithParentEntityUpdate(ParentEntityUpdateT &&value)
virtual const char * GetServiceRequestName() const override
UpdateEntityRequest & WithComponentUpdates(ComponentUpdatesT &&value)
void SetParentEntityUpdate(ParentEntityUpdateT &&value)
AWS_IOTTWINMAKER_API Aws::String SerializePayload() const override
UpdateEntityRequest & WithEntityName(EntityNameT &&value)
const ParentEntityUpdateRequest & GetParentEntityUpdate() const
void SetCompositeComponentUpdates(CompositeComponentUpdatesT &&value)
const Aws::Map< Aws::String, CompositeComponentUpdateRequest > & GetCompositeComponentUpdates() const
UpdateEntityRequest & AddComponentUpdates(ComponentUpdatesKeyT &&key, ComponentUpdatesValueT &&value)
AWS_IOTTWINMAKER_API UpdateEntityRequest()=default
UpdateEntityRequest & AddCompositeComponentUpdates(CompositeComponentUpdatesKeyT &&key, CompositeComponentUpdatesValueT &&value)
const Aws::Map< Aws::String, ComponentUpdateRequest > & GetComponentUpdates() const
UpdateEntityRequest & WithCompositeComponentUpdates(CompositeComponentUpdatesT &&value)
void SetComponentUpdates(ComponentUpdatesT &&value)
UpdateEntityRequest & WithEntityId(EntityIdT &&value)
UpdateEntityRequest & 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