AWS SDK for C++  1.9.123
AWS SDK for C++
CreateAssetRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 #include <aws/core/utils/UUID.h>
13 
14 namespace Aws
15 {
16 namespace IoTSiteWise
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "CreateAsset"; }
33 
34  Aws::String SerializePayload() const override;
35 
36 
40  inline const Aws::String& GetAssetName() const{ return m_assetName; }
41 
45  inline bool AssetNameHasBeenSet() const { return m_assetNameHasBeenSet; }
46 
50  inline void SetAssetName(const Aws::String& value) { m_assetNameHasBeenSet = true; m_assetName = value; }
51 
55  inline void SetAssetName(Aws::String&& value) { m_assetNameHasBeenSet = true; m_assetName = std::move(value); }
56 
60  inline void SetAssetName(const char* value) { m_assetNameHasBeenSet = true; m_assetName.assign(value); }
61 
65  inline CreateAssetRequest& WithAssetName(const Aws::String& value) { SetAssetName(value); return *this;}
66 
70  inline CreateAssetRequest& WithAssetName(Aws::String&& value) { SetAssetName(std::move(value)); return *this;}
71 
75  inline CreateAssetRequest& WithAssetName(const char* value) { SetAssetName(value); return *this;}
76 
77 
81  inline const Aws::String& GetAssetModelId() const{ return m_assetModelId; }
82 
86  inline bool AssetModelIdHasBeenSet() const { return m_assetModelIdHasBeenSet; }
87 
91  inline void SetAssetModelId(const Aws::String& value) { m_assetModelIdHasBeenSet = true; m_assetModelId = value; }
92 
96  inline void SetAssetModelId(Aws::String&& value) { m_assetModelIdHasBeenSet = true; m_assetModelId = std::move(value); }
97 
101  inline void SetAssetModelId(const char* value) { m_assetModelIdHasBeenSet = true; m_assetModelId.assign(value); }
102 
106  inline CreateAssetRequest& WithAssetModelId(const Aws::String& value) { SetAssetModelId(value); return *this;}
107 
111  inline CreateAssetRequest& WithAssetModelId(Aws::String&& value) { SetAssetModelId(std::move(value)); return *this;}
112 
116  inline CreateAssetRequest& WithAssetModelId(const char* value) { SetAssetModelId(value); return *this;}
117 
118 
124  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
125 
131  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
132 
138  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
139 
145  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
146 
152  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
153 
159  inline CreateAssetRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
160 
166  inline CreateAssetRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
167 
173  inline CreateAssetRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
174 
175 
182  inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
183 
190  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
191 
198  inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
199 
206  inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
207 
214  inline CreateAssetRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
215 
222  inline CreateAssetRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
223 
230  inline CreateAssetRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
231 
238  inline CreateAssetRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
239 
246  inline CreateAssetRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
247 
254  inline CreateAssetRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
255 
262  inline CreateAssetRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
263 
270  inline CreateAssetRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
271 
278  inline CreateAssetRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
279 
280  private:
281 
282  Aws::String m_assetName;
283  bool m_assetNameHasBeenSet;
284 
285  Aws::String m_assetModelId;
286  bool m_assetModelIdHasBeenSet;
287 
288  Aws::String m_clientToken;
289  bool m_clientTokenHasBeenSet;
290 
292  bool m_tagsHasBeenSet;
293  };
294 
295 } // namespace Model
296 } // namespace IoTSiteWise
297 } // namespace Aws
Aws::IoTSiteWise::Model::CreateAssetRequest::WithAssetName
CreateAssetRequest & WithAssetName(const Aws::String &value)
Definition: CreateAssetRequest.h:65
Aws::IoTSiteWise::Model::CreateAssetRequest::WithAssetModelId
CreateAssetRequest & WithAssetModelId(Aws::String &&value)
Definition: CreateAssetRequest.h:111
Aws::IoTSiteWise::Model::CreateAssetRequest::AssetModelIdHasBeenSet
bool AssetModelIdHasBeenSet() const
Definition: CreateAssetRequest.h:86
Aws::IoTSiteWise::Model::CreateAssetRequest::SetAssetName
void SetAssetName(Aws::String &&value)
Definition: CreateAssetRequest.h:55
Aws::IoTSiteWise::Model::CreateAssetRequest::SetAssetModelId
void SetAssetModelId(const char *value)
Definition: CreateAssetRequest.h:101
Aws::IoTSiteWise::Model::CreateAssetRequest::AddTags
CreateAssetRequest & AddTags(const Aws::String &key, Aws::String &&value)
Definition: CreateAssetRequest.h:246
IoTSiteWise_EXPORTS.h
Aws::IoTSiteWise::Model::CreateAssetRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoTSiteWise::Model::CreateAssetRequest::SetAssetName
void SetAssetName(const Aws::String &value)
Definition: CreateAssetRequest.h:50
AWS_IOTSITEWISE_API
#define AWS_IOTSITEWISE_API
Definition: IoTSiteWise_EXPORTS.h:28
Aws::IoTSiteWise::Model::CreateAssetRequest::AddTags
CreateAssetRequest & AddTags(const Aws::String &key, const Aws::String &value)
Definition: CreateAssetRequest.h:230
Aws::IoTSiteWise::Model::CreateAssetRequest::AddTags
CreateAssetRequest & AddTags(const char *key, Aws::String &&value)
Definition: CreateAssetRequest.h:262
Aws::IoTSiteWise::Model::CreateAssetRequest::GetTags
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition: CreateAssetRequest.h:182
Aws::IoTSiteWise::Model::CreateAssetRequest::AddTags
CreateAssetRequest & AddTags(Aws::String &&key, const Aws::String &value)
Definition: CreateAssetRequest.h:238
Aws::IoTSiteWise::Model::CreateAssetRequest::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: CreateAssetRequest.h:138
Aws::IoTSiteWise::Model::CreateAssetRequest::AssetNameHasBeenSet
bool AssetNameHasBeenSet() const
Definition: CreateAssetRequest.h:45
Aws::IoTSiteWise::Model::CreateAssetRequest::SetAssetName
void SetAssetName(const char *value)
Definition: CreateAssetRequest.h:60
Aws::IoTSiteWise::Model::CreateAssetRequest::SetAssetModelId
void SetAssetModelId(Aws::String &&value)
Definition: CreateAssetRequest.h:96
Aws::IoTSiteWise::Model::CreateAssetRequest::WithAssetName
CreateAssetRequest & WithAssetName(const char *value)
Definition: CreateAssetRequest.h:75
Aws::IoTSiteWise::Model::CreateAssetRequest::GetAssetName
const Aws::String & GetAssetName() const
Definition: CreateAssetRequest.h:40
Aws::IoTSiteWise::Model::CreateAssetRequest::SetClientToken
void SetClientToken(const char *value)
Definition: CreateAssetRequest.h:152
Aws::IoTSiteWise::Model::CreateAssetRequest::GetAssetModelId
const Aws::String & GetAssetModelId() const
Definition: CreateAssetRequest.h:81
Aws::IoTSiteWise::Model::CreateAssetRequest::AddTags
CreateAssetRequest & AddTags(Aws::String &&key, Aws::String &&value)
Definition: CreateAssetRequest.h:254
Aws::IoTSiteWise::Model::CreateAssetRequest::CreateAssetRequest
CreateAssetRequest()
Aws::IoTSiteWise::Model::CreateAssetRequest::SetTags
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateAssetRequest.h:198
Aws::IoTSiteWise::Model::CreateAssetRequest::WithClientToken
CreateAssetRequest & WithClientToken(Aws::String &&value)
Definition: CreateAssetRequest.h:166
AWSString.h
Aws::IoTSiteWise::Model::CreateAssetRequest::WithAssetModelId
CreateAssetRequest & WithAssetModelId(const Aws::String &value)
Definition: CreateAssetRequest.h:106
Aws::IoTSiteWise::Model::CreateAssetRequest::ClientTokenHasBeenSet
bool ClientTokenHasBeenSet() const
Definition: CreateAssetRequest.h:131
Aws::IoTSiteWise::Model::CreateAssetRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateAssetRequest.h:32
Aws::IoTSiteWise::Model::CreateAssetRequest::AddTags
CreateAssetRequest & AddTags(Aws::String &&key, const char *value)
Definition: CreateAssetRequest.h:270
Aws::IoTSiteWise::Model::CreateAssetRequest::SetTags
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateAssetRequest.h:206
Aws
Definition: AccessManagementClient.h:15
IoTSiteWiseRequest.h
Aws::IoTSiteWise::Model::CreateAssetRequest::AddTags
CreateAssetRequest & AddTags(const char *key, const char *value)
Definition: CreateAssetRequest.h:278
Aws::IoTSiteWise::Model::CreateAssetRequest::GetClientToken
const Aws::String & GetClientToken() const
Definition: CreateAssetRequest.h:124
Aws::IoTSiteWise::Model::CreateAssetRequest::WithClientToken
CreateAssetRequest & WithClientToken(const char *value)
Definition: CreateAssetRequest.h:173
Aws::IoTSiteWise::Model::CreateAssetRequest::WithTags
CreateAssetRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateAssetRequest.h:222
Aws::IoTSiteWise::Model::CreateAssetRequest::WithAssetName
CreateAssetRequest & WithAssetName(Aws::String &&value)
Definition: CreateAssetRequest.h:70
Aws::IoTSiteWise::Model::CreateAssetRequest
Definition: CreateAssetRequest.h:24
Aws::IoTSiteWise::Model::CreateAssetRequest::WithTags
CreateAssetRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateAssetRequest.h:214
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoTSiteWise::IoTSiteWiseRequest
Definition: IoTSiteWiseRequest.h:17
Aws::IoTSiteWise::Model::CreateAssetRequest::WithAssetModelId
CreateAssetRequest & WithAssetModelId(const char *value)
Definition: CreateAssetRequest.h:116
Aws::IoTSiteWise::Model::CreateAssetRequest::SetAssetModelId
void SetAssetModelId(const Aws::String &value)
Definition: CreateAssetRequest.h:91
UUID.h
AWSMap.h
Aws::IoTSiteWise::Model::CreateAssetRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateAssetRequest.h:190
Aws::IoTSiteWise::Model::CreateAssetRequest::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: CreateAssetRequest.h:145
Aws::IoTSiteWise::Model::CreateAssetRequest::WithClientToken
CreateAssetRequest & WithClientToken(const Aws::String &value)
Definition: CreateAssetRequest.h:159
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19