AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AssociateAssetsRequest.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 <utility>
11#include <aws/core/utils/UUID.h>
12
13namespace Aws
14{
15namespace IoTSiteWise
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_IOTSITEWISE_API AssociateAssetsRequest();
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_IOTSITEWISE_API Aws::String SerializePayload() const override;
34
35
37
44 inline const Aws::String& GetAssetId() const{ return m_assetId; }
45 inline bool AssetIdHasBeenSet() const { return m_assetIdHasBeenSet; }
46 inline void SetAssetId(const Aws::String& value) { m_assetIdHasBeenSet = true; m_assetId = value; }
47 inline void SetAssetId(Aws::String&& value) { m_assetIdHasBeenSet = true; m_assetId = std::move(value); }
48 inline void SetAssetId(const char* value) { m_assetIdHasBeenSet = true; m_assetId.assign(value); }
49 inline AssociateAssetsRequest& WithAssetId(const Aws::String& value) { SetAssetId(value); return *this;}
50 inline AssociateAssetsRequest& WithAssetId(Aws::String&& value) { SetAssetId(std::move(value)); return *this;}
51 inline AssociateAssetsRequest& WithAssetId(const char* value) { SetAssetId(value); return *this;}
53
55
66 inline const Aws::String& GetHierarchyId() const{ return m_hierarchyId; }
67 inline bool HierarchyIdHasBeenSet() const { return m_hierarchyIdHasBeenSet; }
68 inline void SetHierarchyId(const Aws::String& value) { m_hierarchyIdHasBeenSet = true; m_hierarchyId = value; }
69 inline void SetHierarchyId(Aws::String&& value) { m_hierarchyIdHasBeenSet = true; m_hierarchyId = std::move(value); }
70 inline void SetHierarchyId(const char* value) { m_hierarchyIdHasBeenSet = true; m_hierarchyId.assign(value); }
71 inline AssociateAssetsRequest& WithHierarchyId(const Aws::String& value) { SetHierarchyId(value); return *this;}
72 inline AssociateAssetsRequest& WithHierarchyId(Aws::String&& value) { SetHierarchyId(std::move(value)); return *this;}
73 inline AssociateAssetsRequest& WithHierarchyId(const char* value) { SetHierarchyId(value); return *this;}
75
77
84 inline const Aws::String& GetChildAssetId() const{ return m_childAssetId; }
85 inline bool ChildAssetIdHasBeenSet() const { return m_childAssetIdHasBeenSet; }
86 inline void SetChildAssetId(const Aws::String& value) { m_childAssetIdHasBeenSet = true; m_childAssetId = value; }
87 inline void SetChildAssetId(Aws::String&& value) { m_childAssetIdHasBeenSet = true; m_childAssetId = std::move(value); }
88 inline void SetChildAssetId(const char* value) { m_childAssetIdHasBeenSet = true; m_childAssetId.assign(value); }
89 inline AssociateAssetsRequest& WithChildAssetId(const Aws::String& value) { SetChildAssetId(value); return *this;}
90 inline AssociateAssetsRequest& WithChildAssetId(Aws::String&& value) { SetChildAssetId(std::move(value)); return *this;}
91 inline AssociateAssetsRequest& WithChildAssetId(const char* value) { SetChildAssetId(value); return *this;}
93
95
100 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
101 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
102 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
103 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
104 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
105 inline AssociateAssetsRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
106 inline AssociateAssetsRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
107 inline AssociateAssetsRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
109 private:
110
111 Aws::String m_assetId;
112 bool m_assetIdHasBeenSet = false;
113
114 Aws::String m_hierarchyId;
115 bool m_hierarchyIdHasBeenSet = false;
116
117 Aws::String m_childAssetId;
118 bool m_childAssetIdHasBeenSet = false;
119
120 Aws::String m_clientToken;
121 bool m_clientTokenHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace IoTSiteWise
126} // namespace Aws
AssociateAssetsRequest & WithChildAssetId(const char *value)
AssociateAssetsRequest & WithClientToken(Aws::String &&value)
AWS_IOTSITEWISE_API Aws::String SerializePayload() const override
AssociateAssetsRequest & WithAssetId(const char *value)
AssociateAssetsRequest & WithClientToken(const char *value)
AssociateAssetsRequest & WithClientToken(const Aws::String &value)
AssociateAssetsRequest & WithChildAssetId(const Aws::String &value)
AssociateAssetsRequest & WithAssetId(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
AssociateAssetsRequest & WithAssetId(Aws::String &&value)
AssociateAssetsRequest & WithHierarchyId(Aws::String &&value)
AssociateAssetsRequest & WithChildAssetId(Aws::String &&value)
AssociateAssetsRequest & WithHierarchyId(const Aws::String &value)
AssociateAssetsRequest & WithHierarchyId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String