AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ListAssociatedAssetsRequest.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/TraversalDirection.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Http
16{
17 class URI;
18} //namespace Http
19namespace IoTSiteWise
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_IOTSITEWISE_API ListAssociatedAssetsRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "ListAssociatedAssets"; }
36
37 AWS_IOTSITEWISE_API Aws::String SerializePayload() const override;
38
39 AWS_IOTSITEWISE_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40
41
43
50 inline const Aws::String& GetAssetId() const { return m_assetId; }
51 inline bool AssetIdHasBeenSet() const { return m_assetIdHasBeenSet; }
52 template<typename AssetIdT = Aws::String>
53 void SetAssetId(AssetIdT&& value) { m_assetIdHasBeenSet = true; m_assetId = std::forward<AssetIdT>(value); }
54 template<typename AssetIdT = Aws::String>
55 ListAssociatedAssetsRequest& WithAssetId(AssetIdT&& value) { SetAssetId(std::forward<AssetIdT>(value)); return *this;}
57
59
71 inline const Aws::String& GetHierarchyId() const { return m_hierarchyId; }
72 inline bool HierarchyIdHasBeenSet() const { return m_hierarchyIdHasBeenSet; }
73 template<typename HierarchyIdT = Aws::String>
74 void SetHierarchyId(HierarchyIdT&& value) { m_hierarchyIdHasBeenSet = true; m_hierarchyId = std::forward<HierarchyIdT>(value); }
75 template<typename HierarchyIdT = Aws::String>
76 ListAssociatedAssetsRequest& WithHierarchyId(HierarchyIdT&& value) { SetHierarchyId(std::forward<HierarchyIdT>(value)); return *this;}
78
80
87 inline TraversalDirection GetTraversalDirection() const { return m_traversalDirection; }
88 inline bool TraversalDirectionHasBeenSet() const { return m_traversalDirectionHasBeenSet; }
89 inline void SetTraversalDirection(TraversalDirection value) { m_traversalDirectionHasBeenSet = true; m_traversalDirection = value; }
92
94
97 inline const Aws::String& GetNextToken() const { return m_nextToken; }
98 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
99 template<typename NextTokenT = Aws::String>
100 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
101 template<typename NextTokenT = Aws::String>
102 ListAssociatedAssetsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
104
106
110 inline int GetMaxResults() const { return m_maxResults; }
111 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
112 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
113 inline ListAssociatedAssetsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
115 private:
116
117 Aws::String m_assetId;
118 bool m_assetIdHasBeenSet = false;
119
120 Aws::String m_hierarchyId;
121 bool m_hierarchyIdHasBeenSet = false;
122
124 bool m_traversalDirectionHasBeenSet = false;
125
126 Aws::String m_nextToken;
127 bool m_nextTokenHasBeenSet = false;
128
129 int m_maxResults{0};
130 bool m_maxResultsHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace IoTSiteWise
135} // namespace Aws
ListAssociatedAssetsRequest & WithNextToken(NextTokenT &&value)
AWS_IOTSITEWISE_API ListAssociatedAssetsRequest()=default
AWS_IOTSITEWISE_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListAssociatedAssetsRequest & WithHierarchyId(HierarchyIdT &&value)
AWS_IOTSITEWISE_API Aws::String SerializePayload() const override
ListAssociatedAssetsRequest & WithAssetId(AssetIdT &&value)
ListAssociatedAssetsRequest & WithTraversalDirection(TraversalDirection value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String