AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateAssetModelRequest.h
1
6#pragma once
7#include <aws/iotsitewise/IoTSiteWise_EXPORTS.h>
8#include <aws/iotsitewise/IoTSiteWiseRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/iotsitewise/model/AssetModelVersionType.h>
12#include <aws/iotsitewise/model/AssetModelProperty.h>
13#include <aws/iotsitewise/model/AssetModelHierarchy.h>
14#include <aws/iotsitewise/model/AssetModelCompositeModel.h>
15#include <utility>
16#include <aws/core/utils/UUID.h>
17
18namespace Aws
19{
20namespace IoTSiteWise
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_IOTSITEWISE_API UpdateAssetModelRequest();
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "UpdateAssetModel"; }
37
38 AWS_IOTSITEWISE_API Aws::String SerializePayload() const override;
39
40 AWS_IOTSITEWISE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
41
42
44
51 inline const Aws::String& GetAssetModelId() const{ return m_assetModelId; }
52 inline bool AssetModelIdHasBeenSet() const { return m_assetModelIdHasBeenSet; }
53 inline void SetAssetModelId(const Aws::String& value) { m_assetModelIdHasBeenSet = true; m_assetModelId = value; }
54 inline void SetAssetModelId(Aws::String&& value) { m_assetModelIdHasBeenSet = true; m_assetModelId = std::move(value); }
55 inline void SetAssetModelId(const char* value) { m_assetModelIdHasBeenSet = true; m_assetModelId.assign(value); }
56 inline UpdateAssetModelRequest& WithAssetModelId(const Aws::String& value) { SetAssetModelId(value); return *this;}
57 inline UpdateAssetModelRequest& WithAssetModelId(Aws::String&& value) { SetAssetModelId(std::move(value)); return *this;}
58 inline UpdateAssetModelRequest& WithAssetModelId(const char* value) { SetAssetModelId(value); return *this;}
60
62
69 inline const Aws::String& GetAssetModelExternalId() const{ return m_assetModelExternalId; }
70 inline bool AssetModelExternalIdHasBeenSet() const { return m_assetModelExternalIdHasBeenSet; }
71 inline void SetAssetModelExternalId(const Aws::String& value) { m_assetModelExternalIdHasBeenSet = true; m_assetModelExternalId = value; }
72 inline void SetAssetModelExternalId(Aws::String&& value) { m_assetModelExternalIdHasBeenSet = true; m_assetModelExternalId = std::move(value); }
73 inline void SetAssetModelExternalId(const char* value) { m_assetModelExternalIdHasBeenSet = true; m_assetModelExternalId.assign(value); }
75 inline UpdateAssetModelRequest& WithAssetModelExternalId(Aws::String&& value) { SetAssetModelExternalId(std::move(value)); return *this;}
76 inline UpdateAssetModelRequest& WithAssetModelExternalId(const char* value) { SetAssetModelExternalId(value); return *this;}
78
80
83 inline const Aws::String& GetAssetModelName() const{ return m_assetModelName; }
84 inline bool AssetModelNameHasBeenSet() const { return m_assetModelNameHasBeenSet; }
85 inline void SetAssetModelName(const Aws::String& value) { m_assetModelNameHasBeenSet = true; m_assetModelName = value; }
86 inline void SetAssetModelName(Aws::String&& value) { m_assetModelNameHasBeenSet = true; m_assetModelName = std::move(value); }
87 inline void SetAssetModelName(const char* value) { m_assetModelNameHasBeenSet = true; m_assetModelName.assign(value); }
88 inline UpdateAssetModelRequest& WithAssetModelName(const Aws::String& value) { SetAssetModelName(value); return *this;}
89 inline UpdateAssetModelRequest& WithAssetModelName(Aws::String&& value) { SetAssetModelName(std::move(value)); return *this;}
90 inline UpdateAssetModelRequest& WithAssetModelName(const char* value) { SetAssetModelName(value); return *this;}
92
94
97 inline const Aws::String& GetAssetModelDescription() const{ return m_assetModelDescription; }
98 inline bool AssetModelDescriptionHasBeenSet() const { return m_assetModelDescriptionHasBeenSet; }
99 inline void SetAssetModelDescription(const Aws::String& value) { m_assetModelDescriptionHasBeenSet = true; m_assetModelDescription = value; }
100 inline void SetAssetModelDescription(Aws::String&& value) { m_assetModelDescriptionHasBeenSet = true; m_assetModelDescription = std::move(value); }
101 inline void SetAssetModelDescription(const char* value) { m_assetModelDescriptionHasBeenSet = true; m_assetModelDescription.assign(value); }
104 inline UpdateAssetModelRequest& WithAssetModelDescription(const char* value) { SetAssetModelDescription(value); return *this;}
106
108
117 inline const Aws::Vector<AssetModelProperty>& GetAssetModelProperties() const{ return m_assetModelProperties; }
118 inline bool AssetModelPropertiesHasBeenSet() const { return m_assetModelPropertiesHasBeenSet; }
119 inline void SetAssetModelProperties(const Aws::Vector<AssetModelProperty>& value) { m_assetModelPropertiesHasBeenSet = true; m_assetModelProperties = value; }
120 inline void SetAssetModelProperties(Aws::Vector<AssetModelProperty>&& value) { m_assetModelPropertiesHasBeenSet = true; m_assetModelProperties = std::move(value); }
123 inline UpdateAssetModelRequest& AddAssetModelProperties(const AssetModelProperty& value) { m_assetModelPropertiesHasBeenSet = true; m_assetModelProperties.push_back(value); return *this; }
124 inline UpdateAssetModelRequest& AddAssetModelProperties(AssetModelProperty&& value) { m_assetModelPropertiesHasBeenSet = true; m_assetModelProperties.push_back(std::move(value)); return *this; }
126
128
138 inline const Aws::Vector<AssetModelHierarchy>& GetAssetModelHierarchies() const{ return m_assetModelHierarchies; }
139 inline bool AssetModelHierarchiesHasBeenSet() const { return m_assetModelHierarchiesHasBeenSet; }
140 inline void SetAssetModelHierarchies(const Aws::Vector<AssetModelHierarchy>& value) { m_assetModelHierarchiesHasBeenSet = true; m_assetModelHierarchies = value; }
141 inline void SetAssetModelHierarchies(Aws::Vector<AssetModelHierarchy>&& value) { m_assetModelHierarchiesHasBeenSet = true; m_assetModelHierarchies = std::move(value); }
144 inline UpdateAssetModelRequest& AddAssetModelHierarchies(const AssetModelHierarchy& value) { m_assetModelHierarchiesHasBeenSet = true; m_assetModelHierarchies.push_back(value); return *this; }
145 inline UpdateAssetModelRequest& AddAssetModelHierarchies(AssetModelHierarchy&& value) { m_assetModelHierarchiesHasBeenSet = true; m_assetModelHierarchies.push_back(std::move(value)); return *this; }
147
149
162 inline const Aws::Vector<AssetModelCompositeModel>& GetAssetModelCompositeModels() const{ return m_assetModelCompositeModels; }
163 inline bool AssetModelCompositeModelsHasBeenSet() const { return m_assetModelCompositeModelsHasBeenSet; }
164 inline void SetAssetModelCompositeModels(const Aws::Vector<AssetModelCompositeModel>& value) { m_assetModelCompositeModelsHasBeenSet = true; m_assetModelCompositeModels = value; }
165 inline void SetAssetModelCompositeModels(Aws::Vector<AssetModelCompositeModel>&& value) { m_assetModelCompositeModelsHasBeenSet = true; m_assetModelCompositeModels = std::move(value); }
168 inline UpdateAssetModelRequest& AddAssetModelCompositeModels(const AssetModelCompositeModel& value) { m_assetModelCompositeModelsHasBeenSet = true; m_assetModelCompositeModels.push_back(value); return *this; }
169 inline UpdateAssetModelRequest& AddAssetModelCompositeModels(AssetModelCompositeModel&& value) { m_assetModelCompositeModelsHasBeenSet = true; m_assetModelCompositeModels.push_back(std::move(value)); return *this; }
171
173
178 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
179 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
180 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
181 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
182 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
183 inline UpdateAssetModelRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
184 inline UpdateAssetModelRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
185 inline UpdateAssetModelRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
187
189
197 inline const Aws::String& GetIfMatch() const{ return m_ifMatch; }
198 inline bool IfMatchHasBeenSet() const { return m_ifMatchHasBeenSet; }
199 inline void SetIfMatch(const Aws::String& value) { m_ifMatchHasBeenSet = true; m_ifMatch = value; }
200 inline void SetIfMatch(Aws::String&& value) { m_ifMatchHasBeenSet = true; m_ifMatch = std::move(value); }
201 inline void SetIfMatch(const char* value) { m_ifMatchHasBeenSet = true; m_ifMatch.assign(value); }
202 inline UpdateAssetModelRequest& WithIfMatch(const Aws::String& value) { SetIfMatch(value); return *this;}
203 inline UpdateAssetModelRequest& WithIfMatch(Aws::String&& value) { SetIfMatch(std::move(value)); return *this;}
204 inline UpdateAssetModelRequest& WithIfMatch(const char* value) { SetIfMatch(value); return *this;}
206
208
213 inline const Aws::String& GetIfNoneMatch() const{ return m_ifNoneMatch; }
214 inline bool IfNoneMatchHasBeenSet() const { return m_ifNoneMatchHasBeenSet; }
215 inline void SetIfNoneMatch(const Aws::String& value) { m_ifNoneMatchHasBeenSet = true; m_ifNoneMatch = value; }
216 inline void SetIfNoneMatch(Aws::String&& value) { m_ifNoneMatchHasBeenSet = true; m_ifNoneMatch = std::move(value); }
217 inline void SetIfNoneMatch(const char* value) { m_ifNoneMatchHasBeenSet = true; m_ifNoneMatch.assign(value); }
218 inline UpdateAssetModelRequest& WithIfNoneMatch(const Aws::String& value) { SetIfNoneMatch(value); return *this;}
219 inline UpdateAssetModelRequest& WithIfNoneMatch(Aws::String&& value) { SetIfNoneMatch(std::move(value)); return *this;}
220 inline UpdateAssetModelRequest& WithIfNoneMatch(const char* value) { SetIfNoneMatch(value); return *this;}
222
224
230 inline const AssetModelVersionType& GetMatchForVersionType() const{ return m_matchForVersionType; }
231 inline bool MatchForVersionTypeHasBeenSet() const { return m_matchForVersionTypeHasBeenSet; }
232 inline void SetMatchForVersionType(const AssetModelVersionType& value) { m_matchForVersionTypeHasBeenSet = true; m_matchForVersionType = value; }
233 inline void SetMatchForVersionType(AssetModelVersionType&& value) { m_matchForVersionTypeHasBeenSet = true; m_matchForVersionType = std::move(value); }
237 private:
238
239 Aws::String m_assetModelId;
240 bool m_assetModelIdHasBeenSet = false;
241
242 Aws::String m_assetModelExternalId;
243 bool m_assetModelExternalIdHasBeenSet = false;
244
245 Aws::String m_assetModelName;
246 bool m_assetModelNameHasBeenSet = false;
247
248 Aws::String m_assetModelDescription;
249 bool m_assetModelDescriptionHasBeenSet = false;
250
251 Aws::Vector<AssetModelProperty> m_assetModelProperties;
252 bool m_assetModelPropertiesHasBeenSet = false;
253
254 Aws::Vector<AssetModelHierarchy> m_assetModelHierarchies;
255 bool m_assetModelHierarchiesHasBeenSet = false;
256
257 Aws::Vector<AssetModelCompositeModel> m_assetModelCompositeModels;
258 bool m_assetModelCompositeModelsHasBeenSet = false;
259
260 Aws::String m_clientToken;
261 bool m_clientTokenHasBeenSet = false;
262
263 Aws::String m_ifMatch;
264 bool m_ifMatchHasBeenSet = false;
265
266 Aws::String m_ifNoneMatch;
267 bool m_ifNoneMatchHasBeenSet = false;
268
269 AssetModelVersionType m_matchForVersionType;
270 bool m_matchForVersionTypeHasBeenSet = false;
271 };
272
273} // namespace Model
274} // namespace IoTSiteWise
275} // namespace Aws
UpdateAssetModelRequest & WithAssetModelDescription(const Aws::String &value)
UpdateAssetModelRequest & WithAssetModelId(Aws::String &&value)
UpdateAssetModelRequest & WithAssetModelProperties(const Aws::Vector< AssetModelProperty > &value)
UpdateAssetModelRequest & WithAssetModelName(const char *value)
void SetAssetModelHierarchies(const Aws::Vector< AssetModelHierarchy > &value)
UpdateAssetModelRequest & WithIfMatch(Aws::String &&value)
void SetMatchForVersionType(const AssetModelVersionType &value)
UpdateAssetModelRequest & WithIfNoneMatch(const Aws::String &value)
UpdateAssetModelRequest & WithAssetModelHierarchies(const Aws::Vector< AssetModelHierarchy > &value)
virtual const char * GetServiceRequestName() const override
const AssetModelVersionType & GetMatchForVersionType() const
UpdateAssetModelRequest & WithAssetModelHierarchies(Aws::Vector< AssetModelHierarchy > &&value)
void SetAssetModelCompositeModels(const Aws::Vector< AssetModelCompositeModel > &value)
UpdateAssetModelRequest & WithAssetModelDescription(Aws::String &&value)
const Aws::Vector< AssetModelProperty > & GetAssetModelProperties() const
UpdateAssetModelRequest & WithClientToken(const char *value)
void SetAssetModelHierarchies(Aws::Vector< AssetModelHierarchy > &&value)
void SetMatchForVersionType(AssetModelVersionType &&value)
UpdateAssetModelRequest & WithIfMatch(const Aws::String &value)
UpdateAssetModelRequest & WithIfNoneMatch(Aws::String &&value)
UpdateAssetModelRequest & WithMatchForVersionType(const AssetModelVersionType &value)
void SetAssetModelProperties(Aws::Vector< AssetModelProperty > &&value)
UpdateAssetModelRequest & AddAssetModelProperties(const AssetModelProperty &value)
UpdateAssetModelRequest & AddAssetModelHierarchies(const AssetModelHierarchy &value)
UpdateAssetModelRequest & WithIfNoneMatch(const char *value)
UpdateAssetModelRequest & WithAssetModelName(const Aws::String &value)
UpdateAssetModelRequest & AddAssetModelCompositeModels(AssetModelCompositeModel &&value)
void SetAssetModelCompositeModels(Aws::Vector< AssetModelCompositeModel > &&value)
UpdateAssetModelRequest & WithAssetModelExternalId(const char *value)
UpdateAssetModelRequest & WithIfMatch(const char *value)
UpdateAssetModelRequest & AddAssetModelCompositeModels(const AssetModelCompositeModel &value)
UpdateAssetModelRequest & WithClientToken(Aws::String &&value)
UpdateAssetModelRequest & WithAssetModelId(const Aws::String &value)
void SetAssetModelProperties(const Aws::Vector< AssetModelProperty > &value)
const Aws::Vector< AssetModelHierarchy > & GetAssetModelHierarchies() const
UpdateAssetModelRequest & WithMatchForVersionType(AssetModelVersionType &&value)
UpdateAssetModelRequest & WithAssetModelCompositeModels(Aws::Vector< AssetModelCompositeModel > &&value)
UpdateAssetModelRequest & WithAssetModelId(const char *value)
UpdateAssetModelRequest & WithAssetModelDescription(const char *value)
const Aws::Vector< AssetModelCompositeModel > & GetAssetModelCompositeModels() const
UpdateAssetModelRequest & AddAssetModelProperties(AssetModelProperty &&value)
AWS_IOTSITEWISE_API Aws::String SerializePayload() const override
UpdateAssetModelRequest & WithAssetModelName(Aws::String &&value)
UpdateAssetModelRequest & AddAssetModelHierarchies(AssetModelHierarchy &&value)
UpdateAssetModelRequest & WithAssetModelProperties(Aws::Vector< AssetModelProperty > &&value)
UpdateAssetModelRequest & WithAssetModelCompositeModels(const Aws::Vector< AssetModelCompositeModel > &value)
AWS_IOTSITEWISE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateAssetModelRequest & WithAssetModelExternalId(const Aws::String &value)
UpdateAssetModelRequest & WithAssetModelExternalId(Aws::String &&value)
UpdateAssetModelRequest & WithClientToken(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector