AWS SDK for C++  1.9.40
AWS SDK for C++
SearchProductsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
15 #include <utility>
16 
17 namespace Aws
18 {
19 namespace ServiceCatalog
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 "SearchProducts"; }
36 
37  Aws::String SerializePayload() const override;
38 
40 
41 
47  inline const Aws::String& GetAcceptLanguage() const{ return m_acceptLanguage; }
48 
54  inline bool AcceptLanguageHasBeenSet() const { return m_acceptLanguageHasBeenSet; }
55 
61  inline void SetAcceptLanguage(const Aws::String& value) { m_acceptLanguageHasBeenSet = true; m_acceptLanguage = value; }
62 
68  inline void SetAcceptLanguage(Aws::String&& value) { m_acceptLanguageHasBeenSet = true; m_acceptLanguage = std::move(value); }
69 
75  inline void SetAcceptLanguage(const char* value) { m_acceptLanguageHasBeenSet = true; m_acceptLanguage.assign(value); }
76 
82  inline SearchProductsRequest& WithAcceptLanguage(const Aws::String& value) { SetAcceptLanguage(value); return *this;}
83 
89  inline SearchProductsRequest& WithAcceptLanguage(Aws::String&& value) { SetAcceptLanguage(std::move(value)); return *this;}
90 
96  inline SearchProductsRequest& WithAcceptLanguage(const char* value) { SetAcceptLanguage(value); return *this;}
97 
98 
103  inline const Aws::Map<ProductViewFilterBy, Aws::Vector<Aws::String>>& GetFilters() const{ return m_filters; }
104 
109  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
110 
115  inline void SetFilters(const Aws::Map<ProductViewFilterBy, Aws::Vector<Aws::String>>& value) { m_filtersHasBeenSet = true; m_filters = value; }
116 
121  inline void SetFilters(Aws::Map<ProductViewFilterBy, Aws::Vector<Aws::String>>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
122 
127  inline SearchProductsRequest& WithFilters(const Aws::Map<ProductViewFilterBy, Aws::Vector<Aws::String>>& value) { SetFilters(value); return *this;}
128 
133  inline SearchProductsRequest& WithFilters(Aws::Map<ProductViewFilterBy, Aws::Vector<Aws::String>>&& value) { SetFilters(std::move(value)); return *this;}
134 
139  inline SearchProductsRequest& AddFilters(const ProductViewFilterBy& key, const Aws::Vector<Aws::String>& value) { m_filtersHasBeenSet = true; m_filters.emplace(key, value); return *this; }
140 
145  inline SearchProductsRequest& AddFilters(ProductViewFilterBy&& key, const Aws::Vector<Aws::String>& value) { m_filtersHasBeenSet = true; m_filters.emplace(std::move(key), value); return *this; }
146 
151  inline SearchProductsRequest& AddFilters(const ProductViewFilterBy& key, Aws::Vector<Aws::String>&& value) { m_filtersHasBeenSet = true; m_filters.emplace(key, std::move(value)); return *this; }
152 
157  inline SearchProductsRequest& AddFilters(ProductViewFilterBy&& key, Aws::Vector<Aws::String>&& value) { m_filtersHasBeenSet = true; m_filters.emplace(std::move(key), std::move(value)); return *this; }
158 
159 
163  inline int GetPageSize() const{ return m_pageSize; }
164 
168  inline bool PageSizeHasBeenSet() const { return m_pageSizeHasBeenSet; }
169 
173  inline void SetPageSize(int value) { m_pageSizeHasBeenSet = true; m_pageSize = value; }
174 
178  inline SearchProductsRequest& WithPageSize(int value) { SetPageSize(value); return *this;}
179 
180 
184  inline const ProductViewSortBy& GetSortBy() const{ return m_sortBy; }
185 
189  inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
190 
194  inline void SetSortBy(const ProductViewSortBy& value) { m_sortByHasBeenSet = true; m_sortBy = value; }
195 
199  inline void SetSortBy(ProductViewSortBy&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); }
200 
204  inline SearchProductsRequest& WithSortBy(const ProductViewSortBy& value) { SetSortBy(value); return *this;}
205 
209  inline SearchProductsRequest& WithSortBy(ProductViewSortBy&& value) { SetSortBy(std::move(value)); return *this;}
210 
211 
215  inline const SortOrder& GetSortOrder() const{ return m_sortOrder; }
216 
220  inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
221 
225  inline void SetSortOrder(const SortOrder& value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
226 
230  inline void SetSortOrder(SortOrder&& value) { m_sortOrderHasBeenSet = true; m_sortOrder = std::move(value); }
231 
235  inline SearchProductsRequest& WithSortOrder(const SortOrder& value) { SetSortOrder(value); return *this;}
236 
240  inline SearchProductsRequest& WithSortOrder(SortOrder&& value) { SetSortOrder(std::move(value)); return *this;}
241 
242 
247  inline const Aws::String& GetPageToken() const{ return m_pageToken; }
248 
253  inline bool PageTokenHasBeenSet() const { return m_pageTokenHasBeenSet; }
254 
259  inline void SetPageToken(const Aws::String& value) { m_pageTokenHasBeenSet = true; m_pageToken = value; }
260 
265  inline void SetPageToken(Aws::String&& value) { m_pageTokenHasBeenSet = true; m_pageToken = std::move(value); }
266 
271  inline void SetPageToken(const char* value) { m_pageTokenHasBeenSet = true; m_pageToken.assign(value); }
272 
277  inline SearchProductsRequest& WithPageToken(const Aws::String& value) { SetPageToken(value); return *this;}
278 
283  inline SearchProductsRequest& WithPageToken(Aws::String&& value) { SetPageToken(std::move(value)); return *this;}
284 
289  inline SearchProductsRequest& WithPageToken(const char* value) { SetPageToken(value); return *this;}
290 
291  private:
292 
293  Aws::String m_acceptLanguage;
294  bool m_acceptLanguageHasBeenSet;
295 
297  bool m_filtersHasBeenSet;
298 
299  int m_pageSize;
300  bool m_pageSizeHasBeenSet;
301 
302  ProductViewSortBy m_sortBy;
303  bool m_sortByHasBeenSet;
304 
305  SortOrder m_sortOrder;
306  bool m_sortOrderHasBeenSet;
307 
308  Aws::String m_pageToken;
309  bool m_pageTokenHasBeenSet;
310  };
311 
312 } // namespace Model
313 } // namespace ServiceCatalog
314 } // namespace Aws
Aws::ServiceCatalog::Model::SearchProductsRequest::GetFilters
const Aws::Map< ProductViewFilterBy, Aws::Vector< Aws::String > > & GetFilters() const
Definition: SearchProductsRequest.h:103
Aws::ServiceCatalog::Model::SearchProductsRequest::AddFilters
SearchProductsRequest & AddFilters(ProductViewFilterBy &&key, Aws::Vector< Aws::String > &&value)
Definition: SearchProductsRequest.h:157
Aws::ServiceCatalog::Model::SearchProductsRequest::SetSortOrder
void SetSortOrder(const SortOrder &value)
Definition: SearchProductsRequest.h:225
Aws::ServiceCatalog::Model::SearchProductsRequest::WithAcceptLanguage
SearchProductsRequest & WithAcceptLanguage(const char *value)
Definition: SearchProductsRequest.h:96
Aws::ServiceCatalog::Model::SearchProductsRequest::SortByHasBeenSet
bool SortByHasBeenSet() const
Definition: SearchProductsRequest.h:189
Aws::ServiceCatalog::Model::SearchProductsRequest::WithPageToken
SearchProductsRequest & WithPageToken(const Aws::String &value)
Definition: SearchProductsRequest.h:277
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
ServiceCatalogRequest.h
Aws::ServiceCatalog::Model::SearchProductsRequest::WithFilters
SearchProductsRequest & WithFilters(const Aws::Map< ProductViewFilterBy, Aws::Vector< Aws::String >> &value)
Definition: SearchProductsRequest.h:127
Aws::ServiceCatalog::Model::SearchProductsRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: SearchProductsRequest.h:109
Aws::ServiceCatalog::Model::SearchProductsRequest::AddFilters
SearchProductsRequest & AddFilters(const ProductViewFilterBy &key, Aws::Vector< Aws::String > &&value)
Definition: SearchProductsRequest.h:151
Aws::ServiceCatalog::Model::SearchProductsRequest::WithSortBy
SearchProductsRequest & WithSortBy(const ProductViewSortBy &value)
Definition: SearchProductsRequest.h:204
Aws::ServiceCatalog::Model::SearchProductsRequest::GetPageToken
const Aws::String & GetPageToken() const
Definition: SearchProductsRequest.h:247
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ServiceCatalog::Model::SearchProductsRequest::SetSortBy
void SetSortBy(ProductViewSortBy &&value)
Definition: SearchProductsRequest.h:199
Aws::ServiceCatalog::Model::SearchProductsRequest::GetSortOrder
const SortOrder & GetSortOrder() const
Definition: SearchProductsRequest.h:215
AWS_SERVICECATALOG_API
#define AWS_SERVICECATALOG_API
Definition: ServiceCatalog_EXPORTS.h:28
Aws::ServiceCatalog::Model::SearchProductsRequest::SetSortOrder
void SetSortOrder(SortOrder &&value)
Definition: SearchProductsRequest.h:230
AWSVector.h
Aws::ServiceCatalog::Model::SearchProductsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::ServiceCatalog::Model::SearchProductsRequest::WithPageSize
SearchProductsRequest & WithPageSize(int value)
Definition: SearchProductsRequest.h:178
Aws::ServiceCatalog::Model::SearchProductsRequest
Definition: SearchProductsRequest.h:27
Aws::ServiceCatalog::Model::SearchProductsRequest::WithAcceptLanguage
SearchProductsRequest & WithAcceptLanguage(const Aws::String &value)
Definition: SearchProductsRequest.h:82
Aws::ServiceCatalog::Model::SearchProductsRequest::WithPageToken
SearchProductsRequest & WithPageToken(Aws::String &&value)
Definition: SearchProductsRequest.h:283
Aws::ServiceCatalog::Model::SearchProductsRequest::SetPageToken
void SetPageToken(const Aws::String &value)
Definition: SearchProductsRequest.h:259
Aws::ServiceCatalog::Model::SearchProductsRequest::SearchProductsRequest
SearchProductsRequest()
Aws::ServiceCatalog::Model::SearchProductsRequest::SetPageToken
void SetPageToken(Aws::String &&value)
Definition: SearchProductsRequest.h:265
Aws::ServiceCatalog::Model::SearchProductsRequest::GetPageSize
int GetPageSize() const
Definition: SearchProductsRequest.h:163
Aws::ServiceCatalog::ServiceCatalogRequest
Definition: ServiceCatalogRequest.h:17
Aws::ServiceCatalog::Model::SearchProductsRequest::SetFilters
void SetFilters(Aws::Map< ProductViewFilterBy, Aws::Vector< Aws::String >> &&value)
Definition: SearchProductsRequest.h:121
Aws::ServiceCatalog::Model::SearchProductsRequest::GetSortBy
const ProductViewSortBy & GetSortBy() const
Definition: SearchProductsRequest.h:184
Aws::ServiceCatalog::Model::SearchProductsRequest::WithPageToken
SearchProductsRequest & WithPageToken(const char *value)
Definition: SearchProductsRequest.h:289
Aws::ServiceCatalog::Model::SearchProductsRequest::AcceptLanguageHasBeenSet
bool AcceptLanguageHasBeenSet() const
Definition: SearchProductsRequest.h:54
Aws::ServiceCatalog::Model::SearchProductsRequest::SetAcceptLanguage
void SetAcceptLanguage(Aws::String &&value)
Definition: SearchProductsRequest.h:68
Aws::ServiceCatalog::Model::SearchProductsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: SearchProductsRequest.h:35
Aws::ServiceCatalog::Model::SearchProductsRequest::PageTokenHasBeenSet
bool PageTokenHasBeenSet() const
Definition: SearchProductsRequest.h:253
SortOrder.h
Aws::ServiceCatalog::Model::SearchProductsRequest::WithSortOrder
SearchProductsRequest & WithSortOrder(const SortOrder &value)
Definition: SearchProductsRequest.h:235
Aws::ServiceCatalog::Model::SearchProductsRequest::AddFilters
SearchProductsRequest & AddFilters(ProductViewFilterBy &&key, const Aws::Vector< Aws::String > &value)
Definition: SearchProductsRequest.h:145
Aws::ServiceCatalog::Model::SearchProductsRequest::WithSortOrder
SearchProductsRequest & WithSortOrder(SortOrder &&value)
Definition: SearchProductsRequest.h:240
AWSString.h
Aws::ServiceCatalog::Model::ProductViewSortBy
ProductViewSortBy
Definition: ProductViewSortBy.h:17
Aws::ServiceCatalog::Model::SearchProductsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ServiceCatalog::Model::ProductViewFilterBy
ProductViewFilterBy
Definition: ProductViewFilterBy.h:17
ProductViewFilterBy.h
ProductViewSortBy.h
Aws::ServiceCatalog::Model::SearchProductsRequest::SortOrderHasBeenSet
bool SortOrderHasBeenSet() const
Definition: SearchProductsRequest.h:220
Aws::ServiceCatalog::Model::SortOrder
SortOrder
Definition: SortOrder.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ServiceCatalog::Model::SearchProductsRequest::SetAcceptLanguage
void SetAcceptLanguage(const char *value)
Definition: SearchProductsRequest.h:75
Aws::ServiceCatalog::Model::SearchProductsRequest::AddFilters
SearchProductsRequest & AddFilters(const ProductViewFilterBy &key, const Aws::Vector< Aws::String > &value)
Definition: SearchProductsRequest.h:139
Aws::ServiceCatalog::Model::SearchProductsRequest::SetAcceptLanguage
void SetAcceptLanguage(const Aws::String &value)
Definition: SearchProductsRequest.h:61
Aws::ServiceCatalog::Model::SearchProductsRequest::WithAcceptLanguage
SearchProductsRequest & WithAcceptLanguage(Aws::String &&value)
Definition: SearchProductsRequest.h:89
Aws::ServiceCatalog::Model::SearchProductsRequest::SetPageToken
void SetPageToken(const char *value)
Definition: SearchProductsRequest.h:271
ServiceCatalog_EXPORTS.h
Aws::ServiceCatalog::Model::SearchProductsRequest::SetSortBy
void SetSortBy(const ProductViewSortBy &value)
Definition: SearchProductsRequest.h:194
AWSMap.h
Aws::ServiceCatalog::Model::SearchProductsRequest::WithSortBy
SearchProductsRequest & WithSortBy(ProductViewSortBy &&value)
Definition: SearchProductsRequest.h:209
Aws::ServiceCatalog::Model::SearchProductsRequest::GetAcceptLanguage
const Aws::String & GetAcceptLanguage() const
Definition: SearchProductsRequest.h:47
Aws::ServiceCatalog::Model::SearchProductsRequest::WithFilters
SearchProductsRequest & WithFilters(Aws::Map< ProductViewFilterBy, Aws::Vector< Aws::String >> &&value)
Definition: SearchProductsRequest.h:133
Aws::ServiceCatalog::Model::SearchProductsRequest::PageSizeHasBeenSet
bool PageSizeHasBeenSet() const
Definition: SearchProductsRequest.h:168
Aws::ServiceCatalog::Model::SearchProductsRequest::SetFilters
void SetFilters(const Aws::Map< ProductViewFilterBy, Aws::Vector< Aws::String >> &value)
Definition: SearchProductsRequest.h:115
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::ServiceCatalog::Model::SearchProductsRequest::SetPageSize
void SetPageSize(int value)
Definition: SearchProductsRequest.h:173