AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetWorkspaceId(const Aws::String& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = value; }
45 inline void SetWorkspaceId(Aws::String&& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = std::move(value); }
46 inline void SetWorkspaceId(const char* value) { m_workspaceIdHasBeenSet = true; m_workspaceId.assign(value); }
47 inline CreateEntityRequest& WithWorkspaceId(const Aws::String& value) { SetWorkspaceId(value); return *this;}
48 inline CreateEntityRequest& WithWorkspaceId(Aws::String&& value) { SetWorkspaceId(std::move(value)); return *this;}
49 inline CreateEntityRequest& WithWorkspaceId(const char* value) { SetWorkspaceId(value); return *this;}
51
53
56 inline const Aws::String& GetEntityId() const{ return m_entityId; }
57 inline bool EntityIdHasBeenSet() const { return m_entityIdHasBeenSet; }
58 inline void SetEntityId(const Aws::String& value) { m_entityIdHasBeenSet = true; m_entityId = value; }
59 inline void SetEntityId(Aws::String&& value) { m_entityIdHasBeenSet = true; m_entityId = std::move(value); }
60 inline void SetEntityId(const char* value) { m_entityIdHasBeenSet = true; m_entityId.assign(value); }
61 inline CreateEntityRequest& WithEntityId(const Aws::String& value) { SetEntityId(value); return *this;}
62 inline CreateEntityRequest& WithEntityId(Aws::String&& value) { SetEntityId(std::move(value)); return *this;}
63 inline CreateEntityRequest& WithEntityId(const char* value) { SetEntityId(value); return *this;}
65
67
70 inline const Aws::String& GetEntityName() const{ return m_entityName; }
71 inline bool EntityNameHasBeenSet() const { return m_entityNameHasBeenSet; }
72 inline void SetEntityName(const Aws::String& value) { m_entityNameHasBeenSet = true; m_entityName = value; }
73 inline void SetEntityName(Aws::String&& value) { m_entityNameHasBeenSet = true; m_entityName = std::move(value); }
74 inline void SetEntityName(const char* value) { m_entityNameHasBeenSet = true; m_entityName.assign(value); }
75 inline CreateEntityRequest& WithEntityName(const Aws::String& value) { SetEntityName(value); return *this;}
76 inline CreateEntityRequest& WithEntityName(Aws::String&& value) { SetEntityName(std::move(value)); return *this;}
77 inline CreateEntityRequest& WithEntityName(const char* value) { SetEntityName(value); return *this;}
79
81
84 inline const Aws::String& GetDescription() const{ return m_description; }
85 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
86 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
87 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
88 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
89 inline CreateEntityRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
90 inline CreateEntityRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
91 inline CreateEntityRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
93
95
99 inline const Aws::Map<Aws::String, ComponentRequest>& GetComponents() const{ return m_components; }
100 inline bool ComponentsHasBeenSet() const { return m_componentsHasBeenSet; }
101 inline void SetComponents(const Aws::Map<Aws::String, ComponentRequest>& value) { m_componentsHasBeenSet = true; m_components = value; }
102 inline void SetComponents(Aws::Map<Aws::String, ComponentRequest>&& value) { m_componentsHasBeenSet = true; m_components = std::move(value); }
105 inline CreateEntityRequest& AddComponents(const Aws::String& key, const ComponentRequest& value) { m_componentsHasBeenSet = true; m_components.emplace(key, value); return *this; }
106 inline CreateEntityRequest& AddComponents(Aws::String&& key, const ComponentRequest& value) { m_componentsHasBeenSet = true; m_components.emplace(std::move(key), value); return *this; }
107 inline CreateEntityRequest& AddComponents(const Aws::String& key, ComponentRequest&& value) { m_componentsHasBeenSet = true; m_components.emplace(key, std::move(value)); return *this; }
108 inline CreateEntityRequest& AddComponents(Aws::String&& key, ComponentRequest&& value) { m_componentsHasBeenSet = true; m_components.emplace(std::move(key), std::move(value)); return *this; }
109 inline CreateEntityRequest& AddComponents(const char* key, ComponentRequest&& value) { m_componentsHasBeenSet = true; m_components.emplace(key, std::move(value)); return *this; }
110 inline CreateEntityRequest& AddComponents(const char* key, const ComponentRequest& value) { m_componentsHasBeenSet = true; m_components.emplace(key, value); return *this; }
112
114
119 inline const Aws::Map<Aws::String, CompositeComponentRequest>& GetCompositeComponents() const{ return m_compositeComponents; }
120 inline bool CompositeComponentsHasBeenSet() const { return m_compositeComponentsHasBeenSet; }
121 inline void SetCompositeComponents(const Aws::Map<Aws::String, CompositeComponentRequest>& value) { m_compositeComponentsHasBeenSet = true; m_compositeComponents = value; }
122 inline void SetCompositeComponents(Aws::Map<Aws::String, CompositeComponentRequest>&& value) { m_compositeComponentsHasBeenSet = true; m_compositeComponents = std::move(value); }
125 inline CreateEntityRequest& AddCompositeComponents(const Aws::String& key, const CompositeComponentRequest& value) { m_compositeComponentsHasBeenSet = true; m_compositeComponents.emplace(key, value); return *this; }
126 inline CreateEntityRequest& AddCompositeComponents(Aws::String&& key, const CompositeComponentRequest& value) { m_compositeComponentsHasBeenSet = true; m_compositeComponents.emplace(std::move(key), value); return *this; }
127 inline CreateEntityRequest& AddCompositeComponents(const Aws::String& key, CompositeComponentRequest&& value) { m_compositeComponentsHasBeenSet = true; m_compositeComponents.emplace(key, std::move(value)); return *this; }
128 inline CreateEntityRequest& AddCompositeComponents(Aws::String&& key, CompositeComponentRequest&& value) { m_compositeComponentsHasBeenSet = true; m_compositeComponents.emplace(std::move(key), std::move(value)); return *this; }
129 inline CreateEntityRequest& AddCompositeComponents(const char* key, CompositeComponentRequest&& value) { m_compositeComponentsHasBeenSet = true; m_compositeComponents.emplace(key, std::move(value)); return *this; }
130 inline CreateEntityRequest& AddCompositeComponents(const char* key, const CompositeComponentRequest& value) { m_compositeComponentsHasBeenSet = true; m_compositeComponents.emplace(key, value); return *this; }
132
134
137 inline const Aws::String& GetParentEntityId() const{ return m_parentEntityId; }
138 inline bool ParentEntityIdHasBeenSet() const { return m_parentEntityIdHasBeenSet; }
139 inline void SetParentEntityId(const Aws::String& value) { m_parentEntityIdHasBeenSet = true; m_parentEntityId = value; }
140 inline void SetParentEntityId(Aws::String&& value) { m_parentEntityIdHasBeenSet = true; m_parentEntityId = std::move(value); }
141 inline void SetParentEntityId(const char* value) { m_parentEntityIdHasBeenSet = true; m_parentEntityId.assign(value); }
142 inline CreateEntityRequest& WithParentEntityId(const Aws::String& value) { SetParentEntityId(value); return *this;}
143 inline CreateEntityRequest& WithParentEntityId(Aws::String&& value) { SetParentEntityId(std::move(value)); return *this;}
144 inline CreateEntityRequest& WithParentEntityId(const char* value) { SetParentEntityId(value); return *this;}
146
148
151 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
152 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
153 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
154 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
155 inline CreateEntityRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
156 inline CreateEntityRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
157 inline CreateEntityRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
158 inline CreateEntityRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
159 inline CreateEntityRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
160 inline CreateEntityRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
161 inline CreateEntityRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
162 inline CreateEntityRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
163 inline CreateEntityRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
165 private:
166
167 Aws::String m_workspaceId;
168 bool m_workspaceIdHasBeenSet = false;
169
170 Aws::String m_entityId;
171 bool m_entityIdHasBeenSet = false;
172
173 Aws::String m_entityName;
174 bool m_entityNameHasBeenSet = false;
175
176 Aws::String m_description;
177 bool m_descriptionHasBeenSet = false;
178
180 bool m_componentsHasBeenSet = false;
181
183 bool m_compositeComponentsHasBeenSet = false;
184
185 Aws::String m_parentEntityId;
186 bool m_parentEntityIdHasBeenSet = false;
187
189 bool m_tagsHasBeenSet = false;
190 };
191
192} // namespace Model
193} // namespace IoTTwinMaker
194} // namespace Aws
CreateEntityRequest & WithWorkspaceId(const char *value)
CreateEntityRequest & AddComponents(const Aws::String &key, ComponentRequest &&value)
CreateEntityRequest & AddCompositeComponents(const Aws::String &key, CompositeComponentRequest &&value)
CreateEntityRequest & WithCompositeComponents(Aws::Map< Aws::String, CompositeComponentRequest > &&value)
CreateEntityRequest & AddComponents(const char *key, ComponentRequest &&value)
CreateEntityRequest & AddCompositeComponents(Aws::String &&key, const CompositeComponentRequest &value)
CreateEntityRequest & AddCompositeComponents(const char *key, const CompositeComponentRequest &value)
void SetCompositeComponents(const Aws::Map< Aws::String, CompositeComponentRequest > &value)
CreateEntityRequest & WithDescription(const char *value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetComponents(const Aws::Map< Aws::String, ComponentRequest > &value)
CreateEntityRequest & WithParentEntityId(const char *value)
const Aws::Map< Aws::String, ComponentRequest > & GetComponents() const
CreateEntityRequest & WithEntityId(const Aws::String &value)
AWS_IOTTWINMAKER_API Aws::String SerializePayload() const override
CreateEntityRequest & WithCompositeComponents(const Aws::Map< Aws::String, CompositeComponentRequest > &value)
CreateEntityRequest & AddCompositeComponents(const Aws::String &key, const CompositeComponentRequest &value)
CreateEntityRequest & WithWorkspaceId(const Aws::String &value)
CreateEntityRequest & AddComponents(Aws::String &&key, ComponentRequest &&value)
CreateEntityRequest & WithEntityName(const char *value)
CreateEntityRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateEntityRequest & AddTags(const char *key, const char *value)
void SetComponents(Aws::Map< Aws::String, ComponentRequest > &&value)
void SetCompositeComponents(Aws::Map< Aws::String, CompositeComponentRequest > &&value)
CreateEntityRequest & AddCompositeComponents(const char *key, CompositeComponentRequest &&value)
CreateEntityRequest & AddCompositeComponents(Aws::String &&key, CompositeComponentRequest &&value)
CreateEntityRequest & WithEntityId(const char *value)
CreateEntityRequest & WithParentEntityId(const Aws::String &value)
CreateEntityRequest & AddComponents(const char *key, const ComponentRequest &value)
CreateEntityRequest & WithDescription(const Aws::String &value)
CreateEntityRequest & WithDescription(Aws::String &&value)
CreateEntityRequest & AddComponents(Aws::String &&key, const ComponentRequest &value)
CreateEntityRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateEntityRequest & WithComponents(Aws::Map< Aws::String, ComponentRequest > &&value)
CreateEntityRequest & AddTags(const char *key, Aws::String &&value)
CreateEntityRequest & WithWorkspaceId(Aws::String &&value)
CreateEntityRequest & WithEntityId(Aws::String &&value)
CreateEntityRequest & WithEntityName(Aws::String &&value)
CreateEntityRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
virtual const char * GetServiceRequestName() const override
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateEntityRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateEntityRequest & WithParentEntityId(Aws::String &&value)
CreateEntityRequest & WithEntityName(const Aws::String &value)
CreateEntityRequest & AddTags(Aws::String &&key, const char *value)
const Aws::Map< Aws::String, CompositeComponentRequest > & GetCompositeComponents() const
CreateEntityRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateEntityRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateEntityRequest & WithComponents(const Aws::Map< Aws::String, ComponentRequest > &value)
CreateEntityRequest & AddComponents(const Aws::String &key, const ComponentRequest &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