AWS SDK for C++  1.9.129
AWS SDK for C++
AssociateAssetsRequest.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 "AssociateAssets"; }
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 AssociateAssetsRequest& WithAssetId(const Aws::String& value) { SetAssetId(value); return *this;}
65 
69  inline AssociateAssetsRequest& WithAssetId(Aws::String&& value) { SetAssetId(std::move(value)); return *this;}
70 
74  inline AssociateAssetsRequest& WithAssetId(const char* value) { SetAssetId(value); return *this;}
75 
76 
84  inline const Aws::String& GetHierarchyId() const{ return m_hierarchyId; }
85 
93  inline bool HierarchyIdHasBeenSet() const { return m_hierarchyIdHasBeenSet; }
94 
102  inline void SetHierarchyId(const Aws::String& value) { m_hierarchyIdHasBeenSet = true; m_hierarchyId = value; }
103 
111  inline void SetHierarchyId(Aws::String&& value) { m_hierarchyIdHasBeenSet = true; m_hierarchyId = std::move(value); }
112 
120  inline void SetHierarchyId(const char* value) { m_hierarchyIdHasBeenSet = true; m_hierarchyId.assign(value); }
121 
129  inline AssociateAssetsRequest& WithHierarchyId(const Aws::String& value) { SetHierarchyId(value); return *this;}
130 
138  inline AssociateAssetsRequest& WithHierarchyId(Aws::String&& value) { SetHierarchyId(std::move(value)); return *this;}
139 
147  inline AssociateAssetsRequest& WithHierarchyId(const char* value) { SetHierarchyId(value); return *this;}
148 
149 
153  inline const Aws::String& GetChildAssetId() const{ return m_childAssetId; }
154 
158  inline bool ChildAssetIdHasBeenSet() const { return m_childAssetIdHasBeenSet; }
159 
163  inline void SetChildAssetId(const Aws::String& value) { m_childAssetIdHasBeenSet = true; m_childAssetId = value; }
164 
168  inline void SetChildAssetId(Aws::String&& value) { m_childAssetIdHasBeenSet = true; m_childAssetId = std::move(value); }
169 
173  inline void SetChildAssetId(const char* value) { m_childAssetIdHasBeenSet = true; m_childAssetId.assign(value); }
174 
178  inline AssociateAssetsRequest& WithChildAssetId(const Aws::String& value) { SetChildAssetId(value); return *this;}
179 
183  inline AssociateAssetsRequest& WithChildAssetId(Aws::String&& value) { SetChildAssetId(std::move(value)); return *this;}
184 
188  inline AssociateAssetsRequest& WithChildAssetId(const char* value) { SetChildAssetId(value); return *this;}
189 
190 
196  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
197 
203  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
204 
210  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
211 
217  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
218 
224  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
225 
231  inline AssociateAssetsRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
232 
238  inline AssociateAssetsRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
239 
245  inline AssociateAssetsRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
246 
247  private:
248 
249  Aws::String m_assetId;
250  bool m_assetIdHasBeenSet;
251 
252  Aws::String m_hierarchyId;
253  bool m_hierarchyIdHasBeenSet;
254 
255  Aws::String m_childAssetId;
256  bool m_childAssetIdHasBeenSet;
257 
258  Aws::String m_clientToken;
259  bool m_clientTokenHasBeenSet;
260  };
261 
262 } // namespace Model
263 } // namespace IoTSiteWise
264 } // namespace Aws
Aws::IoTSiteWise::Model::AssociateAssetsRequest::WithClientToken
AssociateAssetsRequest & WithClientToken(const Aws::String &value)
Definition: AssociateAssetsRequest.h:231
Aws::IoTSiteWise::Model::AssociateAssetsRequest::WithHierarchyId
AssociateAssetsRequest & WithHierarchyId(const Aws::String &value)
Definition: AssociateAssetsRequest.h:129
Aws::IoTSiteWise::Model::AssociateAssetsRequest::SetChildAssetId
void SetChildAssetId(Aws::String &&value)
Definition: AssociateAssetsRequest.h:168
Aws::IoTSiteWise::Model::AssociateAssetsRequest::WithClientToken
AssociateAssetsRequest & WithClientToken(const char *value)
Definition: AssociateAssetsRequest.h:245
Aws::IoTSiteWise::Model::AssociateAssetsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AssociateAssetsRequest.h:31
Aws::IoTSiteWise::Model::AssociateAssetsRequest::GetAssetId
const Aws::String & GetAssetId() const
Definition: AssociateAssetsRequest.h:39
Aws::IoTSiteWise::Model::AssociateAssetsRequest::WithChildAssetId
AssociateAssetsRequest & WithChildAssetId(Aws::String &&value)
Definition: AssociateAssetsRequest.h:183
Aws::IoTSiteWise::Model::AssociateAssetsRequest::SetHierarchyId
void SetHierarchyId(const char *value)
Definition: AssociateAssetsRequest.h:120
Aws::IoTSiteWise::Model::AssociateAssetsRequest::SetHierarchyId
void SetHierarchyId(Aws::String &&value)
Definition: AssociateAssetsRequest.h:111
IoTSiteWise_EXPORTS.h
Aws::IoTSiteWise::Model::AssociateAssetsRequest::SetHierarchyId
void SetHierarchyId(const Aws::String &value)
Definition: AssociateAssetsRequest.h:102
AWS_IOTSITEWISE_API
#define AWS_IOTSITEWISE_API
Definition: IoTSiteWise_EXPORTS.h:28
Aws::IoTSiteWise::Model::AssociateAssetsRequest
Definition: AssociateAssetsRequest.h:23
Aws::IoTSiteWise::Model::AssociateAssetsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoTSiteWise::Model::AssociateAssetsRequest::SetAssetId
void SetAssetId(const Aws::String &value)
Definition: AssociateAssetsRequest.h:49
Aws::IoTSiteWise::Model::AssociateAssetsRequest::SetAssetId
void SetAssetId(Aws::String &&value)
Definition: AssociateAssetsRequest.h:54
Aws::IoTSiteWise::Model::AssociateAssetsRequest::WithClientToken
AssociateAssetsRequest & WithClientToken(Aws::String &&value)
Definition: AssociateAssetsRequest.h:238
Aws::IoTSiteWise::Model::AssociateAssetsRequest::SetChildAssetId
void SetChildAssetId(const Aws::String &value)
Definition: AssociateAssetsRequest.h:163
Aws::IoTSiteWise::Model::AssociateAssetsRequest::SetChildAssetId
void SetChildAssetId(const char *value)
Definition: AssociateAssetsRequest.h:173
Aws::IoTSiteWise::Model::AssociateAssetsRequest::SetAssetId
void SetAssetId(const char *value)
Definition: AssociateAssetsRequest.h:59
Aws::IoTSiteWise::Model::AssociateAssetsRequest::WithAssetId
AssociateAssetsRequest & WithAssetId(const char *value)
Definition: AssociateAssetsRequest.h:74
Aws::IoTSiteWise::Model::AssociateAssetsRequest::WithHierarchyId
AssociateAssetsRequest & WithHierarchyId(Aws::String &&value)
Definition: AssociateAssetsRequest.h:138
Aws::IoTSiteWise::Model::AssociateAssetsRequest::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: AssociateAssetsRequest.h:217
Aws::IoTSiteWise::Model::AssociateAssetsRequest::GetHierarchyId
const Aws::String & GetHierarchyId() const
Definition: AssociateAssetsRequest.h:84
AWSString.h
Aws::IoTSiteWise::Model::AssociateAssetsRequest::SetClientToken
void SetClientToken(const char *value)
Definition: AssociateAssetsRequest.h:224
Aws::IoTSiteWise::Model::AssociateAssetsRequest::WithAssetId
AssociateAssetsRequest & WithAssetId(Aws::String &&value)
Definition: AssociateAssetsRequest.h:69
Aws::IoTSiteWise::Model::AssociateAssetsRequest::GetChildAssetId
const Aws::String & GetChildAssetId() const
Definition: AssociateAssetsRequest.h:153
Aws::IoTSiteWise::Model::AssociateAssetsRequest::GetClientToken
const Aws::String & GetClientToken() const
Definition: AssociateAssetsRequest.h:196
Aws::IoTSiteWise::Model::AssociateAssetsRequest::WithChildAssetId
AssociateAssetsRequest & WithChildAssetId(const char *value)
Definition: AssociateAssetsRequest.h:188
Aws::IoTSiteWise::Model::AssociateAssetsRequest::WithHierarchyId
AssociateAssetsRequest & WithHierarchyId(const char *value)
Definition: AssociateAssetsRequest.h:147
Aws::IoTSiteWise::Model::AssociateAssetsRequest::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: AssociateAssetsRequest.h:210
Aws
Definition: AccessManagementClient.h:15
Aws::IoTSiteWise::Model::AssociateAssetsRequest::ClientTokenHasBeenSet
bool ClientTokenHasBeenSet() const
Definition: AssociateAssetsRequest.h:203
IoTSiteWiseRequest.h
Aws::IoTSiteWise::Model::AssociateAssetsRequest::ChildAssetIdHasBeenSet
bool ChildAssetIdHasBeenSet() const
Definition: AssociateAssetsRequest.h:158
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoTSiteWise::Model::AssociateAssetsRequest::HierarchyIdHasBeenSet
bool HierarchyIdHasBeenSet() const
Definition: AssociateAssetsRequest.h:93
Aws::IoTSiteWise::Model::AssociateAssetsRequest::WithChildAssetId
AssociateAssetsRequest & WithChildAssetId(const Aws::String &value)
Definition: AssociateAssetsRequest.h:178
Aws::IoTSiteWise::IoTSiteWiseRequest
Definition: IoTSiteWiseRequest.h:17
Aws::IoTSiteWise::Model::AssociateAssetsRequest::AssetIdHasBeenSet
bool AssetIdHasBeenSet() const
Definition: AssociateAssetsRequest.h:44
UUID.h
Aws::IoTSiteWise::Model::AssociateAssetsRequest::WithAssetId
AssociateAssetsRequest & WithAssetId(const Aws::String &value)
Definition: AssociateAssetsRequest.h:64
Aws::IoTSiteWise::Model::AssociateAssetsRequest::AssociateAssetsRequest
AssociateAssetsRequest()