AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
CreateEntityRequest.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/ComponentRequest.h>
12#include <aws/iottwinmaker/model/CompositeComponentRequest.h>
13
14#include <utility>
15
16namespace Aws {
17namespace IoTTwinMaker {
18namespace Model {
19
23 public:
24 AWS_IOTTWINMAKER_API CreateEntityRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateEntity"; }
31
32 AWS_IOTTWINMAKER_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::String& GetWorkspaceId() const { return m_workspaceId; }
39 inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; }
40 template <typename WorkspaceIdT = Aws::String>
41 void SetWorkspaceId(WorkspaceIdT&& value) {
42 m_workspaceIdHasBeenSet = true;
43 m_workspaceId = std::forward<WorkspaceIdT>(value);
44 }
45 template <typename WorkspaceIdT = Aws::String>
46 CreateEntityRequest& WithWorkspaceId(WorkspaceIdT&& value) {
47 SetWorkspaceId(std::forward<WorkspaceIdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetEntityId() const { return m_entityId; }
57 inline bool EntityIdHasBeenSet() const { return m_entityIdHasBeenSet; }
58 template <typename EntityIdT = Aws::String>
59 void SetEntityId(EntityIdT&& value) {
60 m_entityIdHasBeenSet = true;
61 m_entityId = std::forward<EntityIdT>(value);
62 }
63 template <typename EntityIdT = Aws::String>
64 CreateEntityRequest& WithEntityId(EntityIdT&& value) {
65 SetEntityId(std::forward<EntityIdT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetEntityName() const { return m_entityName; }
75 inline bool EntityNameHasBeenSet() const { return m_entityNameHasBeenSet; }
76 template <typename EntityNameT = Aws::String>
77 void SetEntityName(EntityNameT&& value) {
78 m_entityNameHasBeenSet = true;
79 m_entityName = std::forward<EntityNameT>(value);
80 }
81 template <typename EntityNameT = Aws::String>
82 CreateEntityRequest& WithEntityName(EntityNameT&& value) {
83 SetEntityName(std::forward<EntityNameT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetDescription() const { return m_description; }
93 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
94 template <typename DescriptionT = Aws::String>
95 void SetDescription(DescriptionT&& value) {
96 m_descriptionHasBeenSet = true;
97 m_description = std::forward<DescriptionT>(value);
98 }
99 template <typename DescriptionT = Aws::String>
100 CreateEntityRequest& WithDescription(DescriptionT&& value) {
101 SetDescription(std::forward<DescriptionT>(value));
102 return *this;
103 }
105
107
111 inline const Aws::Map<Aws::String, ComponentRequest>& GetComponents() const { return m_components; }
112 inline bool ComponentsHasBeenSet() const { return m_componentsHasBeenSet; }
113 template <typename ComponentsT = Aws::Map<Aws::String, ComponentRequest>>
114 void SetComponents(ComponentsT&& value) {
115 m_componentsHasBeenSet = true;
116 m_components = std::forward<ComponentsT>(value);
117 }
118 template <typename ComponentsT = Aws::Map<Aws::String, ComponentRequest>>
119 CreateEntityRequest& WithComponents(ComponentsT&& value) {
120 SetComponents(std::forward<ComponentsT>(value));
121 return *this;
122 }
123 template <typename ComponentsKeyT = Aws::String, typename ComponentsValueT = ComponentRequest>
124 CreateEntityRequest& AddComponents(ComponentsKeyT&& key, ComponentsValueT&& value) {
125 m_componentsHasBeenSet = true;
126 m_components.emplace(std::forward<ComponentsKeyT>(key), std::forward<ComponentsValueT>(value));
127 return *this;
128 }
130
132
137 inline const Aws::Map<Aws::String, CompositeComponentRequest>& GetCompositeComponents() const { return m_compositeComponents; }
138 inline bool CompositeComponentsHasBeenSet() const { return m_compositeComponentsHasBeenSet; }
139 template <typename CompositeComponentsT = Aws::Map<Aws::String, CompositeComponentRequest>>
140 void SetCompositeComponents(CompositeComponentsT&& value) {
141 m_compositeComponentsHasBeenSet = true;
142 m_compositeComponents = std::forward<CompositeComponentsT>(value);
143 }
144 template <typename CompositeComponentsT = Aws::Map<Aws::String, CompositeComponentRequest>>
145 CreateEntityRequest& WithCompositeComponents(CompositeComponentsT&& value) {
146 SetCompositeComponents(std::forward<CompositeComponentsT>(value));
147 return *this;
148 }
149 template <typename CompositeComponentsKeyT = Aws::String, typename CompositeComponentsValueT = CompositeComponentRequest>
150 CreateEntityRequest& AddCompositeComponents(CompositeComponentsKeyT&& key, CompositeComponentsValueT&& value) {
151 m_compositeComponentsHasBeenSet = true;
152 m_compositeComponents.emplace(std::forward<CompositeComponentsKeyT>(key), std::forward<CompositeComponentsValueT>(value));
153 return *this;
154 }
156
158
161 inline const Aws::String& GetParentEntityId() const { return m_parentEntityId; }
162 inline bool ParentEntityIdHasBeenSet() const { return m_parentEntityIdHasBeenSet; }
163 template <typename ParentEntityIdT = Aws::String>
164 void SetParentEntityId(ParentEntityIdT&& value) {
165 m_parentEntityIdHasBeenSet = true;
166 m_parentEntityId = std::forward<ParentEntityIdT>(value);
167 }
168 template <typename ParentEntityIdT = Aws::String>
169 CreateEntityRequest& WithParentEntityId(ParentEntityIdT&& value) {
170 SetParentEntityId(std::forward<ParentEntityIdT>(value));
171 return *this;
172 }
174
176
179 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
180 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
181 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
182 void SetTags(TagsT&& value) {
183 m_tagsHasBeenSet = true;
184 m_tags = std::forward<TagsT>(value);
185 }
186 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
188 SetTags(std::forward<TagsT>(value));
189 return *this;
190 }
191 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
192 CreateEntityRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
193 m_tagsHasBeenSet = true;
194 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
195 return *this;
196 }
198 private:
199 Aws::String m_workspaceId;
200
201 Aws::String m_entityId;
202
203 Aws::String m_entityName;
204
205 Aws::String m_description;
206
208
210
211 Aws::String m_parentEntityId;
212
214 bool m_workspaceIdHasBeenSet = false;
215 bool m_entityIdHasBeenSet = false;
216 bool m_entityNameHasBeenSet = false;
217 bool m_descriptionHasBeenSet = false;
218 bool m_componentsHasBeenSet = false;
219 bool m_compositeComponentsHasBeenSet = false;
220 bool m_parentEntityIdHasBeenSet = false;
221 bool m_tagsHasBeenSet = false;
222};
223
224} // namespace Model
225} // namespace IoTTwinMaker
226} // namespace Aws
CreateEntityRequest & WithCompositeComponents(CompositeComponentsT &&value)
CreateEntityRequest & WithDescription(DescriptionT &&value)
AWS_IOTTWINMAKER_API CreateEntityRequest()=default
CreateEntityRequest & WithComponents(ComponentsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetCompositeComponents(CompositeComponentsT &&value)
CreateEntityRequest & AddComponents(ComponentsKeyT &&key, ComponentsValueT &&value)
CreateEntityRequest & WithEntityName(EntityNameT &&value)
const Aws::Map< Aws::String, ComponentRequest > & GetComponents() const
AWS_IOTTWINMAKER_API Aws::String SerializePayload() const override
CreateEntityRequest & AddCompositeComponents(CompositeComponentsKeyT &&key, CompositeComponentsValueT &&value)
CreateEntityRequest & WithTags(TagsT &&value)
CreateEntityRequest & WithEntityId(EntityIdT &&value)
CreateEntityRequest & WithWorkspaceId(WorkspaceIdT &&value)
CreateEntityRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
virtual const char * GetServiceRequestName() const override
CreateEntityRequest & WithParentEntityId(ParentEntityIdT &&value)
const Aws::Map< Aws::String, CompositeComponentRequest > & GetCompositeComponents() const
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