AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetWorkspaceId(const Aws::String& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = value; }
46 inline void SetWorkspaceId(Aws::String&& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = std::move(value); }
47 inline void SetWorkspaceId(const char* value) { m_workspaceIdHasBeenSet = true; m_workspaceId.assign(value); }
48 inline UpdateEntityRequest& WithWorkspaceId(const Aws::String& value) { SetWorkspaceId(value); return *this;}
49 inline UpdateEntityRequest& WithWorkspaceId(Aws::String&& value) { SetWorkspaceId(std::move(value)); return *this;}
50 inline UpdateEntityRequest& WithWorkspaceId(const char* value) { SetWorkspaceId(value); return *this;}
52
54
57 inline const Aws::String& GetEntityId() const{ return m_entityId; }
58 inline bool EntityIdHasBeenSet() const { return m_entityIdHasBeenSet; }
59 inline void SetEntityId(const Aws::String& value) { m_entityIdHasBeenSet = true; m_entityId = value; }
60 inline void SetEntityId(Aws::String&& value) { m_entityIdHasBeenSet = true; m_entityId = std::move(value); }
61 inline void SetEntityId(const char* value) { m_entityIdHasBeenSet = true; m_entityId.assign(value); }
62 inline UpdateEntityRequest& WithEntityId(const Aws::String& value) { SetEntityId(value); return *this;}
63 inline UpdateEntityRequest& WithEntityId(Aws::String&& value) { SetEntityId(std::move(value)); return *this;}
64 inline UpdateEntityRequest& WithEntityId(const char* value) { SetEntityId(value); return *this;}
66
68
71 inline const Aws::String& GetEntityName() const{ return m_entityName; }
72 inline bool EntityNameHasBeenSet() const { return m_entityNameHasBeenSet; }
73 inline void SetEntityName(const Aws::String& value) { m_entityNameHasBeenSet = true; m_entityName = value; }
74 inline void SetEntityName(Aws::String&& value) { m_entityNameHasBeenSet = true; m_entityName = std::move(value); }
75 inline void SetEntityName(const char* value) { m_entityNameHasBeenSet = true; m_entityName.assign(value); }
76 inline UpdateEntityRequest& WithEntityName(const Aws::String& value) { SetEntityName(value); return *this;}
77 inline UpdateEntityRequest& WithEntityName(Aws::String&& value) { SetEntityName(std::move(value)); return *this;}
78 inline UpdateEntityRequest& WithEntityName(const char* value) { SetEntityName(value); return *this;}
80
82
85 inline const Aws::String& GetDescription() const{ return m_description; }
86 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
87 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
88 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
89 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
90 inline UpdateEntityRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
91 inline UpdateEntityRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
92 inline UpdateEntityRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
94
96
100 inline const Aws::Map<Aws::String, ComponentUpdateRequest>& GetComponentUpdates() const{ return m_componentUpdates; }
101 inline bool ComponentUpdatesHasBeenSet() const { return m_componentUpdatesHasBeenSet; }
102 inline void SetComponentUpdates(const Aws::Map<Aws::String, ComponentUpdateRequest>& value) { m_componentUpdatesHasBeenSet = true; m_componentUpdates = value; }
103 inline void SetComponentUpdates(Aws::Map<Aws::String, ComponentUpdateRequest>&& value) { m_componentUpdatesHasBeenSet = true; m_componentUpdates = std::move(value); }
106 inline UpdateEntityRequest& AddComponentUpdates(const Aws::String& key, const ComponentUpdateRequest& value) { m_componentUpdatesHasBeenSet = true; m_componentUpdates.emplace(key, value); return *this; }
107 inline UpdateEntityRequest& AddComponentUpdates(Aws::String&& key, const ComponentUpdateRequest& value) { m_componentUpdatesHasBeenSet = true; m_componentUpdates.emplace(std::move(key), value); return *this; }
108 inline UpdateEntityRequest& AddComponentUpdates(const Aws::String& key, ComponentUpdateRequest&& value) { m_componentUpdatesHasBeenSet = true; m_componentUpdates.emplace(key, std::move(value)); return *this; }
109 inline UpdateEntityRequest& AddComponentUpdates(Aws::String&& key, ComponentUpdateRequest&& value) { m_componentUpdatesHasBeenSet = true; m_componentUpdates.emplace(std::move(key), std::move(value)); return *this; }
110 inline UpdateEntityRequest& AddComponentUpdates(const char* key, ComponentUpdateRequest&& value) { m_componentUpdatesHasBeenSet = true; m_componentUpdates.emplace(key, std::move(value)); return *this; }
111 inline UpdateEntityRequest& AddComponentUpdates(const char* key, const ComponentUpdateRequest& value) { m_componentUpdatesHasBeenSet = true; m_componentUpdates.emplace(key, value); return *this; }
113
115
120 inline const Aws::Map<Aws::String, CompositeComponentUpdateRequest>& GetCompositeComponentUpdates() const{ return m_compositeComponentUpdates; }
121 inline bool CompositeComponentUpdatesHasBeenSet() const { return m_compositeComponentUpdatesHasBeenSet; }
122 inline void SetCompositeComponentUpdates(const Aws::Map<Aws::String, CompositeComponentUpdateRequest>& value) { m_compositeComponentUpdatesHasBeenSet = true; m_compositeComponentUpdates = value; }
123 inline void SetCompositeComponentUpdates(Aws::Map<Aws::String, CompositeComponentUpdateRequest>&& value) { m_compositeComponentUpdatesHasBeenSet = true; m_compositeComponentUpdates = std::move(value); }
126 inline UpdateEntityRequest& AddCompositeComponentUpdates(const Aws::String& key, const CompositeComponentUpdateRequest& value) { m_compositeComponentUpdatesHasBeenSet = true; m_compositeComponentUpdates.emplace(key, value); return *this; }
127 inline UpdateEntityRequest& AddCompositeComponentUpdates(Aws::String&& key, const CompositeComponentUpdateRequest& value) { m_compositeComponentUpdatesHasBeenSet = true; m_compositeComponentUpdates.emplace(std::move(key), value); return *this; }
128 inline UpdateEntityRequest& AddCompositeComponentUpdates(const Aws::String& key, CompositeComponentUpdateRequest&& value) { m_compositeComponentUpdatesHasBeenSet = true; m_compositeComponentUpdates.emplace(key, std::move(value)); return *this; }
129 inline UpdateEntityRequest& AddCompositeComponentUpdates(Aws::String&& key, CompositeComponentUpdateRequest&& value) { m_compositeComponentUpdatesHasBeenSet = true; m_compositeComponentUpdates.emplace(std::move(key), std::move(value)); return *this; }
130 inline UpdateEntityRequest& AddCompositeComponentUpdates(const char* key, CompositeComponentUpdateRequest&& value) { m_compositeComponentUpdatesHasBeenSet = true; m_compositeComponentUpdates.emplace(key, std::move(value)); return *this; }
131 inline UpdateEntityRequest& AddCompositeComponentUpdates(const char* key, const CompositeComponentUpdateRequest& value) { m_compositeComponentUpdatesHasBeenSet = true; m_compositeComponentUpdates.emplace(key, value); return *this; }
133
135
138 inline const ParentEntityUpdateRequest& GetParentEntityUpdate() const{ return m_parentEntityUpdate; }
139 inline bool ParentEntityUpdateHasBeenSet() const { return m_parentEntityUpdateHasBeenSet; }
140 inline void SetParentEntityUpdate(const ParentEntityUpdateRequest& value) { m_parentEntityUpdateHasBeenSet = true; m_parentEntityUpdate = value; }
141 inline void SetParentEntityUpdate(ParentEntityUpdateRequest&& value) { m_parentEntityUpdateHasBeenSet = true; m_parentEntityUpdate = std::move(value); }
145 private:
146
147 Aws::String m_workspaceId;
148 bool m_workspaceIdHasBeenSet = false;
149
150 Aws::String m_entityId;
151 bool m_entityIdHasBeenSet = false;
152
153 Aws::String m_entityName;
154 bool m_entityNameHasBeenSet = false;
155
156 Aws::String m_description;
157 bool m_descriptionHasBeenSet = false;
158
160 bool m_componentUpdatesHasBeenSet = false;
161
163 bool m_compositeComponentUpdatesHasBeenSet = false;
164
165 ParentEntityUpdateRequest m_parentEntityUpdate;
166 bool m_parentEntityUpdateHasBeenSet = false;
167 };
168
169} // namespace Model
170} // namespace IoTTwinMaker
171} // namespace Aws
UpdateEntityRequest & WithCompositeComponentUpdates(const Aws::Map< Aws::String, CompositeComponentUpdateRequest > &value)
UpdateEntityRequest & AddComponentUpdates(const Aws::String &key, ComponentUpdateRequest &&value)
UpdateEntityRequest & AddComponentUpdates(const char *key, const ComponentUpdateRequest &value)
UpdateEntityRequest & AddCompositeComponentUpdates(const Aws::String &key, CompositeComponentUpdateRequest &&value)
UpdateEntityRequest & WithParentEntityUpdate(ParentEntityUpdateRequest &&value)
UpdateEntityRequest & WithEntityId(const char *value)
UpdateEntityRequest & WithDescription(Aws::String &&value)
void SetParentEntityUpdate(const ParentEntityUpdateRequest &value)
UpdateEntityRequest & AddComponentUpdates(Aws::String &&key, const ComponentUpdateRequest &value)
virtual const char * GetServiceRequestName() const override
UpdateEntityRequest & AddCompositeComponentUpdates(const char *key, CompositeComponentUpdateRequest &&value)
UpdateEntityRequest & WithComponentUpdates(const Aws::Map< Aws::String, ComponentUpdateRequest > &value)
UpdateEntityRequest & AddCompositeComponentUpdates(const char *key, const CompositeComponentUpdateRequest &value)
UpdateEntityRequest & WithComponentUpdates(Aws::Map< Aws::String, ComponentUpdateRequest > &&value)
UpdateEntityRequest & AddComponentUpdates(const Aws::String &key, const ComponentUpdateRequest &value)
AWS_IOTTWINMAKER_API Aws::String SerializePayload() const override
UpdateEntityRequest & AddComponentUpdates(const char *key, ComponentUpdateRequest &&value)
UpdateEntityRequest & WithEntityName(Aws::String &&value)
UpdateEntityRequest & WithDescription(const char *value)
UpdateEntityRequest & AddCompositeComponentUpdates(const Aws::String &key, const CompositeComponentUpdateRequest &value)
const ParentEntityUpdateRequest & GetParentEntityUpdate() const
UpdateEntityRequest & WithEntityId(Aws::String &&value)
UpdateEntityRequest & AddCompositeComponentUpdates(Aws::String &&key, CompositeComponentUpdateRequest &&value)
const Aws::Map< Aws::String, CompositeComponentUpdateRequest > & GetCompositeComponentUpdates() const
UpdateEntityRequest & WithEntityName(const char *value)
void SetParentEntityUpdate(ParentEntityUpdateRequest &&value)
void SetComponentUpdates(const Aws::Map< Aws::String, ComponentUpdateRequest > &value)
UpdateEntityRequest & WithWorkspaceId(Aws::String &&value)
void SetCompositeComponentUpdates(Aws::Map< Aws::String, CompositeComponentUpdateRequest > &&value)
UpdateEntityRequest & WithEntityName(const Aws::String &value)
const Aws::Map< Aws::String, ComponentUpdateRequest > & GetComponentUpdates() const
UpdateEntityRequest & WithCompositeComponentUpdates(Aws::Map< Aws::String, CompositeComponentUpdateRequest > &&value)
UpdateEntityRequest & WithEntityId(const Aws::String &value)
void SetCompositeComponentUpdates(const Aws::Map< Aws::String, CompositeComponentUpdateRequest > &value)
UpdateEntityRequest & AddCompositeComponentUpdates(Aws::String &&key, const CompositeComponentUpdateRequest &value)
UpdateEntityRequest & WithParentEntityUpdate(const ParentEntityUpdateRequest &value)
UpdateEntityRequest & WithWorkspaceId(const Aws::String &value)
UpdateEntityRequest & AddComponentUpdates(Aws::String &&key, ComponentUpdateRequest &&value)
void SetComponentUpdates(Aws::Map< Aws::String, ComponentUpdateRequest > &&value)
UpdateEntityRequest & WithDescription(const Aws::String &value)
UpdateEntityRequest & WithWorkspaceId(const char *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