AWS SDK for C++  1.9.126
AWS SDK for C++
UpdateAssetModelRequest.h
Go to the documentation of this file.
1 
6 #pragma once
14 #include <utility>
15 #include <aws/core/utils/UUID.h>
16 
17 namespace Aws
18 {
19 namespace IoTSiteWise
20 {
21 namespace Model
22 {
23 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "UpdateAssetModel"; }
36 
37  Aws::String SerializePayload() const override;
38 
39 
43  inline const Aws::String& GetAssetModelId() const{ return m_assetModelId; }
44 
48  inline bool AssetModelIdHasBeenSet() const { return m_assetModelIdHasBeenSet; }
49 
53  inline void SetAssetModelId(const Aws::String& value) { m_assetModelIdHasBeenSet = true; m_assetModelId = value; }
54 
58  inline void SetAssetModelId(Aws::String&& value) { m_assetModelIdHasBeenSet = true; m_assetModelId = std::move(value); }
59 
63  inline void SetAssetModelId(const char* value) { m_assetModelIdHasBeenSet = true; m_assetModelId.assign(value); }
64 
68  inline UpdateAssetModelRequest& WithAssetModelId(const Aws::String& value) { SetAssetModelId(value); return *this;}
69 
73  inline UpdateAssetModelRequest& WithAssetModelId(Aws::String&& value) { SetAssetModelId(std::move(value)); return *this;}
74 
78  inline UpdateAssetModelRequest& WithAssetModelId(const char* value) { SetAssetModelId(value); return *this;}
79 
80 
84  inline const Aws::String& GetAssetModelName() const{ return m_assetModelName; }
85 
89  inline bool AssetModelNameHasBeenSet() const { return m_assetModelNameHasBeenSet; }
90 
94  inline void SetAssetModelName(const Aws::String& value) { m_assetModelNameHasBeenSet = true; m_assetModelName = value; }
95 
99  inline void SetAssetModelName(Aws::String&& value) { m_assetModelNameHasBeenSet = true; m_assetModelName = std::move(value); }
100 
104  inline void SetAssetModelName(const char* value) { m_assetModelNameHasBeenSet = true; m_assetModelName.assign(value); }
105 
109  inline UpdateAssetModelRequest& WithAssetModelName(const Aws::String& value) { SetAssetModelName(value); return *this;}
110 
114  inline UpdateAssetModelRequest& WithAssetModelName(Aws::String&& value) { SetAssetModelName(std::move(value)); return *this;}
115 
119  inline UpdateAssetModelRequest& WithAssetModelName(const char* value) { SetAssetModelName(value); return *this;}
120 
121 
125  inline const Aws::String& GetAssetModelDescription() const{ return m_assetModelDescription; }
126 
130  inline bool AssetModelDescriptionHasBeenSet() const { return m_assetModelDescriptionHasBeenSet; }
131 
135  inline void SetAssetModelDescription(const Aws::String& value) { m_assetModelDescriptionHasBeenSet = true; m_assetModelDescription = value; }
136 
140  inline void SetAssetModelDescription(Aws::String&& value) { m_assetModelDescriptionHasBeenSet = true; m_assetModelDescription = std::move(value); }
141 
145  inline void SetAssetModelDescription(const char* value) { m_assetModelDescriptionHasBeenSet = true; m_assetModelDescription.assign(value); }
146 
150  inline UpdateAssetModelRequest& WithAssetModelDescription(const Aws::String& value) { SetAssetModelDescription(value); return *this;}
151 
155  inline UpdateAssetModelRequest& WithAssetModelDescription(Aws::String&& value) { SetAssetModelDescription(std::move(value)); return *this;}
156 
160  inline UpdateAssetModelRequest& WithAssetModelDescription(const char* value) { SetAssetModelDescription(value); return *this;}
161 
162 
172  inline const Aws::Vector<AssetModelProperty>& GetAssetModelProperties() const{ return m_assetModelProperties; }
173 
183  inline bool AssetModelPropertiesHasBeenSet() const { return m_assetModelPropertiesHasBeenSet; }
184 
194  inline void SetAssetModelProperties(const Aws::Vector<AssetModelProperty>& value) { m_assetModelPropertiesHasBeenSet = true; m_assetModelProperties = value; }
195 
205  inline void SetAssetModelProperties(Aws::Vector<AssetModelProperty>&& value) { m_assetModelPropertiesHasBeenSet = true; m_assetModelProperties = std::move(value); }
206 
216  inline UpdateAssetModelRequest& WithAssetModelProperties(const Aws::Vector<AssetModelProperty>& value) { SetAssetModelProperties(value); return *this;}
217 
227  inline UpdateAssetModelRequest& WithAssetModelProperties(Aws::Vector<AssetModelProperty>&& value) { SetAssetModelProperties(std::move(value)); return *this;}
228 
238  inline UpdateAssetModelRequest& AddAssetModelProperties(const AssetModelProperty& value) { m_assetModelPropertiesHasBeenSet = true; m_assetModelProperties.push_back(value); return *this; }
239 
249  inline UpdateAssetModelRequest& AddAssetModelProperties(AssetModelProperty&& value) { m_assetModelPropertiesHasBeenSet = true; m_assetModelProperties.push_back(std::move(value)); return *this; }
250 
251 
262  inline const Aws::Vector<AssetModelHierarchy>& GetAssetModelHierarchies() const{ return m_assetModelHierarchies; }
263 
274  inline bool AssetModelHierarchiesHasBeenSet() const { return m_assetModelHierarchiesHasBeenSet; }
275 
286  inline void SetAssetModelHierarchies(const Aws::Vector<AssetModelHierarchy>& value) { m_assetModelHierarchiesHasBeenSet = true; m_assetModelHierarchies = value; }
287 
298  inline void SetAssetModelHierarchies(Aws::Vector<AssetModelHierarchy>&& value) { m_assetModelHierarchiesHasBeenSet = true; m_assetModelHierarchies = std::move(value); }
299 
310  inline UpdateAssetModelRequest& WithAssetModelHierarchies(const Aws::Vector<AssetModelHierarchy>& value) { SetAssetModelHierarchies(value); return *this;}
311 
322  inline UpdateAssetModelRequest& WithAssetModelHierarchies(Aws::Vector<AssetModelHierarchy>&& value) { SetAssetModelHierarchies(std::move(value)); return *this;}
323 
334  inline UpdateAssetModelRequest& AddAssetModelHierarchies(const AssetModelHierarchy& value) { m_assetModelHierarchiesHasBeenSet = true; m_assetModelHierarchies.push_back(value); return *this; }
335 
346  inline UpdateAssetModelRequest& AddAssetModelHierarchies(AssetModelHierarchy&& value) { m_assetModelHierarchiesHasBeenSet = true; m_assetModelHierarchies.push_back(std::move(value)); return *this; }
347 
348 
355  inline const Aws::Vector<AssetModelCompositeModel>& GetAssetModelCompositeModels() const{ return m_assetModelCompositeModels; }
356 
363  inline bool AssetModelCompositeModelsHasBeenSet() const { return m_assetModelCompositeModelsHasBeenSet; }
364 
371  inline void SetAssetModelCompositeModels(const Aws::Vector<AssetModelCompositeModel>& value) { m_assetModelCompositeModelsHasBeenSet = true; m_assetModelCompositeModels = value; }
372 
379  inline void SetAssetModelCompositeModels(Aws::Vector<AssetModelCompositeModel>&& value) { m_assetModelCompositeModelsHasBeenSet = true; m_assetModelCompositeModels = std::move(value); }
380 
387  inline UpdateAssetModelRequest& WithAssetModelCompositeModels(const Aws::Vector<AssetModelCompositeModel>& value) { SetAssetModelCompositeModels(value); return *this;}
388 
395  inline UpdateAssetModelRequest& WithAssetModelCompositeModels(Aws::Vector<AssetModelCompositeModel>&& value) { SetAssetModelCompositeModels(std::move(value)); return *this;}
396 
403  inline UpdateAssetModelRequest& AddAssetModelCompositeModels(const AssetModelCompositeModel& value) { m_assetModelCompositeModelsHasBeenSet = true; m_assetModelCompositeModels.push_back(value); return *this; }
404 
411  inline UpdateAssetModelRequest& AddAssetModelCompositeModels(AssetModelCompositeModel&& value) { m_assetModelCompositeModelsHasBeenSet = true; m_assetModelCompositeModels.push_back(std::move(value)); return *this; }
412 
413 
419  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
420 
426  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
427 
433  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
434 
440  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
441 
447  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
448 
454  inline UpdateAssetModelRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
455 
461  inline UpdateAssetModelRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
462 
468  inline UpdateAssetModelRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
469 
470  private:
471 
472  Aws::String m_assetModelId;
473  bool m_assetModelIdHasBeenSet;
474 
475  Aws::String m_assetModelName;
476  bool m_assetModelNameHasBeenSet;
477 
478  Aws::String m_assetModelDescription;
479  bool m_assetModelDescriptionHasBeenSet;
480 
481  Aws::Vector<AssetModelProperty> m_assetModelProperties;
482  bool m_assetModelPropertiesHasBeenSet;
483 
484  Aws::Vector<AssetModelHierarchy> m_assetModelHierarchies;
485  bool m_assetModelHierarchiesHasBeenSet;
486 
487  Aws::Vector<AssetModelCompositeModel> m_assetModelCompositeModels;
488  bool m_assetModelCompositeModelsHasBeenSet;
489 
490  Aws::String m_clientToken;
491  bool m_clientTokenHasBeenSet;
492  };
493 
494 } // namespace Model
495 } // namespace IoTSiteWise
496 } // namespace Aws
Aws::IoTSiteWise::Model::UpdateAssetModelRequest::SetAssetModelName
void SetAssetModelName(Aws::String &&value)
Definition: UpdateAssetModelRequest.h:99
Aws::IoTSiteWise::Model::UpdateAssetModelRequest::WithAssetModelName
UpdateAssetModelRequest & WithAssetModelName(const char *value)
Definition: UpdateAssetModelRequest.h:119
Aws::IoTSiteWise::Model::UpdateAssetModelRequest::WithClientToken
UpdateAssetModelRequest & WithClientToken(Aws::String &&value)
Definition: UpdateAssetModelRequest.h:461
Aws::IoTSiteWise::Model::UpdateAssetModelRequest::GetAssetModelName
const Aws::String & GetAssetModelName() const
Definition: UpdateAssetModelRequest.h:84
Aws::IoTSiteWise::Model::UpdateAssetModelRequest::GetAssetModelProperties
const Aws::Vector< AssetModelProperty > & GetAssetModelProperties() const
Definition: UpdateAssetModelRequest.h:172
Aws::IoTSiteWise::Model::AssetModelProperty
Definition: AssetModelProperty.h:35
Aws::IoTSiteWise::Model::UpdateAssetModelRequest::SetAssetModelDescription
void SetAssetModelDescription(const char *value)
Definition: UpdateAssetModelRequest.h:145
Aws::IoTSiteWise::Model::UpdateAssetModelRequest::SetAssetModelHierarchies
void SetAssetModelHierarchies(Aws::Vector< AssetModelHierarchy > &&value)
Definition: UpdateAssetModelRequest.h:298
Aws::IoTSiteWise::Model::UpdateAssetModelRequest::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: UpdateAssetModelRequest.h:440
Aws::IoTSiteWise::Model::UpdateAssetModelRequest::AddAssetModelCompositeModels
UpdateAssetModelRequest & AddAssetModelCompositeModels(AssetModelCompositeModel &&value)
Definition: UpdateAssetModelRequest.h:411
Aws::IoTSiteWise::Model::UpdateAssetModelRequest::SetAssetModelName
void SetAssetModelName(const char *value)
Definition: UpdateAssetModelRequest.h:104
Aws::IoTSiteWise::Model::UpdateAssetModelRequest::WithAssetModelHierarchies
UpdateAssetModelRequest & WithAssetModelHierarchies(const Aws::Vector< AssetModelHierarchy > &value)
Definition: UpdateAssetModelRequest.h:310
IoTSiteWise_EXPORTS.h
Aws::IoTSiteWise::Model::UpdateAssetModelRequest::ClientTokenHasBeenSet
bool ClientTokenHasBeenSet() const
Definition: UpdateAssetModelRequest.h:426
Aws::IoTSiteWise::Model::UpdateAssetModelRequest::WithClientToken
UpdateAssetModelRequest & WithClientToken(const char *value)
Definition: UpdateAssetModelRequest.h:468
AWS_IOTSITEWISE_API
#define AWS_IOTSITEWISE_API
Definition: IoTSiteWise_EXPORTS.h:28
Aws::IoTSiteWise::Model::UpdateAssetModelRequest::SetAssetModelId
void SetAssetModelId(const char *value)
Definition: UpdateAssetModelRequest.h:63
Aws::IoTSiteWise::Model::UpdateAssetModelRequest::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: UpdateAssetModelRequest.h:433
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::IoTSiteWise::Model::UpdateAssetModelRequest::SetAssetModelCompositeModels
void SetAssetModelCompositeModels(const Aws::Vector< AssetModelCompositeModel > &value)
Definition: UpdateAssetModelRequest.h:371
Aws::IoTSiteWise::Model::UpdateAssetModelRequest::WithAssetModelId
UpdateAssetModelRequest & WithAssetModelId(const char *value)
Definition: UpdateAssetModelRequest.h:78
Aws::IoTSiteWise::Model::UpdateAssetModelRequest::SetAssetModelId
void SetAssetModelId(Aws::String &&value)
Definition: UpdateAssetModelRequest.h:58
AWSVector.h
Aws::IoTSiteWise::Model::UpdateAssetModelRequest::AssetModelIdHasBeenSet
bool AssetModelIdHasBeenSet() const
Definition: UpdateAssetModelRequest.h:48
Aws::IoTSiteWise::Model::UpdateAssetModelRequest::WithAssetModelName
UpdateAssetModelRequest & WithAssetModelName(Aws::String &&value)
Definition: UpdateAssetModelRequest.h:114
Aws::IoTSiteWise::Model::UpdateAssetModelRequest::SetAssetModelHierarchies
void SetAssetModelHierarchies(const Aws::Vector< AssetModelHierarchy > &value)
Definition: UpdateAssetModelRequest.h:286
Aws::IoTSiteWise::Model::UpdateAssetModelRequest::AddAssetModelCompositeModels
UpdateAssetModelRequest & AddAssetModelCompositeModels(const AssetModelCompositeModel &value)
Definition: UpdateAssetModelRequest.h:403
Aws::IoTSiteWise::Model::UpdateAssetModelRequest::AssetModelDescriptionHasBeenSet
bool AssetModelDescriptionHasBeenSet() const
Definition: UpdateAssetModelRequest.h:130
Aws::IoTSiteWise::Model::UpdateAssetModelRequest::SetAssetModelDescription
void SetAssetModelDescription(Aws::String &&value)
Definition: UpdateAssetModelRequest.h:140
Aws::IoTSiteWise::Model::UpdateAssetModelRequest::GetAssetModelCompositeModels
const Aws::Vector< AssetModelCompositeModel > & GetAssetModelCompositeModels() const
Definition: UpdateAssetModelRequest.h:355
Aws::IoTSiteWise::Model::UpdateAssetModelRequest::WithAssetModelId
UpdateAssetModelRequest & WithAssetModelId(Aws::String &&value)
Definition: UpdateAssetModelRequest.h:73
Aws::IoTSiteWise::Model::UpdateAssetModelRequest::AssetModelPropertiesHasBeenSet
bool AssetModelPropertiesHasBeenSet() const
Definition: UpdateAssetModelRequest.h:183
AssetModelHierarchy.h
Aws::IoTSiteWise::Model::UpdateAssetModelRequest::SetClientToken
void SetClientToken(const char *value)
Definition: UpdateAssetModelRequest.h:447
Aws::IoTSiteWise::Model::UpdateAssetModelRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateAssetModelRequest.h:35
Aws::IoTSiteWise::Model::UpdateAssetModelRequest::AddAssetModelProperties
UpdateAssetModelRequest & AddAssetModelProperties(AssetModelProperty &&value)
Definition: UpdateAssetModelRequest.h:249
Aws::IoTSiteWise::Model::UpdateAssetModelRequest::AddAssetModelHierarchies
UpdateAssetModelRequest & AddAssetModelHierarchies(AssetModelHierarchy &&value)
Definition: UpdateAssetModelRequest.h:346
Aws::IoTSiteWise::Model::UpdateAssetModelRequest::AssetModelCompositeModelsHasBeenSet
bool AssetModelCompositeModelsHasBeenSet() const
Definition: UpdateAssetModelRequest.h:363
Aws::IoTSiteWise::Model::UpdateAssetModelRequest::GetAssetModelDescription
const Aws::String & GetAssetModelDescription() const
Definition: UpdateAssetModelRequest.h:125
Aws::IoTSiteWise::Model::UpdateAssetModelRequest::GetAssetModelId
const Aws::String & GetAssetModelId() const
Definition: UpdateAssetModelRequest.h:43
Aws::IoTSiteWise::Model::UpdateAssetModelRequest::WithAssetModelDescription
UpdateAssetModelRequest & WithAssetModelDescription(const Aws::String &value)
Definition: UpdateAssetModelRequest.h:150
Aws::IoTSiteWise::Model::UpdateAssetModelRequest::AssetModelNameHasBeenSet
bool AssetModelNameHasBeenSet() const
Definition: UpdateAssetModelRequest.h:89
Aws::IoTSiteWise::Model::UpdateAssetModelRequest::SetAssetModelProperties
void SetAssetModelProperties(const Aws::Vector< AssetModelProperty > &value)
Definition: UpdateAssetModelRequest.h:194
Aws::IoTSiteWise::Model::UpdateAssetModelRequest::WithAssetModelProperties
UpdateAssetModelRequest & WithAssetModelProperties(const Aws::Vector< AssetModelProperty > &value)
Definition: UpdateAssetModelRequest.h:216
AWSString.h
Aws::IoTSiteWise::Model::UpdateAssetModelRequest::SetAssetModelProperties
void SetAssetModelProperties(Aws::Vector< AssetModelProperty > &&value)
Definition: UpdateAssetModelRequest.h:205
Aws::IoTSiteWise::Model::UpdateAssetModelRequest::WithAssetModelHierarchies
UpdateAssetModelRequest & WithAssetModelHierarchies(Aws::Vector< AssetModelHierarchy > &&value)
Definition: UpdateAssetModelRequest.h:322
Aws::IoTSiteWise::Model::UpdateAssetModelRequest::SetAssetModelId
void SetAssetModelId(const Aws::String &value)
Definition: UpdateAssetModelRequest.h:53
Aws::IoTSiteWise::Model::UpdateAssetModelRequest::UpdateAssetModelRequest
UpdateAssetModelRequest()
Aws::IoTSiteWise::Model::UpdateAssetModelRequest::GetClientToken
const Aws::String & GetClientToken() const
Definition: UpdateAssetModelRequest.h:419
Aws::IoTSiteWise::Model::AssetModelCompositeModel
Definition: AssetModelCompositeModel.h:36
Aws::IoTSiteWise::Model::UpdateAssetModelRequest::SetAssetModelName
void SetAssetModelName(const Aws::String &value)
Definition: UpdateAssetModelRequest.h:94
Aws::IoTSiteWise::Model::AssetModelHierarchy
Definition: AssetModelHierarchy.h:34
AssetModelCompositeModel.h
Aws::IoTSiteWise::Model::UpdateAssetModelRequest
Definition: UpdateAssetModelRequest.h:27
Aws::IoTSiteWise::Model::UpdateAssetModelRequest::AddAssetModelHierarchies
UpdateAssetModelRequest & AddAssetModelHierarchies(const AssetModelHierarchy &value)
Definition: UpdateAssetModelRequest.h:334
Aws::IoTSiteWise::Model::UpdateAssetModelRequest::WithAssetModelDescription
UpdateAssetModelRequest & WithAssetModelDescription(const char *value)
Definition: UpdateAssetModelRequest.h:160
Aws::IoTSiteWise::Model::UpdateAssetModelRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoTSiteWise::Model::UpdateAssetModelRequest::WithAssetModelId
UpdateAssetModelRequest & WithAssetModelId(const Aws::String &value)
Definition: UpdateAssetModelRequest.h:68
Aws
Definition: AccessManagementClient.h:15
IoTSiteWiseRequest.h
Aws::IoTSiteWise::Model::UpdateAssetModelRequest::WithClientToken
UpdateAssetModelRequest & WithClientToken(const Aws::String &value)
Definition: UpdateAssetModelRequest.h:454
AssetModelProperty.h
Aws::IoTSiteWise::Model::UpdateAssetModelRequest::WithAssetModelProperties
UpdateAssetModelRequest & WithAssetModelProperties(Aws::Vector< AssetModelProperty > &&value)
Definition: UpdateAssetModelRequest.h:227
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoTSiteWise::Model::UpdateAssetModelRequest::GetAssetModelHierarchies
const Aws::Vector< AssetModelHierarchy > & GetAssetModelHierarchies() const
Definition: UpdateAssetModelRequest.h:262
Aws::IoTSiteWise::Model::UpdateAssetModelRequest::AddAssetModelProperties
UpdateAssetModelRequest & AddAssetModelProperties(const AssetModelProperty &value)
Definition: UpdateAssetModelRequest.h:238
Aws::IoTSiteWise::Model::UpdateAssetModelRequest::SetAssetModelDescription
void SetAssetModelDescription(const Aws::String &value)
Definition: UpdateAssetModelRequest.h:135
Aws::IoTSiteWise::Model::UpdateAssetModelRequest::WithAssetModelName
UpdateAssetModelRequest & WithAssetModelName(const Aws::String &value)
Definition: UpdateAssetModelRequest.h:109
Aws::IoTSiteWise::Model::UpdateAssetModelRequest::SetAssetModelCompositeModels
void SetAssetModelCompositeModels(Aws::Vector< AssetModelCompositeModel > &&value)
Definition: UpdateAssetModelRequest.h:379
Aws::IoTSiteWise::IoTSiteWiseRequest
Definition: IoTSiteWiseRequest.h:17
Aws::IoTSiteWise::Model::UpdateAssetModelRequest::WithAssetModelCompositeModels
UpdateAssetModelRequest & WithAssetModelCompositeModels(Aws::Vector< AssetModelCompositeModel > &&value)
Definition: UpdateAssetModelRequest.h:395
UUID.h
Aws::IoTSiteWise::Model::UpdateAssetModelRequest::WithAssetModelDescription
UpdateAssetModelRequest & WithAssetModelDescription(Aws::String &&value)
Definition: UpdateAssetModelRequest.h:155
Aws::IoTSiteWise::Model::UpdateAssetModelRequest::WithAssetModelCompositeModels
UpdateAssetModelRequest & WithAssetModelCompositeModels(const Aws::Vector< AssetModelCompositeModel > &value)
Definition: UpdateAssetModelRequest.h:387
Aws::IoTSiteWise::Model::UpdateAssetModelRequest::AssetModelHierarchiesHasBeenSet
bool AssetModelHierarchiesHasBeenSet() const
Definition: UpdateAssetModelRequest.h:274