AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAssetId(const Aws::String& value) { m_assetIdHasBeenSet = true; m_assetId = value; }
48 inline void SetAssetId(Aws::String&& value) { m_assetIdHasBeenSet = true; m_assetId = std::move(value); }
49 inline void SetAssetId(const char* value) { m_assetIdHasBeenSet = true; m_assetId.assign(value); }
50 inline UpdateAssetPropertyRequest& WithAssetId(const Aws::String& value) { SetAssetId(value); return *this;}
51 inline UpdateAssetPropertyRequest& WithAssetId(Aws::String&& value) { SetAssetId(std::move(value)); return *this;}
52 inline UpdateAssetPropertyRequest& WithAssetId(const char* value) { SetAssetId(value); return *this;}
54
56
63 inline const Aws::String& GetPropertyId() const{ return m_propertyId; }
64 inline bool PropertyIdHasBeenSet() const { return m_propertyIdHasBeenSet; }
65 inline void SetPropertyId(const Aws::String& value) { m_propertyIdHasBeenSet = true; m_propertyId = value; }
66 inline void SetPropertyId(Aws::String&& value) { m_propertyIdHasBeenSet = true; m_propertyId = std::move(value); }
67 inline void SetPropertyId(const char* value) { m_propertyIdHasBeenSet = true; m_propertyId.assign(value); }
68 inline UpdateAssetPropertyRequest& WithPropertyId(const Aws::String& value) { SetPropertyId(value); return *this;}
69 inline UpdateAssetPropertyRequest& WithPropertyId(Aws::String&& value) { SetPropertyId(std::move(value)); return *this;}
70 inline UpdateAssetPropertyRequest& WithPropertyId(const char* value) { SetPropertyId(value); return *this;}
72
74
83 inline const Aws::String& GetPropertyAlias() const{ return m_propertyAlias; }
84 inline bool PropertyAliasHasBeenSet() const { return m_propertyAliasHasBeenSet; }
85 inline void SetPropertyAlias(const Aws::String& value) { m_propertyAliasHasBeenSet = true; m_propertyAlias = value; }
86 inline void SetPropertyAlias(Aws::String&& value) { m_propertyAliasHasBeenSet = true; m_propertyAlias = std::move(value); }
87 inline void SetPropertyAlias(const char* value) { m_propertyAliasHasBeenSet = true; m_propertyAlias.assign(value); }
88 inline UpdateAssetPropertyRequest& WithPropertyAlias(const Aws::String& value) { SetPropertyAlias(value); return *this;}
89 inline UpdateAssetPropertyRequest& WithPropertyAlias(Aws::String&& value) { SetPropertyAlias(std::move(value)); return *this;}
90 inline UpdateAssetPropertyRequest& WithPropertyAlias(const char* value) { SetPropertyAlias(value); return *this;}
92
94
102 inline const PropertyNotificationState& GetPropertyNotificationState() const{ return m_propertyNotificationState; }
103 inline bool PropertyNotificationStateHasBeenSet() const { return m_propertyNotificationStateHasBeenSet; }
104 inline void SetPropertyNotificationState(const PropertyNotificationState& value) { m_propertyNotificationStateHasBeenSet = true; m_propertyNotificationState = value; }
105 inline void SetPropertyNotificationState(PropertyNotificationState&& value) { m_propertyNotificationStateHasBeenSet = true; m_propertyNotificationState = std::move(value); }
109
111
116 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
117 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
118 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
119 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
120 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
121 inline UpdateAssetPropertyRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
122 inline UpdateAssetPropertyRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
123 inline UpdateAssetPropertyRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
125
127
132 inline const Aws::String& GetPropertyUnit() const{ return m_propertyUnit; }
133 inline bool PropertyUnitHasBeenSet() const { return m_propertyUnitHasBeenSet; }
134 inline void SetPropertyUnit(const Aws::String& value) { m_propertyUnitHasBeenSet = true; m_propertyUnit = value; }
135 inline void SetPropertyUnit(Aws::String&& value) { m_propertyUnitHasBeenSet = true; m_propertyUnit = std::move(value); }
136 inline void SetPropertyUnit(const char* value) { m_propertyUnitHasBeenSet = true; m_propertyUnit.assign(value); }
137 inline UpdateAssetPropertyRequest& WithPropertyUnit(const Aws::String& value) { SetPropertyUnit(value); return *this;}
138 inline UpdateAssetPropertyRequest& WithPropertyUnit(Aws::String&& value) { SetPropertyUnit(std::move(value)); return *this;}
139 inline UpdateAssetPropertyRequest& WithPropertyUnit(const char* value) { SetPropertyUnit(value); return *this;}
141 private:
142
143 Aws::String m_assetId;
144 bool m_assetIdHasBeenSet = false;
145
146 Aws::String m_propertyId;
147 bool m_propertyIdHasBeenSet = false;
148
149 Aws::String m_propertyAlias;
150 bool m_propertyAliasHasBeenSet = false;
151
152 PropertyNotificationState m_propertyNotificationState;
153 bool m_propertyNotificationStateHasBeenSet = false;
154
155 Aws::String m_clientToken;
156 bool m_clientTokenHasBeenSet = false;
157
158 Aws::String m_propertyUnit;
159 bool m_propertyUnitHasBeenSet = false;
160 };
161
162} // namespace Model
163} // namespace IoTSiteWise
164} // namespace Aws
UpdateAssetPropertyRequest & WithAssetId(const char *value)
UpdateAssetPropertyRequest & WithPropertyAlias(const char *value)
UpdateAssetPropertyRequest & WithAssetId(const Aws::String &value)
UpdateAssetPropertyRequest & WithPropertyUnit(Aws::String &&value)
UpdateAssetPropertyRequest & WithPropertyId(const char *value)
void SetPropertyNotificationState(PropertyNotificationState &&value)
UpdateAssetPropertyRequest & WithPropertyNotificationState(PropertyNotificationState &&value)
UpdateAssetPropertyRequest & WithAssetId(Aws::String &&value)
UpdateAssetPropertyRequest & WithPropertyAlias(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
UpdateAssetPropertyRequest & WithClientToken(const char *value)
const PropertyNotificationState & GetPropertyNotificationState() const
UpdateAssetPropertyRequest & WithClientToken(const Aws::String &value)
UpdateAssetPropertyRequest & WithPropertyId(Aws::String &&value)
AWS_IOTSITEWISE_API Aws::String SerializePayload() const override
UpdateAssetPropertyRequest & WithPropertyAlias(const Aws::String &value)
UpdateAssetPropertyRequest & WithClientToken(Aws::String &&value)
UpdateAssetPropertyRequest & WithPropertyId(const Aws::String &value)
UpdateAssetPropertyRequest & WithPropertyNotificationState(const PropertyNotificationState &value)
UpdateAssetPropertyRequest & WithPropertyUnit(const char *value)
void SetPropertyNotificationState(const PropertyNotificationState &value)
UpdateAssetPropertyRequest & WithPropertyUnit(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String