AWS SDK for C++  1.9.153
AWS SDK for C++
ListAssetRelationshipsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Http
16 {
17  class URI;
18 } //namespace Http
19 namespace IoTSiteWise
20 {
21 namespace Model
22 {
23 
27  {
28  public:
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::String SerializePayload() const override;
38 
39  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40 
41 
45  inline const Aws::String& GetAssetId() const{ return m_assetId; }
46 
50  inline bool AssetIdHasBeenSet() const { return m_assetIdHasBeenSet; }
51 
55  inline void SetAssetId(const Aws::String& value) { m_assetIdHasBeenSet = true; m_assetId = value; }
56 
60  inline void SetAssetId(Aws::String&& value) { m_assetIdHasBeenSet = true; m_assetId = std::move(value); }
61 
65  inline void SetAssetId(const char* value) { m_assetIdHasBeenSet = true; m_assetId.assign(value); }
66 
70  inline ListAssetRelationshipsRequest& WithAssetId(const Aws::String& value) { SetAssetId(value); return *this;}
71 
75  inline ListAssetRelationshipsRequest& WithAssetId(Aws::String&& value) { SetAssetId(std::move(value)); return *this;}
76 
80  inline ListAssetRelationshipsRequest& WithAssetId(const char* value) { SetAssetId(value); return *this;}
81 
82 
91  inline const TraversalType& GetTraversalType() const{ return m_traversalType; }
92 
101  inline bool TraversalTypeHasBeenSet() const { return m_traversalTypeHasBeenSet; }
102 
111  inline void SetTraversalType(const TraversalType& value) { m_traversalTypeHasBeenSet = true; m_traversalType = value; }
112 
121  inline void SetTraversalType(TraversalType&& value) { m_traversalTypeHasBeenSet = true; m_traversalType = std::move(value); }
122 
131  inline ListAssetRelationshipsRequest& WithTraversalType(const TraversalType& value) { SetTraversalType(value); return *this;}
132 
141  inline ListAssetRelationshipsRequest& WithTraversalType(TraversalType&& value) { SetTraversalType(std::move(value)); return *this;}
142 
143 
147  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
148 
152  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
153 
157  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
158 
162  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
163 
167  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
168 
172  inline ListAssetRelationshipsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
173 
177  inline ListAssetRelationshipsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
178 
182  inline ListAssetRelationshipsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
183 
184 
188  inline int GetMaxResults() const{ return m_maxResults; }
189 
193  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
194 
198  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
199 
203  inline ListAssetRelationshipsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
204 
205  private:
206 
207  Aws::String m_assetId;
208  bool m_assetIdHasBeenSet;
209 
210  TraversalType m_traversalType;
211  bool m_traversalTypeHasBeenSet;
212 
213  Aws::String m_nextToken;
214  bool m_nextTokenHasBeenSet;
215 
216  int m_maxResults;
217  bool m_maxResultsHasBeenSet;
218  };
219 
220 } // namespace Model
221 } // namespace IoTSiteWise
222 } // namespace Aws
Aws::IoTSiteWise::Model::ListAssetRelationshipsRequest::GetAssetId
const Aws::String & GetAssetId() const
Definition: ListAssetRelationshipsRequest.h:45
Aws::IoTSiteWise::Model::TraversalType
TraversalType
Definition: TraversalType.h:17
Aws::Http::URI
Definition: URI.h:32
Aws::IoTSiteWise::Model::ListAssetRelationshipsRequest::WithAssetId
ListAssetRelationshipsRequest & WithAssetId(const Aws::String &value)
Definition: ListAssetRelationshipsRequest.h:70
Aws::IoTSiteWise::Model::ListAssetRelationshipsRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::IoTSiteWise::Model::ListAssetRelationshipsRequest::WithTraversalType
ListAssetRelationshipsRequest & WithTraversalType(const TraversalType &value)
Definition: ListAssetRelationshipsRequest.h:131
Aws::IoTSiteWise::Model::ListAssetRelationshipsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListAssetRelationshipsRequest.h:152
Aws::IoTSiteWise::Model::ListAssetRelationshipsRequest::WithAssetId
ListAssetRelationshipsRequest & WithAssetId(const char *value)
Definition: ListAssetRelationshipsRequest.h:80
Aws::IoTSiteWise::Model::ListAssetRelationshipsRequest::SetTraversalType
void SetTraversalType(const TraversalType &value)
Definition: ListAssetRelationshipsRequest.h:111
Aws::IoTSiteWise::Model::ListAssetRelationshipsRequest::WithMaxResults
ListAssetRelationshipsRequest & WithMaxResults(int value)
Definition: ListAssetRelationshipsRequest.h:203
IoTSiteWise_EXPORTS.h
Aws::IoTSiteWise::Model::ListAssetRelationshipsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListAssetRelationshipsRequest.h:193
Aws::IoTSiteWise::Model::ListAssetRelationshipsRequest::SetAssetId
void SetAssetId(const Aws::String &value)
Definition: ListAssetRelationshipsRequest.h:55
Aws::IoTSiteWise::Model::ListAssetRelationshipsRequest::WithAssetId
ListAssetRelationshipsRequest & WithAssetId(Aws::String &&value)
Definition: ListAssetRelationshipsRequest.h:75
AWS_IOTSITEWISE_API
#define AWS_IOTSITEWISE_API
Definition: IoTSiteWise_EXPORTS.h:28
Aws::IoTSiteWise::Model::ListAssetRelationshipsRequest::GetMaxResults
int GetMaxResults() const
Definition: ListAssetRelationshipsRequest.h:188
Aws::IoTSiteWise::Model::ListAssetRelationshipsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListAssetRelationshipsRequest.h:162
Aws::IoTSiteWise::Model::ListAssetRelationshipsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoTSiteWise::Model::ListAssetRelationshipsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListAssetRelationshipsRequest.h:167
Aws::IoTSiteWise::Model::ListAssetRelationshipsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListAssetRelationshipsRequest.h:198
Aws::IoTSiteWise::Model::ListAssetRelationshipsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListAssetRelationshipsRequest.h:157
Aws::IoTSiteWise::Model::ListAssetRelationshipsRequest::SetAssetId
void SetAssetId(Aws::String &&value)
Definition: ListAssetRelationshipsRequest.h:60
Aws::IoTSiteWise::Model::ListAssetRelationshipsRequest::WithNextToken
ListAssetRelationshipsRequest & WithNextToken(const Aws::String &value)
Definition: ListAssetRelationshipsRequest.h:172
AWSString.h
Aws::IoTSiteWise::Model::ListAssetRelationshipsRequest::GetTraversalType
const TraversalType & GetTraversalType() const
Definition: ListAssetRelationshipsRequest.h:91
Aws::IoTSiteWise::Model::ListAssetRelationshipsRequest::TraversalTypeHasBeenSet
bool TraversalTypeHasBeenSet() const
Definition: ListAssetRelationshipsRequest.h:101
Aws::IoTSiteWise::Model::ListAssetRelationshipsRequest::WithNextToken
ListAssetRelationshipsRequest & WithNextToken(const char *value)
Definition: ListAssetRelationshipsRequest.h:182
Aws::IoTSiteWise::Model::ListAssetRelationshipsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListAssetRelationshipsRequest.h:147
Aws
Definition: AccessManagementClient.h:15
IoTSiteWiseRequest.h
Aws::IoTSiteWise::Model::ListAssetRelationshipsRequest::SetAssetId
void SetAssetId(const char *value)
Definition: ListAssetRelationshipsRequest.h:65
Aws::IoTSiteWise::Model::ListAssetRelationshipsRequest::WithTraversalType
ListAssetRelationshipsRequest & WithTraversalType(TraversalType &&value)
Definition: ListAssetRelationshipsRequest.h:141
Aws::IoTSiteWise::Model::ListAssetRelationshipsRequest::WithNextToken
ListAssetRelationshipsRequest & WithNextToken(Aws::String &&value)
Definition: ListAssetRelationshipsRequest.h:177
Aws::IoTSiteWise::Model::ListAssetRelationshipsRequest::SetTraversalType
void SetTraversalType(TraversalType &&value)
Definition: ListAssetRelationshipsRequest.h:121
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoTSiteWise::IoTSiteWiseRequest
Definition: IoTSiteWiseRequest.h:17
Aws::IoTSiteWise::Model::ListAssetRelationshipsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListAssetRelationshipsRequest.h:35
TraversalType.h
Aws::IoTSiteWise::Model::ListAssetRelationshipsRequest
Definition: ListAssetRelationshipsRequest.h:27
Aws::IoTSiteWise::Model::ListAssetRelationshipsRequest::AssetIdHasBeenSet
bool AssetIdHasBeenSet() const
Definition: ListAssetRelationshipsRequest.h:50
Aws::IoTSiteWise::Model::ListAssetRelationshipsRequest::ListAssetRelationshipsRequest
ListAssetRelationshipsRequest()