AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateAssetRequest.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/AWSMap.h>
11#include <utility>
12#include <aws/core/utils/UUID.h>
13
14namespace Aws
15{
16namespace IoTSiteWise
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_IOTSITEWISE_API CreateAssetRequest();
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_IOTSITEWISE_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetAssetName() const{ return m_assetName; }
42 inline bool AssetNameHasBeenSet() const { return m_assetNameHasBeenSet; }
43 inline void SetAssetName(const Aws::String& value) { m_assetNameHasBeenSet = true; m_assetName = value; }
44 inline void SetAssetName(Aws::String&& value) { m_assetNameHasBeenSet = true; m_assetName = std::move(value); }
45 inline void SetAssetName(const char* value) { m_assetNameHasBeenSet = true; m_assetName.assign(value); }
46 inline CreateAssetRequest& WithAssetName(const Aws::String& value) { SetAssetName(value); return *this;}
47 inline CreateAssetRequest& WithAssetName(Aws::String&& value) { SetAssetName(std::move(value)); return *this;}
48 inline CreateAssetRequest& WithAssetName(const char* value) { SetAssetName(value); return *this;}
50
52
59 inline const Aws::String& GetAssetModelId() const{ return m_assetModelId; }
60 inline bool AssetModelIdHasBeenSet() const { return m_assetModelIdHasBeenSet; }
61 inline void SetAssetModelId(const Aws::String& value) { m_assetModelIdHasBeenSet = true; m_assetModelId = value; }
62 inline void SetAssetModelId(Aws::String&& value) { m_assetModelIdHasBeenSet = true; m_assetModelId = std::move(value); }
63 inline void SetAssetModelId(const char* value) { m_assetModelIdHasBeenSet = true; m_assetModelId.assign(value); }
64 inline CreateAssetRequest& WithAssetModelId(const Aws::String& value) { SetAssetModelId(value); return *this;}
65 inline CreateAssetRequest& WithAssetModelId(Aws::String&& value) { SetAssetModelId(std::move(value)); return *this;}
66 inline CreateAssetRequest& WithAssetModelId(const char* value) { SetAssetModelId(value); return *this;}
68
70
75 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
76 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
77 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
78 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
79 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
80 inline CreateAssetRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
81 inline CreateAssetRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
82 inline CreateAssetRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
84
86
92 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
93 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
94 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
95 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
96 inline CreateAssetRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
97 inline CreateAssetRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
98 inline CreateAssetRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
99 inline CreateAssetRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
100 inline CreateAssetRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
101 inline CreateAssetRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
102 inline CreateAssetRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
103 inline CreateAssetRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
104 inline CreateAssetRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
106
108
111 inline const Aws::String& GetAssetDescription() const{ return m_assetDescription; }
112 inline bool AssetDescriptionHasBeenSet() const { return m_assetDescriptionHasBeenSet; }
113 inline void SetAssetDescription(const Aws::String& value) { m_assetDescriptionHasBeenSet = true; m_assetDescription = value; }
114 inline void SetAssetDescription(Aws::String&& value) { m_assetDescriptionHasBeenSet = true; m_assetDescription = std::move(value); }
115 inline void SetAssetDescription(const char* value) { m_assetDescriptionHasBeenSet = true; m_assetDescription.assign(value); }
116 inline CreateAssetRequest& WithAssetDescription(const Aws::String& value) { SetAssetDescription(value); return *this;}
117 inline CreateAssetRequest& WithAssetDescription(Aws::String&& value) { SetAssetDescription(std::move(value)); return *this;}
118 inline CreateAssetRequest& WithAssetDescription(const char* value) { SetAssetDescription(value); return *this;}
120
122
128 inline const Aws::String& GetAssetId() const{ return m_assetId; }
129 inline bool AssetIdHasBeenSet() const { return m_assetIdHasBeenSet; }
130 inline void SetAssetId(const Aws::String& value) { m_assetIdHasBeenSet = true; m_assetId = value; }
131 inline void SetAssetId(Aws::String&& value) { m_assetIdHasBeenSet = true; m_assetId = std::move(value); }
132 inline void SetAssetId(const char* value) { m_assetIdHasBeenSet = true; m_assetId.assign(value); }
133 inline CreateAssetRequest& WithAssetId(const Aws::String& value) { SetAssetId(value); return *this;}
134 inline CreateAssetRequest& WithAssetId(Aws::String&& value) { SetAssetId(std::move(value)); return *this;}
135 inline CreateAssetRequest& WithAssetId(const char* value) { SetAssetId(value); return *this;}
137
139
145 inline const Aws::String& GetAssetExternalId() const{ return m_assetExternalId; }
146 inline bool AssetExternalIdHasBeenSet() const { return m_assetExternalIdHasBeenSet; }
147 inline void SetAssetExternalId(const Aws::String& value) { m_assetExternalIdHasBeenSet = true; m_assetExternalId = value; }
148 inline void SetAssetExternalId(Aws::String&& value) { m_assetExternalIdHasBeenSet = true; m_assetExternalId = std::move(value); }
149 inline void SetAssetExternalId(const char* value) { m_assetExternalIdHasBeenSet = true; m_assetExternalId.assign(value); }
150 inline CreateAssetRequest& WithAssetExternalId(const Aws::String& value) { SetAssetExternalId(value); return *this;}
151 inline CreateAssetRequest& WithAssetExternalId(Aws::String&& value) { SetAssetExternalId(std::move(value)); return *this;}
152 inline CreateAssetRequest& WithAssetExternalId(const char* value) { SetAssetExternalId(value); return *this;}
154 private:
155
156 Aws::String m_assetName;
157 bool m_assetNameHasBeenSet = false;
158
159 Aws::String m_assetModelId;
160 bool m_assetModelIdHasBeenSet = false;
161
162 Aws::String m_clientToken;
163 bool m_clientTokenHasBeenSet = false;
164
166 bool m_tagsHasBeenSet = false;
167
168 Aws::String m_assetDescription;
169 bool m_assetDescriptionHasBeenSet = false;
170
171 Aws::String m_assetId;
172 bool m_assetIdHasBeenSet = false;
173
174 Aws::String m_assetExternalId;
175 bool m_assetExternalIdHasBeenSet = false;
176 };
177
178} // namespace Model
179} // namespace IoTSiteWise
180} // namespace Aws
CreateAssetRequest & WithClientToken(Aws::String &&value)
CreateAssetRequest & WithClientToken(const char *value)
CreateAssetRequest & WithAssetDescription(Aws::String &&value)
CreateAssetRequest & WithAssetName(const char *value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateAssetRequest & WithAssetId(const Aws::String &value)
CreateAssetRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateAssetRequest & WithAssetExternalId(Aws::String &&value)
CreateAssetRequest & WithAssetName(const Aws::String &value)
CreateAssetRequest & WithAssetId(const char *value)
CreateAssetRequest & WithAssetDescription(const Aws::String &value)
void SetAssetDescription(const Aws::String &value)
CreateAssetRequest & AddTags(const char *key, const char *value)
void SetClientToken(const Aws::String &value)
CreateAssetRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
virtual const char * GetServiceRequestName() const override
CreateAssetRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetAssetName(const Aws::String &value)
CreateAssetRequest & AddTags(Aws::String &&key, const Aws::String &value)
void SetAssetModelId(const Aws::String &value)
AWS_IOTSITEWISE_API Aws::String SerializePayload() const override
CreateAssetRequest & WithAssetId(Aws::String &&value)
CreateAssetRequest & WithClientToken(const Aws::String &value)
CreateAssetRequest & AddTags(Aws::String &&key, const char *value)
CreateAssetRequest & AddTags(const char *key, Aws::String &&value)
CreateAssetRequest & WithAssetExternalId(const char *value)
CreateAssetRequest & WithAssetName(Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateAssetRequest & WithAssetDescription(const char *value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetAssetExternalId(const Aws::String &value)
CreateAssetRequest & WithAssetModelId(Aws::String &&value)
CreateAssetRequest & WithAssetExternalId(const Aws::String &value)
CreateAssetRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateAssetRequest & WithAssetModelId(const Aws::String &value)
CreateAssetRequest & WithAssetModelId(const char *value)
CreateAssetRequest & AddTags(Aws::String &&key, 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