AWS SDK for C++  1.9.14
AWS SDK for C++
DisassociateAssetsRequest.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 "DisassociateAssets"; }
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 DisassociateAssetsRequest& WithAssetId(const Aws::String& value) { SetAssetId(value); return *this;}
65 
69  inline DisassociateAssetsRequest& WithAssetId(Aws::String&& value) { SetAssetId(std::move(value)); return *this;}
70 
74  inline DisassociateAssetsRequest& WithAssetId(const char* value) { SetAssetId(value); return *this;}
75 
76 
85  inline const Aws::String& GetHierarchyId() const{ return m_hierarchyId; }
86 
95  inline bool HierarchyIdHasBeenSet() const { return m_hierarchyIdHasBeenSet; }
96 
105  inline void SetHierarchyId(const Aws::String& value) { m_hierarchyIdHasBeenSet = true; m_hierarchyId = value; }
106 
115  inline void SetHierarchyId(Aws::String&& value) { m_hierarchyIdHasBeenSet = true; m_hierarchyId = std::move(value); }
116 
125  inline void SetHierarchyId(const char* value) { m_hierarchyIdHasBeenSet = true; m_hierarchyId.assign(value); }
126 
135  inline DisassociateAssetsRequest& WithHierarchyId(const Aws::String& value) { SetHierarchyId(value); return *this;}
136 
145  inline DisassociateAssetsRequest& WithHierarchyId(Aws::String&& value) { SetHierarchyId(std::move(value)); return *this;}
146 
155  inline DisassociateAssetsRequest& WithHierarchyId(const char* value) { SetHierarchyId(value); return *this;}
156 
157 
161  inline const Aws::String& GetChildAssetId() const{ return m_childAssetId; }
162 
166  inline bool ChildAssetIdHasBeenSet() const { return m_childAssetIdHasBeenSet; }
167 
171  inline void SetChildAssetId(const Aws::String& value) { m_childAssetIdHasBeenSet = true; m_childAssetId = value; }
172 
176  inline void SetChildAssetId(Aws::String&& value) { m_childAssetIdHasBeenSet = true; m_childAssetId = std::move(value); }
177 
181  inline void SetChildAssetId(const char* value) { m_childAssetIdHasBeenSet = true; m_childAssetId.assign(value); }
182 
186  inline DisassociateAssetsRequest& WithChildAssetId(const Aws::String& value) { SetChildAssetId(value); return *this;}
187 
191  inline DisassociateAssetsRequest& WithChildAssetId(Aws::String&& value) { SetChildAssetId(std::move(value)); return *this;}
192 
196  inline DisassociateAssetsRequest& WithChildAssetId(const char* value) { SetChildAssetId(value); return *this;}
197 
198 
204  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
205 
211  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
212 
218  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
219 
225  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
226 
232  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
233 
239  inline DisassociateAssetsRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
240 
246  inline DisassociateAssetsRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
247 
253  inline DisassociateAssetsRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
254 
255  private:
256 
257  Aws::String m_assetId;
258  bool m_assetIdHasBeenSet;
259 
260  Aws::String m_hierarchyId;
261  bool m_hierarchyIdHasBeenSet;
262 
263  Aws::String m_childAssetId;
264  bool m_childAssetIdHasBeenSet;
265 
266  Aws::String m_clientToken;
267  bool m_clientTokenHasBeenSet;
268  };
269 
270 } // namespace Model
271 } // namespace IoTSiteWise
272 } // namespace Aws
Aws::IoTSiteWise::Model::DisassociateAssetsRequest::WithHierarchyId
DisassociateAssetsRequest & WithHierarchyId(const Aws::String &value)
Definition: DisassociateAssetsRequest.h:135
Aws::IoTSiteWise::Model::DisassociateAssetsRequest::ClientTokenHasBeenSet
bool ClientTokenHasBeenSet() const
Definition: DisassociateAssetsRequest.h:211
Aws::IoTSiteWise::Model::DisassociateAssetsRequest::GetHierarchyId
const Aws::String & GetHierarchyId() const
Definition: DisassociateAssetsRequest.h:85
IoTSiteWise_EXPORTS.h
Aws::IoTSiteWise::Model::DisassociateAssetsRequest::WithHierarchyId
DisassociateAssetsRequest & WithHierarchyId(const char *value)
Definition: DisassociateAssetsRequest.h:155
Aws::IoTSiteWise::Model::DisassociateAssetsRequest::SetChildAssetId
void SetChildAssetId(Aws::String &&value)
Definition: DisassociateAssetsRequest.h:176
Aws::IoTSiteWise::Model::DisassociateAssetsRequest::DisassociateAssetsRequest
DisassociateAssetsRequest()
Aws::IoTSiteWise::Model::DisassociateAssetsRequest::WithClientToken
DisassociateAssetsRequest & WithClientToken(const char *value)
Definition: DisassociateAssetsRequest.h:253
AWS_IOTSITEWISE_API
#define AWS_IOTSITEWISE_API
Definition: IoTSiteWise_EXPORTS.h:28
Aws::IoTSiteWise::Model::DisassociateAssetsRequest::SetHierarchyId
void SetHierarchyId(Aws::String &&value)
Definition: DisassociateAssetsRequest.h:115
Aws::IoTSiteWise::Model::DisassociateAssetsRequest::AssetIdHasBeenSet
bool AssetIdHasBeenSet() const
Definition: DisassociateAssetsRequest.h:44
Aws::IoTSiteWise::Model::DisassociateAssetsRequest::WithAssetId
DisassociateAssetsRequest & WithAssetId(const char *value)
Definition: DisassociateAssetsRequest.h:74
Aws::IoTSiteWise::Model::DisassociateAssetsRequest::GetAssetId
const Aws::String & GetAssetId() const
Definition: DisassociateAssetsRequest.h:39
Aws::IoTSiteWise::Model::DisassociateAssetsRequest::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: DisassociateAssetsRequest.h:225
Aws::IoTSiteWise::Model::DisassociateAssetsRequest::SetChildAssetId
void SetChildAssetId(const char *value)
Definition: DisassociateAssetsRequest.h:181
Aws::IoTSiteWise::Model::DisassociateAssetsRequest::GetClientToken
const Aws::String & GetClientToken() const
Definition: DisassociateAssetsRequest.h:204
Aws::IoTSiteWise::Model::DisassociateAssetsRequest::SetAssetId
void SetAssetId(Aws::String &&value)
Definition: DisassociateAssetsRequest.h:54
Aws::IoTSiteWise::Model::DisassociateAssetsRequest::HierarchyIdHasBeenSet
bool HierarchyIdHasBeenSet() const
Definition: DisassociateAssetsRequest.h:95
Aws::IoTSiteWise::Model::DisassociateAssetsRequest::SetAssetId
void SetAssetId(const char *value)
Definition: DisassociateAssetsRequest.h:59
Aws::IoTSiteWise::Model::DisassociateAssetsRequest::SetChildAssetId
void SetChildAssetId(const Aws::String &value)
Definition: DisassociateAssetsRequest.h:171
Aws::IoTSiteWise::Model::DisassociateAssetsRequest::SetClientToken
void SetClientToken(const char *value)
Definition: DisassociateAssetsRequest.h:232
AWSString.h
Aws::IoTSiteWise::Model::DisassociateAssetsRequest::WithClientToken
DisassociateAssetsRequest & WithClientToken(const Aws::String &value)
Definition: DisassociateAssetsRequest.h:239
Aws::IoTSiteWise::Model::DisassociateAssetsRequest
Definition: DisassociateAssetsRequest.h:23
Aws::IoTSiteWise::Model::DisassociateAssetsRequest::WithHierarchyId
DisassociateAssetsRequest & WithHierarchyId(Aws::String &&value)
Definition: DisassociateAssetsRequest.h:145
Aws::IoTSiteWise::Model::DisassociateAssetsRequest::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: DisassociateAssetsRequest.h:218
Aws::IoTSiteWise::Model::DisassociateAssetsRequest::ChildAssetIdHasBeenSet
bool ChildAssetIdHasBeenSet() const
Definition: DisassociateAssetsRequest.h:166
Aws::IoTSiteWise::Model::DisassociateAssetsRequest::WithChildAssetId
DisassociateAssetsRequest & WithChildAssetId(const char *value)
Definition: DisassociateAssetsRequest.h:196
Aws::IoTSiteWise::Model::DisassociateAssetsRequest::WithAssetId
DisassociateAssetsRequest & WithAssetId(const Aws::String &value)
Definition: DisassociateAssetsRequest.h:64
Aws
Definition: AccessManagementClient.h:15
IoTSiteWiseRequest.h
Aws::IoTSiteWise::Model::DisassociateAssetsRequest::SetHierarchyId
void SetHierarchyId(const char *value)
Definition: DisassociateAssetsRequest.h:125
Aws::IoTSiteWise::Model::DisassociateAssetsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoTSiteWise::Model::DisassociateAssetsRequest::GetChildAssetId
const Aws::String & GetChildAssetId() const
Definition: DisassociateAssetsRequest.h:161
Aws::IoTSiteWise::Model::DisassociateAssetsRequest::SetHierarchyId
void SetHierarchyId(const Aws::String &value)
Definition: DisassociateAssetsRequest.h:105
Aws::IoTSiteWise::Model::DisassociateAssetsRequest::WithClientToken
DisassociateAssetsRequest & WithClientToken(Aws::String &&value)
Definition: DisassociateAssetsRequest.h:246
Aws::IoTSiteWise::Model::DisassociateAssetsRequest::WithChildAssetId
DisassociateAssetsRequest & WithChildAssetId(Aws::String &&value)
Definition: DisassociateAssetsRequest.h:191
Aws::IoTSiteWise::IoTSiteWiseRequest
Definition: IoTSiteWiseRequest.h:17
Aws::IoTSiteWise::Model::DisassociateAssetsRequest::SetAssetId
void SetAssetId(const Aws::String &value)
Definition: DisassociateAssetsRequest.h:49
Aws::IoTSiteWise::Model::DisassociateAssetsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DisassociateAssetsRequest.h:31
UUID.h
Aws::IoTSiteWise::Model::DisassociateAssetsRequest::WithAssetId
DisassociateAssetsRequest & WithAssetId(Aws::String &&value)
Definition: DisassociateAssetsRequest.h:69
Aws::IoTSiteWise::Model::DisassociateAssetsRequest::WithChildAssetId
DisassociateAssetsRequest & WithChildAssetId(const Aws::String &value)
Definition: DisassociateAssetsRequest.h:186