AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateAssetModelRequest.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/iotsitewise/model/AssetModelType.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/iotsitewise/model/AssetModelPropertyDefinition.h>
14#include <aws/iotsitewise/model/AssetModelHierarchyDefinition.h>
15#include <aws/iotsitewise/model/AssetModelCompositeModelDefinition.h>
16#include <utility>
17#include <aws/core/utils/UUID.h>
18
19namespace Aws
20{
21namespace IoTSiteWise
22{
23namespace Model
24{
25
29 {
30 public:
31 AWS_IOTSITEWISE_API CreateAssetModelRequest();
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateAssetModel"; }
38
39 AWS_IOTSITEWISE_API Aws::String SerializePayload() const override;
40
41
43
46 inline const Aws::String& GetAssetModelName() const{ return m_assetModelName; }
47 inline bool AssetModelNameHasBeenSet() const { return m_assetModelNameHasBeenSet; }
48 inline void SetAssetModelName(const Aws::String& value) { m_assetModelNameHasBeenSet = true; m_assetModelName = value; }
49 inline void SetAssetModelName(Aws::String&& value) { m_assetModelNameHasBeenSet = true; m_assetModelName = std::move(value); }
50 inline void SetAssetModelName(const char* value) { m_assetModelNameHasBeenSet = true; m_assetModelName.assign(value); }
51 inline CreateAssetModelRequest& WithAssetModelName(const Aws::String& value) { SetAssetModelName(value); return *this;}
52 inline CreateAssetModelRequest& WithAssetModelName(Aws::String&& value) { SetAssetModelName(std::move(value)); return *this;}
53 inline CreateAssetModelRequest& WithAssetModelName(const char* value) { SetAssetModelName(value); return *this;}
55
57
64 inline const AssetModelType& GetAssetModelType() const{ return m_assetModelType; }
65 inline bool AssetModelTypeHasBeenSet() const { return m_assetModelTypeHasBeenSet; }
66 inline void SetAssetModelType(const AssetModelType& value) { m_assetModelTypeHasBeenSet = true; m_assetModelType = value; }
67 inline void SetAssetModelType(AssetModelType&& value) { m_assetModelTypeHasBeenSet = true; m_assetModelType = std::move(value); }
68 inline CreateAssetModelRequest& WithAssetModelType(const AssetModelType& value) { SetAssetModelType(value); return *this;}
69 inline CreateAssetModelRequest& WithAssetModelType(AssetModelType&& value) { SetAssetModelType(std::move(value)); return *this;}
71
73
79 inline const Aws::String& GetAssetModelId() const{ return m_assetModelId; }
80 inline bool AssetModelIdHasBeenSet() const { return m_assetModelIdHasBeenSet; }
81 inline void SetAssetModelId(const Aws::String& value) { m_assetModelIdHasBeenSet = true; m_assetModelId = value; }
82 inline void SetAssetModelId(Aws::String&& value) { m_assetModelIdHasBeenSet = true; m_assetModelId = std::move(value); }
83 inline void SetAssetModelId(const char* value) { m_assetModelIdHasBeenSet = true; m_assetModelId.assign(value); }
84 inline CreateAssetModelRequest& WithAssetModelId(const Aws::String& value) { SetAssetModelId(value); return *this;}
85 inline CreateAssetModelRequest& WithAssetModelId(Aws::String&& value) { SetAssetModelId(std::move(value)); return *this;}
86 inline CreateAssetModelRequest& WithAssetModelId(const char* value) { SetAssetModelId(value); return *this;}
88
90
96 inline const Aws::String& GetAssetModelExternalId() const{ return m_assetModelExternalId; }
97 inline bool AssetModelExternalIdHasBeenSet() const { return m_assetModelExternalIdHasBeenSet; }
98 inline void SetAssetModelExternalId(const Aws::String& value) { m_assetModelExternalIdHasBeenSet = true; m_assetModelExternalId = value; }
99 inline void SetAssetModelExternalId(Aws::String&& value) { m_assetModelExternalIdHasBeenSet = true; m_assetModelExternalId = std::move(value); }
100 inline void SetAssetModelExternalId(const char* value) { m_assetModelExternalIdHasBeenSet = true; m_assetModelExternalId.assign(value); }
102 inline CreateAssetModelRequest& WithAssetModelExternalId(Aws::String&& value) { SetAssetModelExternalId(std::move(value)); return *this;}
103 inline CreateAssetModelRequest& WithAssetModelExternalId(const char* value) { SetAssetModelExternalId(value); return *this;}
105
107
110 inline const Aws::String& GetAssetModelDescription() const{ return m_assetModelDescription; }
111 inline bool AssetModelDescriptionHasBeenSet() const { return m_assetModelDescriptionHasBeenSet; }
112 inline void SetAssetModelDescription(const Aws::String& value) { m_assetModelDescriptionHasBeenSet = true; m_assetModelDescription = value; }
113 inline void SetAssetModelDescription(Aws::String&& value) { m_assetModelDescriptionHasBeenSet = true; m_assetModelDescription = std::move(value); }
114 inline void SetAssetModelDescription(const char* value) { m_assetModelDescriptionHasBeenSet = true; m_assetModelDescription.assign(value); }
117 inline CreateAssetModelRequest& WithAssetModelDescription(const char* value) { SetAssetModelDescription(value); return *this;}
119
121
129 inline const Aws::Vector<AssetModelPropertyDefinition>& GetAssetModelProperties() const{ return m_assetModelProperties; }
130 inline bool AssetModelPropertiesHasBeenSet() const { return m_assetModelPropertiesHasBeenSet; }
131 inline void SetAssetModelProperties(const Aws::Vector<AssetModelPropertyDefinition>& value) { m_assetModelPropertiesHasBeenSet = true; m_assetModelProperties = value; }
132 inline void SetAssetModelProperties(Aws::Vector<AssetModelPropertyDefinition>&& value) { m_assetModelPropertiesHasBeenSet = true; m_assetModelProperties = std::move(value); }
135 inline CreateAssetModelRequest& AddAssetModelProperties(const AssetModelPropertyDefinition& value) { m_assetModelPropertiesHasBeenSet = true; m_assetModelProperties.push_back(value); return *this; }
136 inline CreateAssetModelRequest& AddAssetModelProperties(AssetModelPropertyDefinition&& value) { m_assetModelPropertiesHasBeenSet = true; m_assetModelProperties.push_back(std::move(value)); return *this; }
138
140
150 inline const Aws::Vector<AssetModelHierarchyDefinition>& GetAssetModelHierarchies() const{ return m_assetModelHierarchies; }
151 inline bool AssetModelHierarchiesHasBeenSet() const { return m_assetModelHierarchiesHasBeenSet; }
152 inline void SetAssetModelHierarchies(const Aws::Vector<AssetModelHierarchyDefinition>& value) { m_assetModelHierarchiesHasBeenSet = true; m_assetModelHierarchies = value; }
153 inline void SetAssetModelHierarchies(Aws::Vector<AssetModelHierarchyDefinition>&& value) { m_assetModelHierarchiesHasBeenSet = true; m_assetModelHierarchies = std::move(value); }
156 inline CreateAssetModelRequest& AddAssetModelHierarchies(const AssetModelHierarchyDefinition& value) { m_assetModelHierarchiesHasBeenSet = true; m_assetModelHierarchies.push_back(value); return *this; }
157 inline CreateAssetModelRequest& AddAssetModelHierarchies(AssetModelHierarchyDefinition&& value) { m_assetModelHierarchiesHasBeenSet = true; m_assetModelHierarchies.push_back(std::move(value)); return *this; }
159
161
174 inline const Aws::Vector<AssetModelCompositeModelDefinition>& GetAssetModelCompositeModels() const{ return m_assetModelCompositeModels; }
175 inline bool AssetModelCompositeModelsHasBeenSet() const { return m_assetModelCompositeModelsHasBeenSet; }
176 inline void SetAssetModelCompositeModels(const Aws::Vector<AssetModelCompositeModelDefinition>& value) { m_assetModelCompositeModelsHasBeenSet = true; m_assetModelCompositeModels = value; }
177 inline void SetAssetModelCompositeModels(Aws::Vector<AssetModelCompositeModelDefinition>&& value) { m_assetModelCompositeModelsHasBeenSet = true; m_assetModelCompositeModels = std::move(value); }
180 inline CreateAssetModelRequest& AddAssetModelCompositeModels(const AssetModelCompositeModelDefinition& value) { m_assetModelCompositeModelsHasBeenSet = true; m_assetModelCompositeModels.push_back(value); return *this; }
181 inline CreateAssetModelRequest& AddAssetModelCompositeModels(AssetModelCompositeModelDefinition&& value) { m_assetModelCompositeModelsHasBeenSet = true; m_assetModelCompositeModels.push_back(std::move(value)); return *this; }
183
185
190 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
191 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
192 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
193 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
194 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
195 inline CreateAssetModelRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
196 inline CreateAssetModelRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
197 inline CreateAssetModelRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
199
201
207 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
208 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
209 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
210 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
211 inline CreateAssetModelRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
212 inline CreateAssetModelRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
213 inline CreateAssetModelRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
214 inline CreateAssetModelRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
215 inline CreateAssetModelRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
216 inline CreateAssetModelRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
217 inline CreateAssetModelRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
218 inline CreateAssetModelRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
219 inline CreateAssetModelRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
221 private:
222
223 Aws::String m_assetModelName;
224 bool m_assetModelNameHasBeenSet = false;
225
226 AssetModelType m_assetModelType;
227 bool m_assetModelTypeHasBeenSet = false;
228
229 Aws::String m_assetModelId;
230 bool m_assetModelIdHasBeenSet = false;
231
232 Aws::String m_assetModelExternalId;
233 bool m_assetModelExternalIdHasBeenSet = false;
234
235 Aws::String m_assetModelDescription;
236 bool m_assetModelDescriptionHasBeenSet = false;
237
238 Aws::Vector<AssetModelPropertyDefinition> m_assetModelProperties;
239 bool m_assetModelPropertiesHasBeenSet = false;
240
241 Aws::Vector<AssetModelHierarchyDefinition> m_assetModelHierarchies;
242 bool m_assetModelHierarchiesHasBeenSet = false;
243
244 Aws::Vector<AssetModelCompositeModelDefinition> m_assetModelCompositeModels;
245 bool m_assetModelCompositeModelsHasBeenSet = false;
246
247 Aws::String m_clientToken;
248 bool m_clientTokenHasBeenSet = false;
249
251 bool m_tagsHasBeenSet = false;
252 };
253
254} // namespace Model
255} // namespace IoTSiteWise
256} // namespace Aws
CreateAssetModelRequest & WithAssetModelId(Aws::String &&value)
CreateAssetModelRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateAssetModelRequest & WithAssetModelProperties(const Aws::Vector< AssetModelPropertyDefinition > &value)
void SetAssetModelHierarchies(const Aws::Vector< AssetModelHierarchyDefinition > &value)
CreateAssetModelRequest & WithAssetModelId(const char *value)
void SetAssetModelHierarchies(Aws::Vector< AssetModelHierarchyDefinition > &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateAssetModelRequest & AddAssetModelCompositeModels(AssetModelCompositeModelDefinition &&value)
CreateAssetModelRequest & AddAssetModelHierarchies(const AssetModelHierarchyDefinition &value)
CreateAssetModelRequest & AddAssetModelCompositeModels(const AssetModelCompositeModelDefinition &value)
CreateAssetModelRequest & WithAssetModelType(const AssetModelType &value)
void SetAssetModelCompositeModels(const Aws::Vector< AssetModelCompositeModelDefinition > &value)
const Aws::Vector< AssetModelPropertyDefinition > & GetAssetModelProperties() const
CreateAssetModelRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateAssetModelRequest & WithAssetModelId(const Aws::String &value)
CreateAssetModelRequest & WithAssetModelCompositeModels(Aws::Vector< AssetModelCompositeModelDefinition > &&value)
CreateAssetModelRequest & WithAssetModelDescription(Aws::String &&value)
CreateAssetModelRequest & AddTags(Aws::String &&key, const char *value)
CreateAssetModelRequest & WithAssetModelType(AssetModelType &&value)
CreateAssetModelRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateAssetModelRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateAssetModelRequest & WithAssetModelExternalId(const Aws::String &value)
void SetAssetModelProperties(Aws::Vector< AssetModelPropertyDefinition > &&value)
CreateAssetModelRequest & WithClientToken(Aws::String &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetAssetModelProperties(const Aws::Vector< AssetModelPropertyDefinition > &value)
CreateAssetModelRequest & AddTags(const char *key, const char *value)
CreateAssetModelRequest & AddTags(Aws::String &&key, const Aws::String &value)
const Aws::Vector< AssetModelCompositeModelDefinition > & GetAssetModelCompositeModels() const
CreateAssetModelRequest & WithAssetModelProperties(Aws::Vector< AssetModelPropertyDefinition > &&value)
virtual const char * GetServiceRequestName() const override
CreateAssetModelRequest & WithAssetModelExternalId(const char *value)
void SetAssetModelCompositeModels(Aws::Vector< AssetModelCompositeModelDefinition > &&value)
CreateAssetModelRequest & WithAssetModelDescription(const char *value)
CreateAssetModelRequest & AddTags(const char *key, Aws::String &&value)
const Aws::Vector< AssetModelHierarchyDefinition > & GetAssetModelHierarchies() const
CreateAssetModelRequest & WithAssetModelExternalId(Aws::String &&value)
CreateAssetModelRequest & AddAssetModelProperties(AssetModelPropertyDefinition &&value)
CreateAssetModelRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateAssetModelRequest & WithAssetModelHierarchies(Aws::Vector< AssetModelHierarchyDefinition > &&value)
CreateAssetModelRequest & WithAssetModelHierarchies(const Aws::Vector< AssetModelHierarchyDefinition > &value)
CreateAssetModelRequest & WithAssetModelCompositeModels(const Aws::Vector< AssetModelCompositeModelDefinition > &value)
CreateAssetModelRequest & AddAssetModelProperties(const AssetModelPropertyDefinition &value)
AWS_IOTSITEWISE_API Aws::String SerializePayload() const override
CreateAssetModelRequest & AddAssetModelHierarchies(AssetModelHierarchyDefinition &&value)
CreateAssetModelRequest & WithClientToken(const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateAssetModelRequest & WithAssetModelDescription(const Aws::String &value)
CreateAssetModelRequest & WithAssetModelName(const Aws::String &value)
CreateAssetModelRequest & WithAssetModelName(const char *value)
CreateAssetModelRequest & WithClientToken(const char *value)
CreateAssetModelRequest & WithAssetModelName(Aws::String &&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
std::vector< T, Aws::Allocator< T > > Vector