AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
ListAssetsRequest.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/ListAssetsFilter.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 ListAssetsRequest() = 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 "ListAssets"; }
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
46 inline const Aws::String& GetNextToken() const { return m_nextToken; }
47 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
48 template<typename NextTokenT = Aws::String>
49 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
50 template<typename NextTokenT = Aws::String>
51 ListAssetsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
53
55
59 inline int GetMaxResults() const { return m_maxResults; }
60 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
61 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
62 inline ListAssetsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
64
66
75 inline const Aws::String& GetAssetModelId() const { return m_assetModelId; }
76 inline bool AssetModelIdHasBeenSet() const { return m_assetModelIdHasBeenSet; }
77 template<typename AssetModelIdT = Aws::String>
78 void SetAssetModelId(AssetModelIdT&& value) { m_assetModelIdHasBeenSet = true; m_assetModelId = std::forward<AssetModelIdT>(value); }
79 template<typename AssetModelIdT = Aws::String>
80 ListAssetsRequest& WithAssetModelId(AssetModelIdT&& value) { SetAssetModelId(std::forward<AssetModelIdT>(value)); return *this;}
82
84
92 inline ListAssetsFilter GetFilter() const { return m_filter; }
93 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
94 inline void SetFilter(ListAssetsFilter value) { m_filterHasBeenSet = true; m_filter = value; }
95 inline ListAssetsRequest& WithFilter(ListAssetsFilter value) { SetFilter(value); return *this;}
97 private:
98
99 Aws::String m_nextToken;
100 bool m_nextTokenHasBeenSet = false;
101
102 int m_maxResults{0};
103 bool m_maxResultsHasBeenSet = false;
104
105 Aws::String m_assetModelId;
106 bool m_assetModelIdHasBeenSet = false;
107
109 bool m_filterHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace IoTSiteWise
114} // namespace Aws
virtual const char * GetServiceRequestName() const override
AWS_IOTSITEWISE_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_IOTSITEWISE_API Aws::String SerializePayload() const override
AWS_IOTSITEWISE_API ListAssetsRequest()=default
ListAssetsRequest & WithFilter(ListAssetsFilter value)
ListAssetsRequest & WithMaxResults(int value)
ListAssetsRequest & WithAssetModelId(AssetModelIdT &&value)
ListAssetsRequest & WithNextToken(NextTokenT &&value)
const Aws::String & GetAssetModelId() const
void SetAssetModelId(AssetModelIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String