AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
UpdateEntityRequest.h
1
6#pragma once
7#include <aws/iottwinmaker/IoTTwinMaker_EXPORTS.h>
8#include <aws/iottwinmaker/IoTTwinMakerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/iottwinmaker/model/ParentEntityUpdateRequest.h>
12#include <aws/iottwinmaker/model/ComponentUpdateRequest.h>
13#include <aws/iottwinmaker/model/CompositeComponentUpdateRequest.h>
14#include <utility>
15
16namespace Aws
17{
18namespace IoTTwinMaker
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_IOTTWINMAKER_API UpdateEntityRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "UpdateEntity"; }
35
36 AWS_IOTTWINMAKER_API Aws::String SerializePayload() const override;
37
38
40
43 inline const Aws::String& GetWorkspaceId() const { return m_workspaceId; }
44 inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; }
45 template<typename WorkspaceIdT = Aws::String>
46 void SetWorkspaceId(WorkspaceIdT&& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = std::forward<WorkspaceIdT>(value); }
47 template<typename WorkspaceIdT = Aws::String>
48 UpdateEntityRequest& WithWorkspaceId(WorkspaceIdT&& value) { SetWorkspaceId(std::forward<WorkspaceIdT>(value)); return *this;}
50
52
55 inline const Aws::String& GetEntityId() const { return m_entityId; }
56 inline bool EntityIdHasBeenSet() const { return m_entityIdHasBeenSet; }
57 template<typename EntityIdT = Aws::String>
58 void SetEntityId(EntityIdT&& value) { m_entityIdHasBeenSet = true; m_entityId = std::forward<EntityIdT>(value); }
59 template<typename EntityIdT = Aws::String>
60 UpdateEntityRequest& WithEntityId(EntityIdT&& value) { SetEntityId(std::forward<EntityIdT>(value)); return *this;}
62
64
67 inline const Aws::String& GetEntityName() const { return m_entityName; }
68 inline bool EntityNameHasBeenSet() const { return m_entityNameHasBeenSet; }
69 template<typename EntityNameT = Aws::String>
70 void SetEntityName(EntityNameT&& value) { m_entityNameHasBeenSet = true; m_entityName = std::forward<EntityNameT>(value); }
71 template<typename EntityNameT = Aws::String>
72 UpdateEntityRequest& WithEntityName(EntityNameT&& value) { SetEntityName(std::forward<EntityNameT>(value)); return *this;}
74
76
79 inline const Aws::String& GetDescription() const { return m_description; }
80 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
81 template<typename DescriptionT = Aws::String>
82 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
83 template<typename DescriptionT = Aws::String>
84 UpdateEntityRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
86
88
92 inline const Aws::Map<Aws::String, ComponentUpdateRequest>& GetComponentUpdates() const { return m_componentUpdates; }
93 inline bool ComponentUpdatesHasBeenSet() const { return m_componentUpdatesHasBeenSet; }
94 template<typename ComponentUpdatesT = Aws::Map<Aws::String, ComponentUpdateRequest>>
95 void SetComponentUpdates(ComponentUpdatesT&& value) { m_componentUpdatesHasBeenSet = true; m_componentUpdates = std::forward<ComponentUpdatesT>(value); }
96 template<typename ComponentUpdatesT = Aws::Map<Aws::String, ComponentUpdateRequest>>
97 UpdateEntityRequest& WithComponentUpdates(ComponentUpdatesT&& value) { SetComponentUpdates(std::forward<ComponentUpdatesT>(value)); return *this;}
98 template<typename ComponentUpdatesKeyT = Aws::String, typename ComponentUpdatesValueT = ComponentUpdateRequest>
99 UpdateEntityRequest& AddComponentUpdates(ComponentUpdatesKeyT&& key, ComponentUpdatesValueT&& value) {
100 m_componentUpdatesHasBeenSet = true; m_componentUpdates.emplace(std::forward<ComponentUpdatesKeyT>(key), std::forward<ComponentUpdatesValueT>(value)); return *this;
101 }
103
105
110 inline const Aws::Map<Aws::String, CompositeComponentUpdateRequest>& GetCompositeComponentUpdates() const { return m_compositeComponentUpdates; }
111 inline bool CompositeComponentUpdatesHasBeenSet() const { return m_compositeComponentUpdatesHasBeenSet; }
112 template<typename CompositeComponentUpdatesT = Aws::Map<Aws::String, CompositeComponentUpdateRequest>>
113 void SetCompositeComponentUpdates(CompositeComponentUpdatesT&& value) { m_compositeComponentUpdatesHasBeenSet = true; m_compositeComponentUpdates = std::forward<CompositeComponentUpdatesT>(value); }
114 template<typename CompositeComponentUpdatesT = Aws::Map<Aws::String, CompositeComponentUpdateRequest>>
115 UpdateEntityRequest& WithCompositeComponentUpdates(CompositeComponentUpdatesT&& value) { SetCompositeComponentUpdates(std::forward<CompositeComponentUpdatesT>(value)); return *this;}
116 template<typename CompositeComponentUpdatesKeyT = Aws::String, typename CompositeComponentUpdatesValueT = CompositeComponentUpdateRequest>
117 UpdateEntityRequest& AddCompositeComponentUpdates(CompositeComponentUpdatesKeyT&& key, CompositeComponentUpdatesValueT&& value) {
118 m_compositeComponentUpdatesHasBeenSet = true; m_compositeComponentUpdates.emplace(std::forward<CompositeComponentUpdatesKeyT>(key), std::forward<CompositeComponentUpdatesValueT>(value)); return *this;
119 }
121
123
126 inline const ParentEntityUpdateRequest& GetParentEntityUpdate() const { return m_parentEntityUpdate; }
127 inline bool ParentEntityUpdateHasBeenSet() const { return m_parentEntityUpdateHasBeenSet; }
128 template<typename ParentEntityUpdateT = ParentEntityUpdateRequest>
129 void SetParentEntityUpdate(ParentEntityUpdateT&& value) { m_parentEntityUpdateHasBeenSet = true; m_parentEntityUpdate = std::forward<ParentEntityUpdateT>(value); }
130 template<typename ParentEntityUpdateT = ParentEntityUpdateRequest>
131 UpdateEntityRequest& WithParentEntityUpdate(ParentEntityUpdateT&& value) { SetParentEntityUpdate(std::forward<ParentEntityUpdateT>(value)); return *this;}
133 private:
134
135 Aws::String m_workspaceId;
136 bool m_workspaceIdHasBeenSet = false;
137
138 Aws::String m_entityId;
139 bool m_entityIdHasBeenSet = false;
140
141 Aws::String m_entityName;
142 bool m_entityNameHasBeenSet = false;
143
144 Aws::String m_description;
145 bool m_descriptionHasBeenSet = false;
146
148 bool m_componentUpdatesHasBeenSet = false;
149
151 bool m_compositeComponentUpdatesHasBeenSet = false;
152
153 ParentEntityUpdateRequest m_parentEntityUpdate;
154 bool m_parentEntityUpdateHasBeenSet = false;
155 };
156
157} // namespace Model
158} // namespace IoTTwinMaker
159} // 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