AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 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 ListAssetRelationshipsRequest& WithAssetId(const Aws::String& value) { SetAssetId(value); return *this;}
56 inline ListAssetRelationshipsRequest& WithAssetId(Aws::String&& value) { SetAssetId(std::move(value)); return *this;}
57 inline ListAssetRelationshipsRequest& WithAssetId(const char* value) { SetAssetId(value); return *this;}
59
61
69 inline const TraversalType& GetTraversalType() const{ return m_traversalType; }
70 inline bool TraversalTypeHasBeenSet() const { return m_traversalTypeHasBeenSet; }
71 inline void SetTraversalType(const TraversalType& value) { m_traversalTypeHasBeenSet = true; m_traversalType = value; }
72 inline void SetTraversalType(TraversalType&& value) { m_traversalTypeHasBeenSet = true; m_traversalType = std::move(value); }
74 inline ListAssetRelationshipsRequest& WithTraversalType(TraversalType&& value) { SetTraversalType(std::move(value)); return *this;}
76
78
81 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
82 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
83 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
84 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
85 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
86 inline ListAssetRelationshipsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
87 inline ListAssetRelationshipsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
88 inline ListAssetRelationshipsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
90
92
95 inline int GetMaxResults() const{ return m_maxResults; }
96 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
97 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
98 inline ListAssetRelationshipsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
100 private:
101
102 Aws::String m_assetId;
103 bool m_assetIdHasBeenSet = false;
104
105 TraversalType m_traversalType;
106 bool m_traversalTypeHasBeenSet = false;
107
108 Aws::String m_nextToken;
109 bool m_nextTokenHasBeenSet = false;
110
111 int m_maxResults;
112 bool m_maxResultsHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace IoTSiteWise
117} // namespace Aws
ListAssetRelationshipsRequest & WithAssetId(Aws::String &&value)
AWS_IOTSITEWISE_API Aws::String SerializePayload() const override
ListAssetRelationshipsRequest & WithAssetId(const char *value)
ListAssetRelationshipsRequest & WithNextToken(const char *value)
ListAssetRelationshipsRequest & WithNextToken(const Aws::String &value)
ListAssetRelationshipsRequest & WithTraversalType(TraversalType &&value)
ListAssetRelationshipsRequest & WithNextToken(Aws::String &&value)
ListAssetRelationshipsRequest & WithAssetId(const Aws::String &value)
ListAssetRelationshipsRequest & WithTraversalType(const TraversalType &value)
AWS_IOTSITEWISE_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String