AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAssetId(const Aws::String& value) { m_assetIdHasBeenSet = true; m_assetId = value; }
53 inline void SetAssetId(Aws::String&& value) { m_assetIdHasBeenSet = true; m_assetId = std::move(value); }
54 inline void SetAssetId(const char* value) { m_assetIdHasBeenSet = true; m_assetId.assign(value); }
55 inline ListAssociatedAssetsRequest& WithAssetId(const Aws::String& value) { SetAssetId(value); return *this;}
56 inline ListAssociatedAssetsRequest& WithAssetId(Aws::String&& value) { SetAssetId(std::move(value)); return *this;}
57 inline ListAssociatedAssetsRequest& WithAssetId(const char* value) { SetAssetId(value); return *this;}
59
61
73 inline const Aws::String& GetHierarchyId() const{ return m_hierarchyId; }
74 inline bool HierarchyIdHasBeenSet() const { return m_hierarchyIdHasBeenSet; }
75 inline void SetHierarchyId(const Aws::String& value) { m_hierarchyIdHasBeenSet = true; m_hierarchyId = value; }
76 inline void SetHierarchyId(Aws::String&& value) { m_hierarchyIdHasBeenSet = true; m_hierarchyId = std::move(value); }
77 inline void SetHierarchyId(const char* value) { m_hierarchyIdHasBeenSet = true; m_hierarchyId.assign(value); }
78 inline ListAssociatedAssetsRequest& WithHierarchyId(const Aws::String& value) { SetHierarchyId(value); return *this;}
79 inline ListAssociatedAssetsRequest& WithHierarchyId(Aws::String&& value) { SetHierarchyId(std::move(value)); return *this;}
80 inline ListAssociatedAssetsRequest& WithHierarchyId(const char* value) { SetHierarchyId(value); return *this;}
82
84
91 inline const TraversalDirection& GetTraversalDirection() const{ return m_traversalDirection; }
92 inline bool TraversalDirectionHasBeenSet() const { return m_traversalDirectionHasBeenSet; }
93 inline void SetTraversalDirection(const TraversalDirection& value) { m_traversalDirectionHasBeenSet = true; m_traversalDirection = value; }
94 inline void SetTraversalDirection(TraversalDirection&& value) { m_traversalDirectionHasBeenSet = true; m_traversalDirection = std::move(value); }
98
100
103 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
104 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
105 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
106 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
107 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
108 inline ListAssociatedAssetsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
109 inline ListAssociatedAssetsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
110 inline ListAssociatedAssetsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
112
114
118 inline int GetMaxResults() const{ return m_maxResults; }
119 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
120 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
121 inline ListAssociatedAssetsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
123 private:
124
125 Aws::String m_assetId;
126 bool m_assetIdHasBeenSet = false;
127
128 Aws::String m_hierarchyId;
129 bool m_hierarchyIdHasBeenSet = false;
130
131 TraversalDirection m_traversalDirection;
132 bool m_traversalDirectionHasBeenSet = false;
133
134 Aws::String m_nextToken;
135 bool m_nextTokenHasBeenSet = false;
136
137 int m_maxResults;
138 bool m_maxResultsHasBeenSet = false;
139 };
140
141} // namespace Model
142} // namespace IoTSiteWise
143} // namespace Aws
ListAssociatedAssetsRequest & WithHierarchyId(const char *value)
ListAssociatedAssetsRequest & WithAssetId(const char *value)
ListAssociatedAssetsRequest & WithTraversalDirection(TraversalDirection &&value)
ListAssociatedAssetsRequest & WithHierarchyId(const Aws::String &value)
ListAssociatedAssetsRequest & WithNextToken(const Aws::String &value)
ListAssociatedAssetsRequest & WithAssetId(const Aws::String &value)
AWS_IOTSITEWISE_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListAssociatedAssetsRequest & WithHierarchyId(Aws::String &&value)
ListAssociatedAssetsRequest & WithTraversalDirection(const TraversalDirection &value)
ListAssociatedAssetsRequest & WithNextToken(Aws::String &&value)
ListAssociatedAssetsRequest & WithAssetId(Aws::String &&value)
ListAssociatedAssetsRequest & WithNextToken(const char *value)
AWS_IOTSITEWISE_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String