AWS SDK for C++  1.9.104
AWS SDK for C++
ListAssociatedAssetsRequest.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 "ListAssociatedAssets"; }
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 ListAssociatedAssetsRequest& WithAssetId(const Aws::String& value) { SetAssetId(value); return *this;}
71 
75  inline ListAssociatedAssetsRequest& WithAssetId(Aws::String&& value) { SetAssetId(std::move(value)); return *this;}
76 
80  inline ListAssociatedAssetsRequest& WithAssetId(const char* value) { SetAssetId(value); return *this;}
81 
82 
94  inline const Aws::String& GetHierarchyId() const{ return m_hierarchyId; }
95 
107  inline bool HierarchyIdHasBeenSet() const { return m_hierarchyIdHasBeenSet; }
108 
120  inline void SetHierarchyId(const Aws::String& value) { m_hierarchyIdHasBeenSet = true; m_hierarchyId = value; }
121 
133  inline void SetHierarchyId(Aws::String&& value) { m_hierarchyIdHasBeenSet = true; m_hierarchyId = std::move(value); }
134 
146  inline void SetHierarchyId(const char* value) { m_hierarchyIdHasBeenSet = true; m_hierarchyId.assign(value); }
147 
159  inline ListAssociatedAssetsRequest& WithHierarchyId(const Aws::String& value) { SetHierarchyId(value); return *this;}
160 
172  inline ListAssociatedAssetsRequest& WithHierarchyId(Aws::String&& value) { SetHierarchyId(std::move(value)); return *this;}
173 
185  inline ListAssociatedAssetsRequest& WithHierarchyId(const char* value) { SetHierarchyId(value); return *this;}
186 
187 
196  inline const TraversalDirection& GetTraversalDirection() const{ return m_traversalDirection; }
197 
206  inline bool TraversalDirectionHasBeenSet() const { return m_traversalDirectionHasBeenSet; }
207 
216  inline void SetTraversalDirection(const TraversalDirection& value) { m_traversalDirectionHasBeenSet = true; m_traversalDirection = value; }
217 
226  inline void SetTraversalDirection(TraversalDirection&& value) { m_traversalDirectionHasBeenSet = true; m_traversalDirection = std::move(value); }
227 
236  inline ListAssociatedAssetsRequest& WithTraversalDirection(const TraversalDirection& value) { SetTraversalDirection(value); return *this;}
237 
246  inline ListAssociatedAssetsRequest& WithTraversalDirection(TraversalDirection&& value) { SetTraversalDirection(std::move(value)); return *this;}
247 
248 
252  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
253 
257  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
258 
262  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
263 
267  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
268 
272  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
273 
277  inline ListAssociatedAssetsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
278 
282  inline ListAssociatedAssetsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
283 
287  inline ListAssociatedAssetsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
288 
289 
294  inline int GetMaxResults() const{ return m_maxResults; }
295 
300  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
301 
306  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
307 
312  inline ListAssociatedAssetsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
313 
314  private:
315 
316  Aws::String m_assetId;
317  bool m_assetIdHasBeenSet;
318 
319  Aws::String m_hierarchyId;
320  bool m_hierarchyIdHasBeenSet;
321 
322  TraversalDirection m_traversalDirection;
323  bool m_traversalDirectionHasBeenSet;
324 
325  Aws::String m_nextToken;
326  bool m_nextTokenHasBeenSet;
327 
328  int m_maxResults;
329  bool m_maxResultsHasBeenSet;
330  };
331 
332 } // namespace Model
333 } // namespace IoTSiteWise
334 } // namespace Aws
Aws::IoTSiteWise::Model::ListAssociatedAssetsRequest::WithNextToken
ListAssociatedAssetsRequest & WithNextToken(const char *value)
Definition: ListAssociatedAssetsRequest.h:287
Aws::IoTSiteWise::Model::ListAssociatedAssetsRequest::HierarchyIdHasBeenSet
bool HierarchyIdHasBeenSet() const
Definition: ListAssociatedAssetsRequest.h:107
Aws::Http::URI
Definition: URI.h:32
Aws::IoTSiteWise::Model::ListAssociatedAssetsRequest::WithHierarchyId
ListAssociatedAssetsRequest & WithHierarchyId(Aws::String &&value)
Definition: ListAssociatedAssetsRequest.h:172
Aws::IoTSiteWise::Model::ListAssociatedAssetsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListAssociatedAssetsRequest.h:267
Aws::IoTSiteWise::Model::ListAssociatedAssetsRequest::SetTraversalDirection
void SetTraversalDirection(const TraversalDirection &value)
Definition: ListAssociatedAssetsRequest.h:216
Aws::IoTSiteWise::Model::ListAssociatedAssetsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListAssociatedAssetsRequest.h:262
Aws::IoTSiteWise::Model::ListAssociatedAssetsRequest::ListAssociatedAssetsRequest
ListAssociatedAssetsRequest()
Aws::IoTSiteWise::Model::ListAssociatedAssetsRequest::WithAssetId
ListAssociatedAssetsRequest & WithAssetId(Aws::String &&value)
Definition: ListAssociatedAssetsRequest.h:75
IoTSiteWise_EXPORTS.h
Aws::IoTSiteWise::Model::ListAssociatedAssetsRequest::AssetIdHasBeenSet
bool AssetIdHasBeenSet() const
Definition: ListAssociatedAssetsRequest.h:50
Aws::IoTSiteWise::Model::ListAssociatedAssetsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListAssociatedAssetsRequest.h:257
Aws::IoTSiteWise::Model::ListAssociatedAssetsRequest::SetTraversalDirection
void SetTraversalDirection(TraversalDirection &&value)
Definition: ListAssociatedAssetsRequest.h:226
Aws::IoTSiteWise::Model::ListAssociatedAssetsRequest::SetHierarchyId
void SetHierarchyId(const char *value)
Definition: ListAssociatedAssetsRequest.h:146
Aws::IoTSiteWise::Model::ListAssociatedAssetsRequest::WithTraversalDirection
ListAssociatedAssetsRequest & WithTraversalDirection(TraversalDirection &&value)
Definition: ListAssociatedAssetsRequest.h:246
Aws::IoTSiteWise::Model::ListAssociatedAssetsRequest
Definition: ListAssociatedAssetsRequest.h:27
AWS_IOTSITEWISE_API
#define AWS_IOTSITEWISE_API
Definition: IoTSiteWise_EXPORTS.h:28
Aws::IoTSiteWise::Model::ListAssociatedAssetsRequest::SetAssetId
void SetAssetId(const Aws::String &value)
Definition: ListAssociatedAssetsRequest.h:55
Aws::IoTSiteWise::Model::ListAssociatedAssetsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoTSiteWise::Model::ListAssociatedAssetsRequest::GetHierarchyId
const Aws::String & GetHierarchyId() const
Definition: ListAssociatedAssetsRequest.h:94
Aws::IoTSiteWise::Model::ListAssociatedAssetsRequest::WithHierarchyId
ListAssociatedAssetsRequest & WithHierarchyId(const char *value)
Definition: ListAssociatedAssetsRequest.h:185
Aws::IoTSiteWise::Model::ListAssociatedAssetsRequest::WithAssetId
ListAssociatedAssetsRequest & WithAssetId(const char *value)
Definition: ListAssociatedAssetsRequest.h:80
Aws::IoTSiteWise::Model::ListAssociatedAssetsRequest::WithNextToken
ListAssociatedAssetsRequest & WithNextToken(const Aws::String &value)
Definition: ListAssociatedAssetsRequest.h:277
Aws::IoTSiteWise::Model::ListAssociatedAssetsRequest::WithAssetId
ListAssociatedAssetsRequest & WithAssetId(const Aws::String &value)
Definition: ListAssociatedAssetsRequest.h:70
Aws::IoTSiteWise::Model::ListAssociatedAssetsRequest::SetHierarchyId
void SetHierarchyId(const Aws::String &value)
Definition: ListAssociatedAssetsRequest.h:120
Aws::IoTSiteWise::Model::ListAssociatedAssetsRequest::WithMaxResults
ListAssociatedAssetsRequest & WithMaxResults(int value)
Definition: ListAssociatedAssetsRequest.h:312
TraversalDirection.h
Aws::IoTSiteWise::Model::ListAssociatedAssetsRequest::SetAssetId
void SetAssetId(Aws::String &&value)
Definition: ListAssociatedAssetsRequest.h:60
Aws::IoTSiteWise::Model::ListAssociatedAssetsRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWSString.h
Aws::IoTSiteWise::Model::ListAssociatedAssetsRequest::GetMaxResults
int GetMaxResults() const
Definition: ListAssociatedAssetsRequest.h:294
Aws::IoTSiteWise::Model::ListAssociatedAssetsRequest::SetAssetId
void SetAssetId(const char *value)
Definition: ListAssociatedAssetsRequest.h:65
Aws::IoTSiteWise::Model::ListAssociatedAssetsRequest::GetTraversalDirection
const TraversalDirection & GetTraversalDirection() const
Definition: ListAssociatedAssetsRequest.h:196
Aws::IoTSiteWise::Model::ListAssociatedAssetsRequest::WithTraversalDirection
ListAssociatedAssetsRequest & WithTraversalDirection(const TraversalDirection &value)
Definition: ListAssociatedAssetsRequest.h:236
Aws::IoTSiteWise::Model::ListAssociatedAssetsRequest::GetAssetId
const Aws::String & GetAssetId() const
Definition: ListAssociatedAssetsRequest.h:45
Aws::IoTSiteWise::Model::ListAssociatedAssetsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListAssociatedAssetsRequest.h:306
Aws::IoTSiteWise::Model::ListAssociatedAssetsRequest::WithHierarchyId
ListAssociatedAssetsRequest & WithHierarchyId(const Aws::String &value)
Definition: ListAssociatedAssetsRequest.h:159
Aws::IoTSiteWise::Model::ListAssociatedAssetsRequest::SetHierarchyId
void SetHierarchyId(Aws::String &&value)
Definition: ListAssociatedAssetsRequest.h:133
Aws
Definition: AccessManagementClient.h:15
IoTSiteWiseRequest.h
Aws::IoTSiteWise::Model::TraversalDirection
TraversalDirection
Definition: TraversalDirection.h:17
Aws::IoTSiteWise::Model::ListAssociatedAssetsRequest::TraversalDirectionHasBeenSet
bool TraversalDirectionHasBeenSet() const
Definition: ListAssociatedAssetsRequest.h:206
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoTSiteWise::Model::ListAssociatedAssetsRequest::WithNextToken
ListAssociatedAssetsRequest & WithNextToken(Aws::String &&value)
Definition: ListAssociatedAssetsRequest.h:282
Aws::IoTSiteWise::Model::ListAssociatedAssetsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListAssociatedAssetsRequest.h:272
Aws::IoTSiteWise::Model::ListAssociatedAssetsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListAssociatedAssetsRequest.h:300
Aws::IoTSiteWise::IoTSiteWiseRequest
Definition: IoTSiteWiseRequest.h:17
Aws::IoTSiteWise::Model::ListAssociatedAssetsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListAssociatedAssetsRequest.h:35
Aws::IoTSiteWise::Model::ListAssociatedAssetsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListAssociatedAssetsRequest.h:252