AWS SDK for C++  1.9.22
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 
129  inline const Aws::String& GetPropertyAlias() const{ return m_propertyAlias; }
130 
141  inline bool PropertyAliasHasBeenSet() const { return m_propertyAliasHasBeenSet; }
142 
153  inline void SetPropertyAlias(const Aws::String& value) { m_propertyAliasHasBeenSet = true; m_propertyAlias = value; }
154 
165  inline void SetPropertyAlias(Aws::String&& value) { m_propertyAliasHasBeenSet = true; m_propertyAlias = std::move(value); }
166 
177  inline void SetPropertyAlias(const char* value) { m_propertyAliasHasBeenSet = true; m_propertyAlias.assign(value); }
178 
189  inline UpdateAssetPropertyRequest& WithPropertyAlias(const Aws::String& value) { SetPropertyAlias(value); return *this;}
190 
201  inline UpdateAssetPropertyRequest& WithPropertyAlias(Aws::String&& value) { SetPropertyAlias(std::move(value)); return *this;}
202 
213  inline UpdateAssetPropertyRequest& WithPropertyAlias(const char* value) { SetPropertyAlias(value); return *this;}
214 
215 
224  inline const PropertyNotificationState& GetPropertyNotificationState() const{ return m_propertyNotificationState; }
225 
234  inline bool PropertyNotificationStateHasBeenSet() const { return m_propertyNotificationStateHasBeenSet; }
235 
244  inline void SetPropertyNotificationState(const PropertyNotificationState& value) { m_propertyNotificationStateHasBeenSet = true; m_propertyNotificationState = value; }
245 
254  inline void SetPropertyNotificationState(PropertyNotificationState&& value) { m_propertyNotificationStateHasBeenSet = true; m_propertyNotificationState = std::move(value); }
255 
264  inline UpdateAssetPropertyRequest& WithPropertyNotificationState(const PropertyNotificationState& value) { SetPropertyNotificationState(value); return *this;}
265 
274  inline UpdateAssetPropertyRequest& WithPropertyNotificationState(PropertyNotificationState&& value) { SetPropertyNotificationState(std::move(value)); return *this;}
275 
276 
282  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
283 
289  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
290 
296  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
297 
303  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
304 
310  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
311 
317  inline UpdateAssetPropertyRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
318 
324  inline UpdateAssetPropertyRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
325 
331  inline UpdateAssetPropertyRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
332 
333  private:
334 
335  Aws::String m_assetId;
336  bool m_assetIdHasBeenSet;
337 
338  Aws::String m_propertyId;
339  bool m_propertyIdHasBeenSet;
340 
341  Aws::String m_propertyAlias;
342  bool m_propertyAliasHasBeenSet;
343 
344  PropertyNotificationState m_propertyNotificationState;
345  bool m_propertyNotificationStateHasBeenSet;
346 
347  Aws::String m_clientToken;
348  bool m_clientTokenHasBeenSet;
349  };
350 
351 } // namespace Model
352 } // namespace IoTSiteWise
353 } // 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:282
Aws::IoTSiteWise::Model::UpdateAssetPropertyRequest::UpdateAssetPropertyRequest
UpdateAssetPropertyRequest()
Aws::IoTSiteWise::Model::UpdateAssetPropertyRequest::GetPropertyNotificationState
const PropertyNotificationState & GetPropertyNotificationState() const
Definition: UpdateAssetPropertyRequest.h:224
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:317
Aws::IoTSiteWise::Model::UpdateAssetPropertyRequest
Definition: UpdateAssetPropertyRequest.h:24
Aws::IoTSiteWise::Model::UpdateAssetPropertyRequest::WithPropertyAlias
UpdateAssetPropertyRequest & WithPropertyAlias(const char *value)
Definition: UpdateAssetPropertyRequest.h:213
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:165
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:331
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:254
Aws::IoTSiteWise::Model::UpdateAssetPropertyRequest::SetPropertyAlias
void SetPropertyAlias(const Aws::String &value)
Definition: UpdateAssetPropertyRequest.h:153
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:324
Aws::IoTSiteWise::Model::UpdateAssetPropertyRequest::WithPropertyNotificationState
UpdateAssetPropertyRequest & WithPropertyNotificationState(const PropertyNotificationState &value)
Definition: UpdateAssetPropertyRequest.h:264
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:129
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:310
Aws::IoTSiteWise::Model::PropertyNotificationState
PropertyNotificationState
Definition: PropertyNotificationState.h:17
Aws::IoTSiteWise::Model::UpdateAssetPropertyRequest::WithPropertyAlias
UpdateAssetPropertyRequest & WithPropertyAlias(Aws::String &&value)
Definition: UpdateAssetPropertyRequest.h:201
Aws::IoTSiteWise::Model::UpdateAssetPropertyRequest::WithPropertyNotificationState
UpdateAssetPropertyRequest & WithPropertyNotificationState(PropertyNotificationState &&value)
Definition: UpdateAssetPropertyRequest.h:274
Aws::IoTSiteWise::Model::UpdateAssetPropertyRequest::ClientTokenHasBeenSet
bool ClientTokenHasBeenSet() const
Definition: UpdateAssetPropertyRequest.h:289
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:189
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:244
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:303
Aws::IoTSiteWise::Model::UpdateAssetPropertyRequest::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: UpdateAssetPropertyRequest.h:296
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:234
Aws::IoTSiteWise::IoTSiteWiseRequest
Definition: IoTSiteWiseRequest.h:17
Aws::IoTSiteWise::Model::UpdateAssetPropertyRequest::SetPropertyAlias
void SetPropertyAlias(const char *value)
Definition: UpdateAssetPropertyRequest.h:177
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:141
Aws::IoTSiteWise::Model::UpdateAssetPropertyRequest::SetPropertyId
void SetPropertyId(Aws::String &&value)
Definition: UpdateAssetPropertyRequest.h:96