AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
UpdateAssetPropertyRequest.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/iotsitewise/model/PropertyNotificationState.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 UpdateAssetPropertyRequest() = 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 "UpdateAssetProperty"; }
33
34 AWS_IOTSITEWISE_API Aws::String SerializePayload() const override;
35
36
38
45 inline const Aws::String& GetAssetId() const { return m_assetId; }
46 inline bool AssetIdHasBeenSet() const { return m_assetIdHasBeenSet; }
47 template<typename AssetIdT = Aws::String>
48 void SetAssetId(AssetIdT&& value) { m_assetIdHasBeenSet = true; m_assetId = std::forward<AssetIdT>(value); }
49 template<typename AssetIdT = Aws::String>
50 UpdateAssetPropertyRequest& WithAssetId(AssetIdT&& value) { SetAssetId(std::forward<AssetIdT>(value)); return *this;}
52
54
61 inline const Aws::String& GetPropertyId() const { return m_propertyId; }
62 inline bool PropertyIdHasBeenSet() const { return m_propertyIdHasBeenSet; }
63 template<typename PropertyIdT = Aws::String>
64 void SetPropertyId(PropertyIdT&& value) { m_propertyIdHasBeenSet = true; m_propertyId = std::forward<PropertyIdT>(value); }
65 template<typename PropertyIdT = Aws::String>
66 UpdateAssetPropertyRequest& WithPropertyId(PropertyIdT&& value) { SetPropertyId(std::forward<PropertyIdT>(value)); return *this;}
68
70
79 inline const Aws::String& GetPropertyAlias() const { return m_propertyAlias; }
80 inline bool PropertyAliasHasBeenSet() const { return m_propertyAliasHasBeenSet; }
81 template<typename PropertyAliasT = Aws::String>
82 void SetPropertyAlias(PropertyAliasT&& value) { m_propertyAliasHasBeenSet = true; m_propertyAlias = std::forward<PropertyAliasT>(value); }
83 template<typename PropertyAliasT = Aws::String>
84 UpdateAssetPropertyRequest& WithPropertyAlias(PropertyAliasT&& value) { SetPropertyAlias(std::forward<PropertyAliasT>(value)); return *this;}
86
88
96 inline PropertyNotificationState GetPropertyNotificationState() const { return m_propertyNotificationState; }
97 inline bool PropertyNotificationStateHasBeenSet() const { return m_propertyNotificationStateHasBeenSet; }
98 inline void SetPropertyNotificationState(PropertyNotificationState value) { m_propertyNotificationStateHasBeenSet = true; m_propertyNotificationState = value; }
101
103
108 inline const Aws::String& GetClientToken() const { return m_clientToken; }
109 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
110 template<typename ClientTokenT = Aws::String>
111 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
112 template<typename ClientTokenT = Aws::String>
113 UpdateAssetPropertyRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
115
117
122 inline const Aws::String& GetPropertyUnit() const { return m_propertyUnit; }
123 inline bool PropertyUnitHasBeenSet() const { return m_propertyUnitHasBeenSet; }
124 template<typename PropertyUnitT = Aws::String>
125 void SetPropertyUnit(PropertyUnitT&& value) { m_propertyUnitHasBeenSet = true; m_propertyUnit = std::forward<PropertyUnitT>(value); }
126 template<typename PropertyUnitT = Aws::String>
127 UpdateAssetPropertyRequest& WithPropertyUnit(PropertyUnitT&& value) { SetPropertyUnit(std::forward<PropertyUnitT>(value)); return *this;}
129 private:
130
131 Aws::String m_assetId;
132 bool m_assetIdHasBeenSet = false;
133
134 Aws::String m_propertyId;
135 bool m_propertyIdHasBeenSet = false;
136
137 Aws::String m_propertyAlias;
138 bool m_propertyAliasHasBeenSet = false;
139
141 bool m_propertyNotificationStateHasBeenSet = false;
142
144 bool m_clientTokenHasBeenSet = true;
145
146 Aws::String m_propertyUnit;
147 bool m_propertyUnitHasBeenSet = false;
148 };
149
150} // namespace Model
151} // namespace IoTSiteWise
152} // namespace Aws
UpdateAssetPropertyRequest & WithPropertyAlias(PropertyAliasT &&value)
void SetPropertyNotificationState(PropertyNotificationState value)
UpdateAssetPropertyRequest & WithPropertyId(PropertyIdT &&value)
virtual const char * GetServiceRequestName() const override
UpdateAssetPropertyRequest & WithPropertyNotificationState(PropertyNotificationState value)
AWS_IOTSITEWISE_API Aws::String SerializePayload() const override
UpdateAssetPropertyRequest & WithAssetId(AssetIdT &&value)
UpdateAssetPropertyRequest & WithClientToken(ClientTokenT &&value)
UpdateAssetPropertyRequest & WithPropertyUnit(PropertyUnitT &&value)
AWS_IOTSITEWISE_API UpdateAssetPropertyRequest()=default
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String