AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
ListAssetRelationshipsRequest.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/TraversalType.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 ListAssetRelationshipsRequest() = 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 "ListAssetRelationships"; }
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 ListAssetRelationshipsRequest& WithAssetId(AssetIdT&& value) { SetAssetId(std::forward<AssetIdT>(value)); return *this;}
57
59
67 inline TraversalType GetTraversalType() const { return m_traversalType; }
68 inline bool TraversalTypeHasBeenSet() const { return m_traversalTypeHasBeenSet; }
69 inline void SetTraversalType(TraversalType value) { m_traversalTypeHasBeenSet = true; m_traversalType = value; }
72
74
77 inline const Aws::String& GetNextToken() const { return m_nextToken; }
78 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
79 template<typename NextTokenT = Aws::String>
80 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
81 template<typename NextTokenT = Aws::String>
82 ListAssetRelationshipsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
84
86
89 inline int GetMaxResults() const { return m_maxResults; }
90 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
91 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
92 inline ListAssetRelationshipsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
94 private:
95
96 Aws::String m_assetId;
97 bool m_assetIdHasBeenSet = false;
98
100 bool m_traversalTypeHasBeenSet = false;
101
102 Aws::String m_nextToken;
103 bool m_nextTokenHasBeenSet = false;
104
105 int m_maxResults{0};
106 bool m_maxResultsHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace IoTSiteWise
111} // namespace Aws
AWS_IOTSITEWISE_API Aws::String SerializePayload() const override
ListAssetRelationshipsRequest & WithTraversalType(TraversalType value)
ListAssetRelationshipsRequest & WithNextToken(NextTokenT &&value)
AWS_IOTSITEWISE_API ListAssetRelationshipsRequest()=default
ListAssetRelationshipsRequest & WithAssetId(AssetIdT &&value)
AWS_IOTSITEWISE_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String