AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
UpdateAssetRequest.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 <utility>
11#include <aws/core/utils/UUID.h>
12
13namespace Aws
14{
15namespace IoTSiteWise
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_IOTSITEWISE_API UpdateAssetRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateAsset"; }
32
33 AWS_IOTSITEWISE_API Aws::String SerializePayload() const override;
34
35
37
44 inline const Aws::String& GetAssetId() const { return m_assetId; }
45 inline bool AssetIdHasBeenSet() const { return m_assetIdHasBeenSet; }
46 template<typename AssetIdT = Aws::String>
47 void SetAssetId(AssetIdT&& value) { m_assetIdHasBeenSet = true; m_assetId = std::forward<AssetIdT>(value); }
48 template<typename AssetIdT = Aws::String>
49 UpdateAssetRequest& WithAssetId(AssetIdT&& value) { SetAssetId(std::forward<AssetIdT>(value)); return *this;}
51
53
56 inline const Aws::String& GetAssetName() const { return m_assetName; }
57 inline bool AssetNameHasBeenSet() const { return m_assetNameHasBeenSet; }
58 template<typename AssetNameT = Aws::String>
59 void SetAssetName(AssetNameT&& value) { m_assetNameHasBeenSet = true; m_assetName = std::forward<AssetNameT>(value); }
60 template<typename AssetNameT = Aws::String>
61 UpdateAssetRequest& WithAssetName(AssetNameT&& value) { SetAssetName(std::forward<AssetNameT>(value)); return *this;}
63
65
70 inline const Aws::String& GetClientToken() const { return m_clientToken; }
71 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
72 template<typename ClientTokenT = Aws::String>
73 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
74 template<typename ClientTokenT = Aws::String>
75 UpdateAssetRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
77
79
82 inline const Aws::String& GetAssetDescription() const { return m_assetDescription; }
83 inline bool AssetDescriptionHasBeenSet() const { return m_assetDescriptionHasBeenSet; }
84 template<typename AssetDescriptionT = Aws::String>
85 void SetAssetDescription(AssetDescriptionT&& value) { m_assetDescriptionHasBeenSet = true; m_assetDescription = std::forward<AssetDescriptionT>(value); }
86 template<typename AssetDescriptionT = Aws::String>
87 UpdateAssetRequest& WithAssetDescription(AssetDescriptionT&& value) { SetAssetDescription(std::forward<AssetDescriptionT>(value)); return *this;}
89
91
98 inline const Aws::String& GetAssetExternalId() const { return m_assetExternalId; }
99 inline bool AssetExternalIdHasBeenSet() const { return m_assetExternalIdHasBeenSet; }
100 template<typename AssetExternalIdT = Aws::String>
101 void SetAssetExternalId(AssetExternalIdT&& value) { m_assetExternalIdHasBeenSet = true; m_assetExternalId = std::forward<AssetExternalIdT>(value); }
102 template<typename AssetExternalIdT = Aws::String>
103 UpdateAssetRequest& WithAssetExternalId(AssetExternalIdT&& value) { SetAssetExternalId(std::forward<AssetExternalIdT>(value)); return *this;}
105 private:
106
107 Aws::String m_assetId;
108 bool m_assetIdHasBeenSet = false;
109
110 Aws::String m_assetName;
111 bool m_assetNameHasBeenSet = false;
112
114 bool m_clientTokenHasBeenSet = true;
115
116 Aws::String m_assetDescription;
117 bool m_assetDescriptionHasBeenSet = false;
118
119 Aws::String m_assetExternalId;
120 bool m_assetExternalIdHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace IoTSiteWise
125} // namespace Aws
UpdateAssetRequest & WithAssetId(AssetIdT &&value)
UpdateAssetRequest & WithAssetExternalId(AssetExternalIdT &&value)
UpdateAssetRequest & WithAssetDescription(AssetDescriptionT &&value)
AWS_IOTSITEWISE_API UpdateAssetRequest()=default
void SetAssetExternalId(AssetExternalIdT &&value)
UpdateAssetRequest & WithAssetName(AssetNameT &&value)
const Aws::String & GetAssetDescription() const
void SetAssetDescription(AssetDescriptionT &&value)
virtual const char * GetServiceRequestName() const override
UpdateAssetRequest & WithClientToken(ClientTokenT &&value)
AWS_IOTSITEWISE_API Aws::String SerializePayload() const override
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String