AWS SDK for C++

AWS SDK for C++ Version 1.11.608

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() = default;
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 template<typename AssetIdT = Aws::String>
47 void SetAssetId(AssetIdT&& value) { m_assetIdHasBeenSet = true; m_assetId = std::forward<AssetIdT>(value); }
48 template<typename AssetIdT = Aws::String>
49 AssociateAssetsRequest& WithAssetId(AssetIdT&& value) { SetAssetId(std::forward<AssetIdT>(value)); return *this;}
51
53
64 inline const Aws::String& GetHierarchyId() const { return m_hierarchyId; }
65 inline bool HierarchyIdHasBeenSet() const { return m_hierarchyIdHasBeenSet; }
66 template<typename HierarchyIdT = Aws::String>
67 void SetHierarchyId(HierarchyIdT&& value) { m_hierarchyIdHasBeenSet = true; m_hierarchyId = std::forward<HierarchyIdT>(value); }
68 template<typename HierarchyIdT = Aws::String>
69 AssociateAssetsRequest& WithHierarchyId(HierarchyIdT&& value) { SetHierarchyId(std::forward<HierarchyIdT>(value)); return *this;}
71
73
80 inline const Aws::String& GetChildAssetId() const { return m_childAssetId; }
81 inline bool ChildAssetIdHasBeenSet() const { return m_childAssetIdHasBeenSet; }
82 template<typename ChildAssetIdT = Aws::String>
83 void SetChildAssetId(ChildAssetIdT&& value) { m_childAssetIdHasBeenSet = true; m_childAssetId = std::forward<ChildAssetIdT>(value); }
84 template<typename ChildAssetIdT = Aws::String>
85 AssociateAssetsRequest& WithChildAssetId(ChildAssetIdT&& value) { SetChildAssetId(std::forward<ChildAssetIdT>(value)); return *this;}
87
89
94 inline const Aws::String& GetClientToken() const { return m_clientToken; }
95 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
96 template<typename ClientTokenT = Aws::String>
97 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
98 template<typename ClientTokenT = Aws::String>
99 AssociateAssetsRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
101 private:
102
103 Aws::String m_assetId;
104 bool m_assetIdHasBeenSet = false;
105
106 Aws::String m_hierarchyId;
107 bool m_hierarchyIdHasBeenSet = false;
108
109 Aws::String m_childAssetId;
110 bool m_childAssetIdHasBeenSet = false;
111
113 bool m_clientTokenHasBeenSet = true;
114 };
115
116} // namespace Model
117} // namespace IoTSiteWise
118} // namespace Aws
AssociateAssetsRequest & WithAssetId(AssetIdT &&value)
AWS_IOTSITEWISE_API Aws::String SerializePayload() const override
AssociateAssetsRequest & WithClientToken(ClientTokenT &&value)
virtual const char * GetServiceRequestName() const override
AssociateAssetsRequest & WithHierarchyId(HierarchyIdT &&value)
AWS_IOTSITEWISE_API AssociateAssetsRequest()=default
AssociateAssetsRequest & WithChildAssetId(ChildAssetIdT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String