AWS SDK for C++

AWS SDK for C++ Version 1.11.608

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() = default;
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 template<typename AssetNameT = Aws::String>
44 void SetAssetName(AssetNameT&& value) { m_assetNameHasBeenSet = true; m_assetName = std::forward<AssetNameT>(value); }
45 template<typename AssetNameT = Aws::String>
46 CreateAssetRequest& WithAssetName(AssetNameT&& value) { SetAssetName(std::forward<AssetNameT>(value)); return *this;}
48
50
57 inline const Aws::String& GetAssetModelId() const { return m_assetModelId; }
58 inline bool AssetModelIdHasBeenSet() const { return m_assetModelIdHasBeenSet; }
59 template<typename AssetModelIdT = Aws::String>
60 void SetAssetModelId(AssetModelIdT&& value) { m_assetModelIdHasBeenSet = true; m_assetModelId = std::forward<AssetModelIdT>(value); }
61 template<typename AssetModelIdT = Aws::String>
62 CreateAssetRequest& WithAssetModelId(AssetModelIdT&& value) { SetAssetModelId(std::forward<AssetModelIdT>(value)); return *this;}
64
66
71 inline const Aws::String& GetClientToken() const { return m_clientToken; }
72 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
73 template<typename ClientTokenT = Aws::String>
74 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
75 template<typename ClientTokenT = Aws::String>
76 CreateAssetRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
78
80
86 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
87 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
88 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
89 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
90 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
91 CreateAssetRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
92 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
93 CreateAssetRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
94 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
95 }
97
99
102 inline const Aws::String& GetAssetDescription() const { return m_assetDescription; }
103 inline bool AssetDescriptionHasBeenSet() const { return m_assetDescriptionHasBeenSet; }
104 template<typename AssetDescriptionT = Aws::String>
105 void SetAssetDescription(AssetDescriptionT&& value) { m_assetDescriptionHasBeenSet = true; m_assetDescription = std::forward<AssetDescriptionT>(value); }
106 template<typename AssetDescriptionT = Aws::String>
107 CreateAssetRequest& WithAssetDescription(AssetDescriptionT&& value) { SetAssetDescription(std::forward<AssetDescriptionT>(value)); return *this;}
109
111
117 inline const Aws::String& GetAssetId() const { return m_assetId; }
118 inline bool AssetIdHasBeenSet() const { return m_assetIdHasBeenSet; }
119 template<typename AssetIdT = Aws::String>
120 void SetAssetId(AssetIdT&& value) { m_assetIdHasBeenSet = true; m_assetId = std::forward<AssetIdT>(value); }
121 template<typename AssetIdT = Aws::String>
122 CreateAssetRequest& WithAssetId(AssetIdT&& value) { SetAssetId(std::forward<AssetIdT>(value)); return *this;}
124
126
132 inline const Aws::String& GetAssetExternalId() const { return m_assetExternalId; }
133 inline bool AssetExternalIdHasBeenSet() const { return m_assetExternalIdHasBeenSet; }
134 template<typename AssetExternalIdT = Aws::String>
135 void SetAssetExternalId(AssetExternalIdT&& value) { m_assetExternalIdHasBeenSet = true; m_assetExternalId = std::forward<AssetExternalIdT>(value); }
136 template<typename AssetExternalIdT = Aws::String>
137 CreateAssetRequest& WithAssetExternalId(AssetExternalIdT&& value) { SetAssetExternalId(std::forward<AssetExternalIdT>(value)); return *this;}
139 private:
140
141 Aws::String m_assetName;
142 bool m_assetNameHasBeenSet = false;
143
144 Aws::String m_assetModelId;
145 bool m_assetModelIdHasBeenSet = false;
146
148 bool m_clientTokenHasBeenSet = true;
149
151 bool m_tagsHasBeenSet = false;
152
153 Aws::String m_assetDescription;
154 bool m_assetDescriptionHasBeenSet = false;
155
156 Aws::String m_assetId;
157 bool m_assetIdHasBeenSet = false;
158
159 Aws::String m_assetExternalId;
160 bool m_assetExternalIdHasBeenSet = false;
161 };
162
163} // namespace Model
164} // namespace IoTSiteWise
165} // namespace Aws
CreateAssetRequest & WithAssetName(AssetNameT &&value)
CreateAssetRequest & WithAssetExternalId(AssetExternalIdT &&value)
CreateAssetRequest & WithAssetId(AssetIdT &&value)
CreateAssetRequest & WithTags(TagsT &&value)
AWS_IOTSITEWISE_API CreateAssetRequest()=default
virtual const char * GetServiceRequestName() const override
CreateAssetRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_IOTSITEWISE_API Aws::String SerializePayload() const override
void SetAssetExternalId(AssetExternalIdT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateAssetRequest & WithClientToken(ClientTokenT &&value)
CreateAssetRequest & WithAssetDescription(AssetDescriptionT &&value)
void SetAssetDescription(AssetDescriptionT &&value)
CreateAssetRequest & WithAssetModelId(AssetModelIdT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
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