AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateEntityRequest.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/ComponentRequest.h>
12#include <aws/iottwinmaker/model/CompositeComponentRequest.h>
13#include <utility>
14
15namespace Aws
16{
17namespace IoTTwinMaker
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_IOTTWINMAKER_API CreateEntityRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateEntity"; }
34
35 AWS_IOTTWINMAKER_API Aws::String SerializePayload() const override;
36
37
39
42 inline const Aws::String& GetWorkspaceId() const { return m_workspaceId; }
43 inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; }
44 template<typename WorkspaceIdT = Aws::String>
45 void SetWorkspaceId(WorkspaceIdT&& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = std::forward<WorkspaceIdT>(value); }
46 template<typename WorkspaceIdT = Aws::String>
47 CreateEntityRequest& WithWorkspaceId(WorkspaceIdT&& value) { SetWorkspaceId(std::forward<WorkspaceIdT>(value)); return *this;}
49
51
54 inline const Aws::String& GetEntityId() const { return m_entityId; }
55 inline bool EntityIdHasBeenSet() const { return m_entityIdHasBeenSet; }
56 template<typename EntityIdT = Aws::String>
57 void SetEntityId(EntityIdT&& value) { m_entityIdHasBeenSet = true; m_entityId = std::forward<EntityIdT>(value); }
58 template<typename EntityIdT = Aws::String>
59 CreateEntityRequest& WithEntityId(EntityIdT&& value) { SetEntityId(std::forward<EntityIdT>(value)); return *this;}
61
63
66 inline const Aws::String& GetEntityName() const { return m_entityName; }
67 inline bool EntityNameHasBeenSet() const { return m_entityNameHasBeenSet; }
68 template<typename EntityNameT = Aws::String>
69 void SetEntityName(EntityNameT&& value) { m_entityNameHasBeenSet = true; m_entityName = std::forward<EntityNameT>(value); }
70 template<typename EntityNameT = Aws::String>
71 CreateEntityRequest& WithEntityName(EntityNameT&& value) { SetEntityName(std::forward<EntityNameT>(value)); return *this;}
73
75
78 inline const Aws::String& GetDescription() const { return m_description; }
79 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
80 template<typename DescriptionT = Aws::String>
81 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
82 template<typename DescriptionT = Aws::String>
83 CreateEntityRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
85
87
91 inline const Aws::Map<Aws::String, ComponentRequest>& GetComponents() const { return m_components; }
92 inline bool ComponentsHasBeenSet() const { return m_componentsHasBeenSet; }
93 template<typename ComponentsT = Aws::Map<Aws::String, ComponentRequest>>
94 void SetComponents(ComponentsT&& value) { m_componentsHasBeenSet = true; m_components = std::forward<ComponentsT>(value); }
95 template<typename ComponentsT = Aws::Map<Aws::String, ComponentRequest>>
96 CreateEntityRequest& WithComponents(ComponentsT&& value) { SetComponents(std::forward<ComponentsT>(value)); return *this;}
97 template<typename ComponentsKeyT = Aws::String, typename ComponentsValueT = ComponentRequest>
98 CreateEntityRequest& AddComponents(ComponentsKeyT&& key, ComponentsValueT&& value) {
99 m_componentsHasBeenSet = true; m_components.emplace(std::forward<ComponentsKeyT>(key), std::forward<ComponentsValueT>(value)); return *this;
100 }
102
104
109 inline const Aws::Map<Aws::String, CompositeComponentRequest>& GetCompositeComponents() const { return m_compositeComponents; }
110 inline bool CompositeComponentsHasBeenSet() const { return m_compositeComponentsHasBeenSet; }
111 template<typename CompositeComponentsT = Aws::Map<Aws::String, CompositeComponentRequest>>
112 void SetCompositeComponents(CompositeComponentsT&& value) { m_compositeComponentsHasBeenSet = true; m_compositeComponents = std::forward<CompositeComponentsT>(value); }
113 template<typename CompositeComponentsT = Aws::Map<Aws::String, CompositeComponentRequest>>
114 CreateEntityRequest& WithCompositeComponents(CompositeComponentsT&& value) { SetCompositeComponents(std::forward<CompositeComponentsT>(value)); return *this;}
115 template<typename CompositeComponentsKeyT = Aws::String, typename CompositeComponentsValueT = CompositeComponentRequest>
116 CreateEntityRequest& AddCompositeComponents(CompositeComponentsKeyT&& key, CompositeComponentsValueT&& value) {
117 m_compositeComponentsHasBeenSet = true; m_compositeComponents.emplace(std::forward<CompositeComponentsKeyT>(key), std::forward<CompositeComponentsValueT>(value)); return *this;
118 }
120
122
125 inline const Aws::String& GetParentEntityId() const { return m_parentEntityId; }
126 inline bool ParentEntityIdHasBeenSet() const { return m_parentEntityIdHasBeenSet; }
127 template<typename ParentEntityIdT = Aws::String>
128 void SetParentEntityId(ParentEntityIdT&& value) { m_parentEntityIdHasBeenSet = true; m_parentEntityId = std::forward<ParentEntityIdT>(value); }
129 template<typename ParentEntityIdT = Aws::String>
130 CreateEntityRequest& WithParentEntityId(ParentEntityIdT&& value) { SetParentEntityId(std::forward<ParentEntityIdT>(value)); return *this;}
132
134
137 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
138 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
139 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
140 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
141 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
142 CreateEntityRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
143 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
144 CreateEntityRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
145 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
146 }
148 private:
149
150 Aws::String m_workspaceId;
151 bool m_workspaceIdHasBeenSet = false;
152
153 Aws::String m_entityId;
154 bool m_entityIdHasBeenSet = false;
155
156 Aws::String m_entityName;
157 bool m_entityNameHasBeenSet = false;
158
159 Aws::String m_description;
160 bool m_descriptionHasBeenSet = false;
161
163 bool m_componentsHasBeenSet = false;
164
166 bool m_compositeComponentsHasBeenSet = false;
167
168 Aws::String m_parentEntityId;
169 bool m_parentEntityIdHasBeenSet = false;
170
172 bool m_tagsHasBeenSet = false;
173 };
174
175} // namespace Model
176} // namespace IoTTwinMaker
177} // 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