AWS SDK for C++  1.9.129
AWS SDK for C++
UpdateAssetPropertyRequest.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 "UpdateAssetProperty"; }
33 
34  Aws::String SerializePayload() const override;
35 
36 
40  inline const Aws::String& GetAssetId() const{ return m_assetId; }
41 
45  inline bool AssetIdHasBeenSet() const { return m_assetIdHasBeenSet; }
46 
50  inline void SetAssetId(const Aws::String& value) { m_assetIdHasBeenSet = true; m_assetId = value; }
51 
55  inline void SetAssetId(Aws::String&& value) { m_assetIdHasBeenSet = true; m_assetId = std::move(value); }
56 
60  inline void SetAssetId(const char* value) { m_assetIdHasBeenSet = true; m_assetId.assign(value); }
61 
65  inline UpdateAssetPropertyRequest& WithAssetId(const Aws::String& value) { SetAssetId(value); return *this;}
66 
70  inline UpdateAssetPropertyRequest& WithAssetId(Aws::String&& value) { SetAssetId(std::move(value)); return *this;}
71 
75  inline UpdateAssetPropertyRequest& WithAssetId(const char* value) { SetAssetId(value); return *this;}
76 
77 
81  inline const Aws::String& GetPropertyId() const{ return m_propertyId; }
82 
86  inline bool PropertyIdHasBeenSet() const { return m_propertyIdHasBeenSet; }
87 
91  inline void SetPropertyId(const Aws::String& value) { m_propertyIdHasBeenSet = true; m_propertyId = value; }
92 
96  inline void SetPropertyId(Aws::String&& value) { m_propertyIdHasBeenSet = true; m_propertyId = std::move(value); }
97 
101  inline void SetPropertyId(const char* value) { m_propertyIdHasBeenSet = true; m_propertyId.assign(value); }
102 
106  inline UpdateAssetPropertyRequest& WithPropertyId(const Aws::String& value) { SetPropertyId(value); return *this;}
107 
111  inline UpdateAssetPropertyRequest& WithPropertyId(Aws::String&& value) { SetPropertyId(std::move(value)); return *this;}
112 
116  inline UpdateAssetPropertyRequest& WithPropertyId(const char* value) { SetPropertyId(value); return *this;}
117 
118 
128  inline const Aws::String& GetPropertyAlias() const{ return m_propertyAlias; }
129 
139  inline bool PropertyAliasHasBeenSet() const { return m_propertyAliasHasBeenSet; }
140 
150  inline void SetPropertyAlias(const Aws::String& value) { m_propertyAliasHasBeenSet = true; m_propertyAlias = value; }
151 
161  inline void SetPropertyAlias(Aws::String&& value) { m_propertyAliasHasBeenSet = true; m_propertyAlias = std::move(value); }
162 
172  inline void SetPropertyAlias(const char* value) { m_propertyAliasHasBeenSet = true; m_propertyAlias.assign(value); }
173 
183  inline UpdateAssetPropertyRequest& WithPropertyAlias(const Aws::String& value) { SetPropertyAlias(value); return *this;}
184 
194  inline UpdateAssetPropertyRequest& WithPropertyAlias(Aws::String&& value) { SetPropertyAlias(std::move(value)); return *this;}
195 
205  inline UpdateAssetPropertyRequest& WithPropertyAlias(const char* value) { SetPropertyAlias(value); return *this;}
206 
207 
216  inline const PropertyNotificationState& GetPropertyNotificationState() const{ return m_propertyNotificationState; }
217 
226  inline bool PropertyNotificationStateHasBeenSet() const { return m_propertyNotificationStateHasBeenSet; }
227 
236  inline void SetPropertyNotificationState(const PropertyNotificationState& value) { m_propertyNotificationStateHasBeenSet = true; m_propertyNotificationState = value; }
237 
246  inline void SetPropertyNotificationState(PropertyNotificationState&& value) { m_propertyNotificationStateHasBeenSet = true; m_propertyNotificationState = std::move(value); }
247 
256  inline UpdateAssetPropertyRequest& WithPropertyNotificationState(const PropertyNotificationState& value) { SetPropertyNotificationState(value); return *this;}
257 
266  inline UpdateAssetPropertyRequest& WithPropertyNotificationState(PropertyNotificationState&& value) { SetPropertyNotificationState(std::move(value)); return *this;}
267 
268 
274  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
275 
281  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
282 
288  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
289 
295  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
296 
302  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
303 
309  inline UpdateAssetPropertyRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
310 
316  inline UpdateAssetPropertyRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
317 
323  inline UpdateAssetPropertyRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
324 
325  private:
326 
327  Aws::String m_assetId;
328  bool m_assetIdHasBeenSet;
329 
330  Aws::String m_propertyId;
331  bool m_propertyIdHasBeenSet;
332 
333  Aws::String m_propertyAlias;
334  bool m_propertyAliasHasBeenSet;
335 
336  PropertyNotificationState m_propertyNotificationState;
337  bool m_propertyNotificationStateHasBeenSet;
338 
339  Aws::String m_clientToken;
340  bool m_clientTokenHasBeenSet;
341  };
342 
343 } // namespace Model
344 } // namespace IoTSiteWise
345 } // namespace Aws
Aws::IoTSiteWise::Model::UpdateAssetPropertyRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoTSiteWise::Model::UpdateAssetPropertyRequest::GetClientToken
const Aws::String & GetClientToken() const
Definition: UpdateAssetPropertyRequest.h:274
Aws::IoTSiteWise::Model::UpdateAssetPropertyRequest::UpdateAssetPropertyRequest
UpdateAssetPropertyRequest()
Aws::IoTSiteWise::Model::UpdateAssetPropertyRequest::GetPropertyNotificationState
const PropertyNotificationState & GetPropertyNotificationState() const
Definition: UpdateAssetPropertyRequest.h:216
Aws::IoTSiteWise::Model::UpdateAssetPropertyRequest::GetAssetId
const Aws::String & GetAssetId() const
Definition: UpdateAssetPropertyRequest.h:40
Aws::IoTSiteWise::Model::UpdateAssetPropertyRequest::WithClientToken
UpdateAssetPropertyRequest & WithClientToken(const Aws::String &value)
Definition: UpdateAssetPropertyRequest.h:309
Aws::IoTSiteWise::Model::UpdateAssetPropertyRequest
Definition: UpdateAssetPropertyRequest.h:24
Aws::IoTSiteWise::Model::UpdateAssetPropertyRequest::WithPropertyAlias
UpdateAssetPropertyRequest & WithPropertyAlias(const char *value)
Definition: UpdateAssetPropertyRequest.h:205
IoTSiteWise_EXPORTS.h
AWS_IOTSITEWISE_API
#define AWS_IOTSITEWISE_API
Definition: IoTSiteWise_EXPORTS.h:28
Aws::IoTSiteWise::Model::UpdateAssetPropertyRequest::SetPropertyAlias
void SetPropertyAlias(Aws::String &&value)
Definition: UpdateAssetPropertyRequest.h:161
Aws::IoTSiteWise::Model::UpdateAssetPropertyRequest::WithPropertyId
UpdateAssetPropertyRequest & WithPropertyId(const Aws::String &value)
Definition: UpdateAssetPropertyRequest.h:106
Aws::IoTSiteWise::Model::UpdateAssetPropertyRequest::AssetIdHasBeenSet
bool AssetIdHasBeenSet() const
Definition: UpdateAssetPropertyRequest.h:45
Aws::IoTSiteWise::Model::UpdateAssetPropertyRequest::WithClientToken
UpdateAssetPropertyRequest & WithClientToken(const char *value)
Definition: UpdateAssetPropertyRequest.h:323
Aws::IoTSiteWise::Model::UpdateAssetPropertyRequest::SetAssetId
void SetAssetId(const Aws::String &value)
Definition: UpdateAssetPropertyRequest.h:50
Aws::IoTSiteWise::Model::UpdateAssetPropertyRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateAssetPropertyRequest.h:32
Aws::IoTSiteWise::Model::UpdateAssetPropertyRequest::SetPropertyNotificationState
void SetPropertyNotificationState(PropertyNotificationState &&value)
Definition: UpdateAssetPropertyRequest.h:246
Aws::IoTSiteWise::Model::UpdateAssetPropertyRequest::SetPropertyAlias
void SetPropertyAlias(const Aws::String &value)
Definition: UpdateAssetPropertyRequest.h:150
Aws::IoTSiteWise::Model::UpdateAssetPropertyRequest::PropertyIdHasBeenSet
bool PropertyIdHasBeenSet() const
Definition: UpdateAssetPropertyRequest.h:86
Aws::IoTSiteWise::Model::UpdateAssetPropertyRequest::WithClientToken
UpdateAssetPropertyRequest & WithClientToken(Aws::String &&value)
Definition: UpdateAssetPropertyRequest.h:316
Aws::IoTSiteWise::Model::UpdateAssetPropertyRequest::WithPropertyNotificationState
UpdateAssetPropertyRequest & WithPropertyNotificationState(const PropertyNotificationState &value)
Definition: UpdateAssetPropertyRequest.h:256
Aws::IoTSiteWise::Model::UpdateAssetPropertyRequest::SetPropertyId
void SetPropertyId(const char *value)
Definition: UpdateAssetPropertyRequest.h:101
Aws::IoTSiteWise::Model::UpdateAssetPropertyRequest::GetPropertyAlias
const Aws::String & GetPropertyAlias() const
Definition: UpdateAssetPropertyRequest.h:128
Aws::IoTSiteWise::Model::UpdateAssetPropertyRequest::SetAssetId
void SetAssetId(const char *value)
Definition: UpdateAssetPropertyRequest.h:60
Aws::IoTSiteWise::Model::UpdateAssetPropertyRequest::SetClientToken
void SetClientToken(const char *value)
Definition: UpdateAssetPropertyRequest.h:302
Aws::IoTSiteWise::Model::PropertyNotificationState
PropertyNotificationState
Definition: PropertyNotificationState.h:17
Aws::IoTSiteWise::Model::UpdateAssetPropertyRequest::WithPropertyAlias
UpdateAssetPropertyRequest & WithPropertyAlias(Aws::String &&value)
Definition: UpdateAssetPropertyRequest.h:194
Aws::IoTSiteWise::Model::UpdateAssetPropertyRequest::WithPropertyNotificationState
UpdateAssetPropertyRequest & WithPropertyNotificationState(PropertyNotificationState &&value)
Definition: UpdateAssetPropertyRequest.h:266
Aws::IoTSiteWise::Model::UpdateAssetPropertyRequest::ClientTokenHasBeenSet
bool ClientTokenHasBeenSet() const
Definition: UpdateAssetPropertyRequest.h:281
AWSString.h
Aws::IoTSiteWise::Model::UpdateAssetPropertyRequest::SetAssetId
void SetAssetId(Aws::String &&value)
Definition: UpdateAssetPropertyRequest.h:55
Aws::IoTSiteWise::Model::UpdateAssetPropertyRequest::WithPropertyAlias
UpdateAssetPropertyRequest & WithPropertyAlias(const Aws::String &value)
Definition: UpdateAssetPropertyRequest.h:183
Aws::IoTSiteWise::Model::UpdateAssetPropertyRequest::WithAssetId
UpdateAssetPropertyRequest & WithAssetId(const char *value)
Definition: UpdateAssetPropertyRequest.h:75
Aws::IoTSiteWise::Model::UpdateAssetPropertyRequest::SetPropertyNotificationState
void SetPropertyNotificationState(const PropertyNotificationState &value)
Definition: UpdateAssetPropertyRequest.h:236
Aws::IoTSiteWise::Model::UpdateAssetPropertyRequest::GetPropertyId
const Aws::String & GetPropertyId() const
Definition: UpdateAssetPropertyRequest.h:81
Aws::IoTSiteWise::Model::UpdateAssetPropertyRequest::SetPropertyId
void SetPropertyId(const Aws::String &value)
Definition: UpdateAssetPropertyRequest.h:91
Aws::IoTSiteWise::Model::UpdateAssetPropertyRequest::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: UpdateAssetPropertyRequest.h:295
Aws::IoTSiteWise::Model::UpdateAssetPropertyRequest::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: UpdateAssetPropertyRequest.h:288
Aws::IoTSiteWise::Model::UpdateAssetPropertyRequest::WithAssetId
UpdateAssetPropertyRequest & WithAssetId(Aws::String &&value)
Definition: UpdateAssetPropertyRequest.h:70
Aws
Definition: AccessManagementClient.h:15
IoTSiteWiseRequest.h
Aws::IoTSiteWise::Model::UpdateAssetPropertyRequest::WithPropertyId
UpdateAssetPropertyRequest & WithPropertyId(Aws::String &&value)
Definition: UpdateAssetPropertyRequest.h:111
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoTSiteWise::Model::UpdateAssetPropertyRequest::WithPropertyId
UpdateAssetPropertyRequest & WithPropertyId(const char *value)
Definition: UpdateAssetPropertyRequest.h:116
PropertyNotificationState.h
Aws::IoTSiteWise::Model::UpdateAssetPropertyRequest::PropertyNotificationStateHasBeenSet
bool PropertyNotificationStateHasBeenSet() const
Definition: UpdateAssetPropertyRequest.h:226
Aws::IoTSiteWise::IoTSiteWiseRequest
Definition: IoTSiteWiseRequest.h:17
Aws::IoTSiteWise::Model::UpdateAssetPropertyRequest::SetPropertyAlias
void SetPropertyAlias(const char *value)
Definition: UpdateAssetPropertyRequest.h:172
Aws::IoTSiteWise::Model::UpdateAssetPropertyRequest::WithAssetId
UpdateAssetPropertyRequest & WithAssetId(const Aws::String &value)
Definition: UpdateAssetPropertyRequest.h:65
UUID.h
Aws::IoTSiteWise::Model::UpdateAssetPropertyRequest::PropertyAliasHasBeenSet
bool PropertyAliasHasBeenSet() const
Definition: UpdateAssetPropertyRequest.h:139
Aws::IoTSiteWise::Model::UpdateAssetPropertyRequest::SetPropertyId
void SetPropertyId(Aws::String &&value)
Definition: UpdateAssetPropertyRequest.h:96