AWS SDK for C++  1.9.15
AWS SDK for C++
ListAssetsRequest.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 "ListAssets"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40 
41 
45  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
46 
50  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
51 
55  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
56 
60  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
61 
65  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
66 
70  inline ListAssetsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
71 
75  inline ListAssetsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
76 
80  inline ListAssetsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
81 
82 
87  inline int GetMaxResults() const{ return m_maxResults; }
88 
93  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
94 
99  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
100 
105  inline ListAssetsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
106 
107 
113  inline const Aws::String& GetAssetModelId() const{ return m_assetModelId; }
114 
120  inline bool AssetModelIdHasBeenSet() const { return m_assetModelIdHasBeenSet; }
121 
127  inline void SetAssetModelId(const Aws::String& value) { m_assetModelIdHasBeenSet = true; m_assetModelId = value; }
128 
134  inline void SetAssetModelId(Aws::String&& value) { m_assetModelIdHasBeenSet = true; m_assetModelId = std::move(value); }
135 
141  inline void SetAssetModelId(const char* value) { m_assetModelIdHasBeenSet = true; m_assetModelId.assign(value); }
142 
148  inline ListAssetsRequest& WithAssetModelId(const Aws::String& value) { SetAssetModelId(value); return *this;}
149 
155  inline ListAssetsRequest& WithAssetModelId(Aws::String&& value) { SetAssetModelId(std::move(value)); return *this;}
156 
162  inline ListAssetsRequest& WithAssetModelId(const char* value) { SetAssetModelId(value); return *this;}
163 
164 
173  inline const ListAssetsFilter& GetFilter() const{ return m_filter; }
174 
183  inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
184 
193  inline void SetFilter(const ListAssetsFilter& value) { m_filterHasBeenSet = true; m_filter = value; }
194 
203  inline void SetFilter(ListAssetsFilter&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
204 
213  inline ListAssetsRequest& WithFilter(const ListAssetsFilter& value) { SetFilter(value); return *this;}
214 
223  inline ListAssetsRequest& WithFilter(ListAssetsFilter&& value) { SetFilter(std::move(value)); return *this;}
224 
225  private:
226 
227  Aws::String m_nextToken;
228  bool m_nextTokenHasBeenSet;
229 
230  int m_maxResults;
231  bool m_maxResultsHasBeenSet;
232 
233  Aws::String m_assetModelId;
234  bool m_assetModelIdHasBeenSet;
235 
236  ListAssetsFilter m_filter;
237  bool m_filterHasBeenSet;
238  };
239 
240 } // namespace Model
241 } // namespace IoTSiteWise
242 } // namespace Aws
Aws::IoTSiteWise::Model::ListAssetsRequest::SetAssetModelId
void SetAssetModelId(const char *value)
Definition: ListAssetsRequest.h:141
Aws::Http::URI
Definition: URI.h:32
Aws::IoTSiteWise::Model::ListAssetsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListAssetsRequest.h:50
Aws::IoTSiteWise::Model::ListAssetsRequest::WithNextToken
ListAssetsRequest & WithNextToken(const Aws::String &value)
Definition: ListAssetsRequest.h:70
Aws::IoTSiteWise::Model::ListAssetsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListAssetsRequest.h:99
Aws::IoTSiteWise::Model::ListAssetsRequest::SetAssetModelId
void SetAssetModelId(Aws::String &&value)
Definition: ListAssetsRequest.h:134
IoTSiteWise_EXPORTS.h
Aws::IoTSiteWise::Model::ListAssetsRequest::SetFilter
void SetFilter(const ListAssetsFilter &value)
Definition: ListAssetsRequest.h:193
AWS_IOTSITEWISE_API
#define AWS_IOTSITEWISE_API
Definition: IoTSiteWise_EXPORTS.h:28
Aws::IoTSiteWise::Model::ListAssetsRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::IoTSiteWise::Model::ListAssetsRequest::WithMaxResults
ListAssetsRequest & WithMaxResults(int value)
Definition: ListAssetsRequest.h:105
Aws::IoTSiteWise::Model::ListAssetsRequest::WithNextToken
ListAssetsRequest & WithNextToken(Aws::String &&value)
Definition: ListAssetsRequest.h:75
Aws::IoTSiteWise::Model::ListAssetsRequest::GetAssetModelId
const Aws::String & GetAssetModelId() const
Definition: ListAssetsRequest.h:113
Aws::IoTSiteWise::Model::ListAssetsRequest::WithAssetModelId
ListAssetsRequest & WithAssetModelId(const Aws::String &value)
Definition: ListAssetsRequest.h:148
Aws::IoTSiteWise::Model::ListAssetsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListAssetsRequest.h:55
Aws::IoTSiteWise::Model::ListAssetsRequest::ListAssetsRequest
ListAssetsRequest()
Aws::IoTSiteWise::Model::ListAssetsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListAssetsRequest.h:65
Aws::IoTSiteWise::Model::ListAssetsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListAssetsRequest.h:60
Aws::IoTSiteWise::Model::ListAssetsRequest::AssetModelIdHasBeenSet
bool AssetModelIdHasBeenSet() const
Definition: ListAssetsRequest.h:120
ListAssetsFilter.h
Aws::IoTSiteWise::Model::ListAssetsFilter
ListAssetsFilter
Definition: ListAssetsFilter.h:17
AWSString.h
Aws::IoTSiteWise::Model::ListAssetsRequest::WithNextToken
ListAssetsRequest & WithNextToken(const char *value)
Definition: ListAssetsRequest.h:80
Aws::IoTSiteWise::Model::ListAssetsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListAssetsRequest.h:45
Aws::IoTSiteWise::Model::ListAssetsRequest::FilterHasBeenSet
bool FilterHasBeenSet() const
Definition: ListAssetsRequest.h:183
Aws::IoTSiteWise::Model::ListAssetsRequest::WithFilter
ListAssetsRequest & WithFilter(ListAssetsFilter &&value)
Definition: ListAssetsRequest.h:223
Aws::IoTSiteWise::Model::ListAssetsRequest::WithAssetModelId
ListAssetsRequest & WithAssetModelId(const char *value)
Definition: ListAssetsRequest.h:162
Aws::IoTSiteWise::Model::ListAssetsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws
Definition: AccessManagementClient.h:15
IoTSiteWiseRequest.h
Aws::IoTSiteWise::Model::ListAssetsRequest::GetMaxResults
int GetMaxResults() const
Definition: ListAssetsRequest.h:87
Aws::IoTSiteWise::Model::ListAssetsRequest::WithFilter
ListAssetsRequest & WithFilter(const ListAssetsFilter &value)
Definition: ListAssetsRequest.h:213
Aws::IoTSiteWise::Model::ListAssetsRequest::GetFilter
const ListAssetsFilter & GetFilter() const
Definition: ListAssetsRequest.h:173
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoTSiteWise::Model::ListAssetsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListAssetsRequest.h:93
Aws::IoTSiteWise::Model::ListAssetsRequest::WithAssetModelId
ListAssetsRequest & WithAssetModelId(Aws::String &&value)
Definition: ListAssetsRequest.h:155
Aws::IoTSiteWise::IoTSiteWiseRequest
Definition: IoTSiteWiseRequest.h:17
Aws::IoTSiteWise::Model::ListAssetsRequest::SetFilter
void SetFilter(ListAssetsFilter &&value)
Definition: ListAssetsRequest.h:203
Aws::IoTSiteWise::Model::ListAssetsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListAssetsRequest.h:35
Aws::IoTSiteWise::Model::ListAssetsRequest
Definition: ListAssetsRequest.h:27
Aws::IoTSiteWise::Model::ListAssetsRequest::SetAssetModelId
void SetAssetModelId(const Aws::String &value)
Definition: ListAssetsRequest.h:127