AWS SDK for C++  1.9.20
AWS SDK for C++
UpdateAssetRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 #include <aws/core/utils/UUID.h>
12 
13 namespace Aws
14 {
15 namespace IoTSiteWise
16 {
17 namespace Model
18 {
19 
23  {
24  public:
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::String SerializePayload() const override;
34 
35 
39  inline const Aws::String& GetAssetId() const{ return m_assetId; }
40 
44  inline bool AssetIdHasBeenSet() const { return m_assetIdHasBeenSet; }
45 
49  inline void SetAssetId(const Aws::String& value) { m_assetIdHasBeenSet = true; m_assetId = value; }
50 
54  inline void SetAssetId(Aws::String&& value) { m_assetIdHasBeenSet = true; m_assetId = std::move(value); }
55 
59  inline void SetAssetId(const char* value) { m_assetIdHasBeenSet = true; m_assetId.assign(value); }
60 
64  inline UpdateAssetRequest& WithAssetId(const Aws::String& value) { SetAssetId(value); return *this;}
65 
69  inline UpdateAssetRequest& WithAssetId(Aws::String&& value) { SetAssetId(std::move(value)); return *this;}
70 
74  inline UpdateAssetRequest& WithAssetId(const char* value) { SetAssetId(value); return *this;}
75 
76 
80  inline const Aws::String& GetAssetName() const{ return m_assetName; }
81 
85  inline bool AssetNameHasBeenSet() const { return m_assetNameHasBeenSet; }
86 
90  inline void SetAssetName(const Aws::String& value) { m_assetNameHasBeenSet = true; m_assetName = value; }
91 
95  inline void SetAssetName(Aws::String&& value) { m_assetNameHasBeenSet = true; m_assetName = std::move(value); }
96 
100  inline void SetAssetName(const char* value) { m_assetNameHasBeenSet = true; m_assetName.assign(value); }
101 
105  inline UpdateAssetRequest& WithAssetName(const Aws::String& value) { SetAssetName(value); return *this;}
106 
110  inline UpdateAssetRequest& WithAssetName(Aws::String&& value) { SetAssetName(std::move(value)); return *this;}
111 
115  inline UpdateAssetRequest& WithAssetName(const char* value) { SetAssetName(value); return *this;}
116 
117 
123  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
124 
130  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
131 
137  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
138 
144  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
145 
151  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
152 
158  inline UpdateAssetRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
159 
165  inline UpdateAssetRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
166 
172  inline UpdateAssetRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
173 
174  private:
175 
176  Aws::String m_assetId;
177  bool m_assetIdHasBeenSet;
178 
179  Aws::String m_assetName;
180  bool m_assetNameHasBeenSet;
181 
182  Aws::String m_clientToken;
183  bool m_clientTokenHasBeenSet;
184  };
185 
186 } // namespace Model
187 } // namespace IoTSiteWise
188 } // namespace Aws
Aws::IoTSiteWise::Model::UpdateAssetRequest::SetAssetId
void SetAssetId(const Aws::String &value)
Definition: UpdateAssetRequest.h:49
Aws::IoTSiteWise::Model::UpdateAssetRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateAssetRequest.h:31
Aws::IoTSiteWise::Model::UpdateAssetRequest::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: UpdateAssetRequest.h:144
Aws::IoTSiteWise::Model::UpdateAssetRequest::SetClientToken
void SetClientToken(const char *value)
Definition: UpdateAssetRequest.h:151
Aws::IoTSiteWise::Model::UpdateAssetRequest
Definition: UpdateAssetRequest.h:23
IoTSiteWise_EXPORTS.h
Aws::IoTSiteWise::Model::UpdateAssetRequest::AssetNameHasBeenSet
bool AssetNameHasBeenSet() const
Definition: UpdateAssetRequest.h:85
Aws::IoTSiteWise::Model::UpdateAssetRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoTSiteWise::Model::UpdateAssetRequest::UpdateAssetRequest
UpdateAssetRequest()
AWS_IOTSITEWISE_API
#define AWS_IOTSITEWISE_API
Definition: IoTSiteWise_EXPORTS.h:28
Aws::IoTSiteWise::Model::UpdateAssetRequest::SetAssetName
void SetAssetName(Aws::String &&value)
Definition: UpdateAssetRequest.h:95
Aws::IoTSiteWise::Model::UpdateAssetRequest::SetAssetId
void SetAssetId(Aws::String &&value)
Definition: UpdateAssetRequest.h:54
Aws::IoTSiteWise::Model::UpdateAssetRequest::SetAssetName
void SetAssetName(const char *value)
Definition: UpdateAssetRequest.h:100
Aws::IoTSiteWise::Model::UpdateAssetRequest::ClientTokenHasBeenSet
bool ClientTokenHasBeenSet() const
Definition: UpdateAssetRequest.h:130
Aws::IoTSiteWise::Model::UpdateAssetRequest::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: UpdateAssetRequest.h:137
Aws::IoTSiteWise::Model::UpdateAssetRequest::WithAssetId
UpdateAssetRequest & WithAssetId(Aws::String &&value)
Definition: UpdateAssetRequest.h:69
Aws::IoTSiteWise::Model::UpdateAssetRequest::GetClientToken
const Aws::String & GetClientToken() const
Definition: UpdateAssetRequest.h:123
Aws::IoTSiteWise::Model::UpdateAssetRequest::AssetIdHasBeenSet
bool AssetIdHasBeenSet() const
Definition: UpdateAssetRequest.h:44
Aws::IoTSiteWise::Model::UpdateAssetRequest::SetAssetName
void SetAssetName(const Aws::String &value)
Definition: UpdateAssetRequest.h:90
Aws::IoTSiteWise::Model::UpdateAssetRequest::SetAssetId
void SetAssetId(const char *value)
Definition: UpdateAssetRequest.h:59
AWSString.h
Aws::IoTSiteWise::Model::UpdateAssetRequest::WithAssetId
UpdateAssetRequest & WithAssetId(const char *value)
Definition: UpdateAssetRequest.h:74
Aws::IoTSiteWise::Model::UpdateAssetRequest::WithClientToken
UpdateAssetRequest & WithClientToken(const Aws::String &value)
Definition: UpdateAssetRequest.h:158
Aws::IoTSiteWise::Model::UpdateAssetRequest::WithAssetName
UpdateAssetRequest & WithAssetName(Aws::String &&value)
Definition: UpdateAssetRequest.h:110
Aws
Definition: AccessManagementClient.h:15
IoTSiteWiseRequest.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoTSiteWise::Model::UpdateAssetRequest::WithAssetId
UpdateAssetRequest & WithAssetId(const Aws::String &value)
Definition: UpdateAssetRequest.h:64
Aws::IoTSiteWise::IoTSiteWiseRequest
Definition: IoTSiteWiseRequest.h:17
Aws::IoTSiteWise::Model::UpdateAssetRequest::WithClientToken
UpdateAssetRequest & WithClientToken(Aws::String &&value)
Definition: UpdateAssetRequest.h:165
UUID.h
Aws::IoTSiteWise::Model::UpdateAssetRequest::WithAssetName
UpdateAssetRequest & WithAssetName(const char *value)
Definition: UpdateAssetRequest.h:115
Aws::IoTSiteWise::Model::UpdateAssetRequest::WithAssetName
UpdateAssetRequest & WithAssetName(const Aws::String &value)
Definition: UpdateAssetRequest.h:105
Aws::IoTSiteWise::Model::UpdateAssetRequest::GetAssetId
const Aws::String & GetAssetId() const
Definition: UpdateAssetRequest.h:39
Aws::IoTSiteWise::Model::UpdateAssetRequest::WithClientToken
UpdateAssetRequest & WithClientToken(const char *value)
Definition: UpdateAssetRequest.h:172
Aws::IoTSiteWise::Model::UpdateAssetRequest::GetAssetName
const Aws::String & GetAssetName() const
Definition: UpdateAssetRequest.h:80