AWS SDK for C++  1.9.16
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 
183  inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
184 
192  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
193 
201  inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
202 
210  inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
211 
219  inline CreateAssetRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
220 
228  inline CreateAssetRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
229 
237  inline CreateAssetRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
238 
246  inline CreateAssetRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
247 
255  inline CreateAssetRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
256 
264  inline CreateAssetRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
265 
273  inline CreateAssetRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
274 
282  inline CreateAssetRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
283 
291  inline CreateAssetRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
292 
293  private:
294 
295  Aws::String m_assetName;
296  bool m_assetNameHasBeenSet;
297 
298  Aws::String m_assetModelId;
299  bool m_assetModelIdHasBeenSet;
300 
301  Aws::String m_clientToken;
302  bool m_clientTokenHasBeenSet;
303 
305  bool m_tagsHasBeenSet;
306  };
307 
308 } // namespace Model
309 } // namespace IoTSiteWise
310 } // 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:255
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:237
Aws::IoTSiteWise::Model::CreateAssetRequest::AddTags
CreateAssetRequest & AddTags(const char *key, Aws::String &&value)
Definition: CreateAssetRequest.h:273
Aws::IoTSiteWise::Model::CreateAssetRequest::GetTags
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition: CreateAssetRequest.h:183
Aws::IoTSiteWise::Model::CreateAssetRequest::AddTags
CreateAssetRequest & AddTags(Aws::String &&key, const Aws::String &value)
Definition: CreateAssetRequest.h:246
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:264
Aws::IoTSiteWise::Model::CreateAssetRequest::CreateAssetRequest
CreateAssetRequest()
Aws::IoTSiteWise::Model::CreateAssetRequest::SetTags
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateAssetRequest.h:201
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:282
Aws::IoTSiteWise::Model::CreateAssetRequest::SetTags
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateAssetRequest.h:210
Aws
Definition: AccessManagementClient.h:15
IoTSiteWiseRequest.h
Aws::IoTSiteWise::Model::CreateAssetRequest::AddTags
CreateAssetRequest & AddTags(const char *key, const char *value)
Definition: CreateAssetRequest.h:291
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:228
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:219
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:192
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