AWS SDK for C++  1.9.108
AWS SDK for C++
SearchProductsAsAdminRequest.h
Go to the documentation of this file.
1 
6 #pragma once
16 #include <utility>
17 
18 namespace Aws
19 {
20 namespace ServiceCatalog
21 {
22 namespace Model
23 {
24 
28  {
29  public:
31 
32  // Service request name is the Operation name which will send this request out,
33  // each operation should has unique request name, so that we can get operation's name from this request.
34  // Note: this is not true for response, multiple operations may have the same response name,
35  // so we can not get operation's name from response.
36  inline virtual const char* GetServiceRequestName() const override { return "SearchProductsAsAdmin"; }
37 
38  Aws::String SerializePayload() const override;
39 
41 
42 
48  inline const Aws::String& GetAcceptLanguage() const{ return m_acceptLanguage; }
49 
55  inline bool AcceptLanguageHasBeenSet() const { return m_acceptLanguageHasBeenSet; }
56 
62  inline void SetAcceptLanguage(const Aws::String& value) { m_acceptLanguageHasBeenSet = true; m_acceptLanguage = value; }
63 
69  inline void SetAcceptLanguage(Aws::String&& value) { m_acceptLanguageHasBeenSet = true; m_acceptLanguage = std::move(value); }
70 
76  inline void SetAcceptLanguage(const char* value) { m_acceptLanguageHasBeenSet = true; m_acceptLanguage.assign(value); }
77 
83  inline SearchProductsAsAdminRequest& WithAcceptLanguage(const Aws::String& value) { SetAcceptLanguage(value); return *this;}
84 
90  inline SearchProductsAsAdminRequest& WithAcceptLanguage(Aws::String&& value) { SetAcceptLanguage(std::move(value)); return *this;}
91 
97  inline SearchProductsAsAdminRequest& WithAcceptLanguage(const char* value) { SetAcceptLanguage(value); return *this;}
98 
99 
103  inline const Aws::String& GetPortfolioId() const{ return m_portfolioId; }
104 
108  inline bool PortfolioIdHasBeenSet() const { return m_portfolioIdHasBeenSet; }
109 
113  inline void SetPortfolioId(const Aws::String& value) { m_portfolioIdHasBeenSet = true; m_portfolioId = value; }
114 
118  inline void SetPortfolioId(Aws::String&& value) { m_portfolioIdHasBeenSet = true; m_portfolioId = std::move(value); }
119 
123  inline void SetPortfolioId(const char* value) { m_portfolioIdHasBeenSet = true; m_portfolioId.assign(value); }
124 
128  inline SearchProductsAsAdminRequest& WithPortfolioId(const Aws::String& value) { SetPortfolioId(value); return *this;}
129 
133  inline SearchProductsAsAdminRequest& WithPortfolioId(Aws::String&& value) { SetPortfolioId(std::move(value)); return *this;}
134 
138  inline SearchProductsAsAdminRequest& WithPortfolioId(const char* value) { SetPortfolioId(value); return *this;}
139 
140 
145  inline const Aws::Map<ProductViewFilterBy, Aws::Vector<Aws::String>>& GetFilters() const{ return m_filters; }
146 
151  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
152 
157  inline void SetFilters(const Aws::Map<ProductViewFilterBy, Aws::Vector<Aws::String>>& value) { m_filtersHasBeenSet = true; m_filters = value; }
158 
163  inline void SetFilters(Aws::Map<ProductViewFilterBy, Aws::Vector<Aws::String>>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
164 
169  inline SearchProductsAsAdminRequest& WithFilters(const Aws::Map<ProductViewFilterBy, Aws::Vector<Aws::String>>& value) { SetFilters(value); return *this;}
170 
175  inline SearchProductsAsAdminRequest& WithFilters(Aws::Map<ProductViewFilterBy, Aws::Vector<Aws::String>>&& value) { SetFilters(std::move(value)); return *this;}
176 
181  inline SearchProductsAsAdminRequest& AddFilters(const ProductViewFilterBy& key, const Aws::Vector<Aws::String>& value) { m_filtersHasBeenSet = true; m_filters.emplace(key, value); return *this; }
182 
187  inline SearchProductsAsAdminRequest& AddFilters(ProductViewFilterBy&& key, const Aws::Vector<Aws::String>& value) { m_filtersHasBeenSet = true; m_filters.emplace(std::move(key), value); return *this; }
188 
193  inline SearchProductsAsAdminRequest& AddFilters(const ProductViewFilterBy& key, Aws::Vector<Aws::String>&& value) { m_filtersHasBeenSet = true; m_filters.emplace(key, std::move(value)); return *this; }
194 
199  inline SearchProductsAsAdminRequest& AddFilters(ProductViewFilterBy&& key, Aws::Vector<Aws::String>&& value) { m_filtersHasBeenSet = true; m_filters.emplace(std::move(key), std::move(value)); return *this; }
200 
201 
205  inline const ProductViewSortBy& GetSortBy() const{ return m_sortBy; }
206 
210  inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
211 
215  inline void SetSortBy(const ProductViewSortBy& value) { m_sortByHasBeenSet = true; m_sortBy = value; }
216 
220  inline void SetSortBy(ProductViewSortBy&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); }
221 
225  inline SearchProductsAsAdminRequest& WithSortBy(const ProductViewSortBy& value) { SetSortBy(value); return *this;}
226 
230  inline SearchProductsAsAdminRequest& WithSortBy(ProductViewSortBy&& value) { SetSortBy(std::move(value)); return *this;}
231 
232 
236  inline const SortOrder& GetSortOrder() const{ return m_sortOrder; }
237 
241  inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
242 
246  inline void SetSortOrder(const SortOrder& value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
247 
251  inline void SetSortOrder(SortOrder&& value) { m_sortOrderHasBeenSet = true; m_sortOrder = std::move(value); }
252 
256  inline SearchProductsAsAdminRequest& WithSortOrder(const SortOrder& value) { SetSortOrder(value); return *this;}
257 
261  inline SearchProductsAsAdminRequest& WithSortOrder(SortOrder&& value) { SetSortOrder(std::move(value)); return *this;}
262 
263 
268  inline const Aws::String& GetPageToken() const{ return m_pageToken; }
269 
274  inline bool PageTokenHasBeenSet() const { return m_pageTokenHasBeenSet; }
275 
280  inline void SetPageToken(const Aws::String& value) { m_pageTokenHasBeenSet = true; m_pageToken = value; }
281 
286  inline void SetPageToken(Aws::String&& value) { m_pageTokenHasBeenSet = true; m_pageToken = std::move(value); }
287 
292  inline void SetPageToken(const char* value) { m_pageTokenHasBeenSet = true; m_pageToken.assign(value); }
293 
298  inline SearchProductsAsAdminRequest& WithPageToken(const Aws::String& value) { SetPageToken(value); return *this;}
299 
304  inline SearchProductsAsAdminRequest& WithPageToken(Aws::String&& value) { SetPageToken(std::move(value)); return *this;}
305 
310  inline SearchProductsAsAdminRequest& WithPageToken(const char* value) { SetPageToken(value); return *this;}
311 
312 
316  inline int GetPageSize() const{ return m_pageSize; }
317 
321  inline bool PageSizeHasBeenSet() const { return m_pageSizeHasBeenSet; }
322 
326  inline void SetPageSize(int value) { m_pageSizeHasBeenSet = true; m_pageSize = value; }
327 
331  inline SearchProductsAsAdminRequest& WithPageSize(int value) { SetPageSize(value); return *this;}
332 
333 
337  inline const ProductSource& GetProductSource() const{ return m_productSource; }
338 
342  inline bool ProductSourceHasBeenSet() const { return m_productSourceHasBeenSet; }
343 
347  inline void SetProductSource(const ProductSource& value) { m_productSourceHasBeenSet = true; m_productSource = value; }
348 
352  inline void SetProductSource(ProductSource&& value) { m_productSourceHasBeenSet = true; m_productSource = std::move(value); }
353 
357  inline SearchProductsAsAdminRequest& WithProductSource(const ProductSource& value) { SetProductSource(value); return *this;}
358 
362  inline SearchProductsAsAdminRequest& WithProductSource(ProductSource&& value) { SetProductSource(std::move(value)); return *this;}
363 
364  private:
365 
366  Aws::String m_acceptLanguage;
367  bool m_acceptLanguageHasBeenSet;
368 
369  Aws::String m_portfolioId;
370  bool m_portfolioIdHasBeenSet;
371 
373  bool m_filtersHasBeenSet;
374 
375  ProductViewSortBy m_sortBy;
376  bool m_sortByHasBeenSet;
377 
378  SortOrder m_sortOrder;
379  bool m_sortOrderHasBeenSet;
380 
381  Aws::String m_pageToken;
382  bool m_pageTokenHasBeenSet;
383 
384  int m_pageSize;
385  bool m_pageSizeHasBeenSet;
386 
387  ProductSource m_productSource;
388  bool m_productSourceHasBeenSet;
389  };
390 
391 } // namespace Model
392 } // namespace ServiceCatalog
393 } // namespace Aws
Aws::ServiceCatalog::Model::SearchProductsAsAdminRequest::SetPageSize
void SetPageSize(int value)
Definition: SearchProductsAsAdminRequest.h:326
Aws::ServiceCatalog::Model::SearchProductsAsAdminRequest::SetPageToken
void SetPageToken(const char *value)
Definition: SearchProductsAsAdminRequest.h:292
Aws::ServiceCatalog::Model::SearchProductsAsAdminRequest::GetPageSize
int GetPageSize() const
Definition: SearchProductsAsAdminRequest.h:316
Aws::ServiceCatalog::Model::SearchProductsAsAdminRequest::WithSortOrder
SearchProductsAsAdminRequest & WithSortOrder(const SortOrder &value)
Definition: SearchProductsAsAdminRequest.h:256
Aws::ServiceCatalog::Model::SearchProductsAsAdminRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::ServiceCatalog::Model::SearchProductsAsAdminRequest::GetSortBy
const ProductViewSortBy & GetSortBy() const
Definition: SearchProductsAsAdminRequest.h:205
Aws::ServiceCatalog::Model::SearchProductsAsAdminRequest::WithSortOrder
SearchProductsAsAdminRequest & WithSortOrder(SortOrder &&value)
Definition: SearchProductsAsAdminRequest.h:261
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::ServiceCatalog::Model::SearchProductsAsAdminRequest::SetPageToken
void SetPageToken(const Aws::String &value)
Definition: SearchProductsAsAdminRequest.h:280
Aws::ServiceCatalog::Model::SearchProductsAsAdminRequest::WithPageToken
SearchProductsAsAdminRequest & WithPageToken(const Aws::String &value)
Definition: SearchProductsAsAdminRequest.h:298
Aws::ServiceCatalog::Model::SearchProductsAsAdminRequest::WithProductSource
SearchProductsAsAdminRequest & WithProductSource(ProductSource &&value)
Definition: SearchProductsAsAdminRequest.h:362
ServiceCatalogRequest.h
Aws::ServiceCatalog::Model::ProductSource
ProductSource
Definition: ProductSource.h:17
Aws::ServiceCatalog::Model::SearchProductsAsAdminRequest::AcceptLanguageHasBeenSet
bool AcceptLanguageHasBeenSet() const
Definition: SearchProductsAsAdminRequest.h:55
Aws::ServiceCatalog::Model::SearchProductsAsAdminRequest::SetProductSource
void SetProductSource(const ProductSource &value)
Definition: SearchProductsAsAdminRequest.h:347
Aws::ServiceCatalog::Model::SearchProductsAsAdminRequest::AddFilters
SearchProductsAsAdminRequest & AddFilters(ProductViewFilterBy &&key, const Aws::Vector< Aws::String > &value)
Definition: SearchProductsAsAdminRequest.h:187
Aws::ServiceCatalog::Model::SearchProductsAsAdminRequest::AddFilters
SearchProductsAsAdminRequest & AddFilters(const ProductViewFilterBy &key, Aws::Vector< Aws::String > &&value)
Definition: SearchProductsAsAdminRequest.h:193
Aws::ServiceCatalog::Model::SearchProductsAsAdminRequest::SetAcceptLanguage
void SetAcceptLanguage(const char *value)
Definition: SearchProductsAsAdminRequest.h:76
Aws::ServiceCatalog::Model::SearchProductsAsAdminRequest::PageTokenHasBeenSet
bool PageTokenHasBeenSet() const
Definition: SearchProductsAsAdminRequest.h:274
Aws::ServiceCatalog::Model::SearchProductsAsAdminRequest::WithPageToken
SearchProductsAsAdminRequest & WithPageToken(const char *value)
Definition: SearchProductsAsAdminRequest.h:310
Aws::ServiceCatalog::Model::SearchProductsAsAdminRequest::GetProductSource
const ProductSource & GetProductSource() const
Definition: SearchProductsAsAdminRequest.h:337
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWS_SERVICECATALOG_API
#define AWS_SERVICECATALOG_API
Definition: ServiceCatalog_EXPORTS.h:28
Aws::ServiceCatalog::Model::SearchProductsAsAdminRequest::SortByHasBeenSet
bool SortByHasBeenSet() const
Definition: SearchProductsAsAdminRequest.h:210
ProductSource.h
Aws::ServiceCatalog::Model::SearchProductsAsAdminRequest::SetSortOrder
void SetSortOrder(const SortOrder &value)
Definition: SearchProductsAsAdminRequest.h:246
AWSVector.h
Aws::ServiceCatalog::Model::SearchProductsAsAdminRequest::GetPageToken
const Aws::String & GetPageToken() const
Definition: SearchProductsAsAdminRequest.h:268
Aws::ServiceCatalog::Model::SearchProductsAsAdminRequest::WithSortBy
SearchProductsAsAdminRequest & WithSortBy(ProductViewSortBy &&value)
Definition: SearchProductsAsAdminRequest.h:230
Aws::ServiceCatalog::Model::SearchProductsAsAdminRequest::WithAcceptLanguage
SearchProductsAsAdminRequest & WithAcceptLanguage(const Aws::String &value)
Definition: SearchProductsAsAdminRequest.h:83
Aws::ServiceCatalog::Model::SearchProductsAsAdminRequest::SetProductSource
void SetProductSource(ProductSource &&value)
Definition: SearchProductsAsAdminRequest.h:352
Aws::ServiceCatalog::Model::SearchProductsAsAdminRequest::WithAcceptLanguage
SearchProductsAsAdminRequest & WithAcceptLanguage(Aws::String &&value)
Definition: SearchProductsAsAdminRequest.h:90
Aws::ServiceCatalog::Model::SearchProductsAsAdminRequest::SearchProductsAsAdminRequest
SearchProductsAsAdminRequest()
Aws::ServiceCatalog::Model::SearchProductsAsAdminRequest::WithPageToken
SearchProductsAsAdminRequest & WithPageToken(Aws::String &&value)
Definition: SearchProductsAsAdminRequest.h:304
Aws::ServiceCatalog::Model::SearchProductsAsAdminRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ServiceCatalog::ServiceCatalogRequest
Definition: ServiceCatalogRequest.h:17
Aws::ServiceCatalog::Model::SearchProductsAsAdminRequest::PortfolioIdHasBeenSet
bool PortfolioIdHasBeenSet() const
Definition: SearchProductsAsAdminRequest.h:108
Aws::ServiceCatalog::Model::SearchProductsAsAdminRequest::WithPortfolioId
SearchProductsAsAdminRequest & WithPortfolioId(const Aws::String &value)
Definition: SearchProductsAsAdminRequest.h:128
Aws::ServiceCatalog::Model::SearchProductsAsAdminRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: SearchProductsAsAdminRequest.h:36
Aws::ServiceCatalog::Model::SearchProductsAsAdminRequest::SetPortfolioId
void SetPortfolioId(const char *value)
Definition: SearchProductsAsAdminRequest.h:123
Aws::ServiceCatalog::Model::SearchProductsAsAdminRequest::SetPortfolioId
void SetPortfolioId(Aws::String &&value)
Definition: SearchProductsAsAdminRequest.h:118
Aws::ServiceCatalog::Model::SearchProductsAsAdminRequest::SetFilters
void SetFilters(const Aws::Map< ProductViewFilterBy, Aws::Vector< Aws::String >> &value)
Definition: SearchProductsAsAdminRequest.h:157
Aws::ServiceCatalog::Model::SearchProductsAsAdminRequest::WithProductSource
SearchProductsAsAdminRequest & WithProductSource(const ProductSource &value)
Definition: SearchProductsAsAdminRequest.h:357
SortOrder.h
Aws::ServiceCatalog::Model::SearchProductsAsAdminRequest::WithPageSize
SearchProductsAsAdminRequest & WithPageSize(int value)
Definition: SearchProductsAsAdminRequest.h:331
Aws::ServiceCatalog::Model::SearchProductsAsAdminRequest::GetFilters
const Aws::Map< ProductViewFilterBy, Aws::Vector< Aws::String > > & GetFilters() const
Definition: SearchProductsAsAdminRequest.h:145
Aws::ServiceCatalog::Model::SearchProductsAsAdminRequest::AddFilters
SearchProductsAsAdminRequest & AddFilters(ProductViewFilterBy &&key, Aws::Vector< Aws::String > &&value)
Definition: SearchProductsAsAdminRequest.h:199
Aws::ServiceCatalog::Model::SearchProductsAsAdminRequest::WithFilters
SearchProductsAsAdminRequest & WithFilters(Aws::Map< ProductViewFilterBy, Aws::Vector< Aws::String >> &&value)
Definition: SearchProductsAsAdminRequest.h:175
Aws::ServiceCatalog::Model::SearchProductsAsAdminRequest::GetSortOrder
const SortOrder & GetSortOrder() const
Definition: SearchProductsAsAdminRequest.h:236
Aws::ServiceCatalog::Model::SearchProductsAsAdminRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: SearchProductsAsAdminRequest.h:151
Aws::ServiceCatalog::Model::SearchProductsAsAdminRequest::WithAcceptLanguage
SearchProductsAsAdminRequest & WithAcceptLanguage(const char *value)
Definition: SearchProductsAsAdminRequest.h:97
AWSString.h
Aws::ServiceCatalog::Model::ProductViewSortBy
ProductViewSortBy
Definition: ProductViewSortBy.h:17
Aws::ServiceCatalog::Model::SearchProductsAsAdminRequest::SetSortBy
void SetSortBy(ProductViewSortBy &&value)
Definition: SearchProductsAsAdminRequest.h:220
Aws::ServiceCatalog::Model::SearchProductsAsAdminRequest::WithPortfolioId
SearchProductsAsAdminRequest & WithPortfolioId(const char *value)
Definition: SearchProductsAsAdminRequest.h:138
Aws::ServiceCatalog::Model::SearchProductsAsAdminRequest::GetPortfolioId
const Aws::String & GetPortfolioId() const
Definition: SearchProductsAsAdminRequest.h:103
Aws::ServiceCatalog::Model::ProductViewFilterBy
ProductViewFilterBy
Definition: ProductViewFilterBy.h:17
ProductViewFilterBy.h
Aws::ServiceCatalog::Model::SearchProductsAsAdminRequest
Definition: SearchProductsAsAdminRequest.h:28
ProductViewSortBy.h
Aws::ServiceCatalog::Model::SearchProductsAsAdminRequest::SetFilters
void SetFilters(Aws::Map< ProductViewFilterBy, Aws::Vector< Aws::String >> &&value)
Definition: SearchProductsAsAdminRequest.h:163
Aws::ServiceCatalog::Model::SearchProductsAsAdminRequest::ProductSourceHasBeenSet
bool ProductSourceHasBeenSet() const
Definition: SearchProductsAsAdminRequest.h:342
Aws::ServiceCatalog::Model::SortOrder
SortOrder
Definition: SortOrder.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::ServiceCatalog::Model::SearchProductsAsAdminRequest::WithSortBy
SearchProductsAsAdminRequest & WithSortBy(const ProductViewSortBy &value)
Definition: SearchProductsAsAdminRequest.h:225
Aws::ServiceCatalog::Model::SearchProductsAsAdminRequest::SetPortfolioId
void SetPortfolioId(const Aws::String &value)
Definition: SearchProductsAsAdminRequest.h:113
Aws::ServiceCatalog::Model::SearchProductsAsAdminRequest::SetPageToken
void SetPageToken(Aws::String &&value)
Definition: SearchProductsAsAdminRequest.h:286
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ServiceCatalog::Model::SearchProductsAsAdminRequest::SetSortBy
void SetSortBy(const ProductViewSortBy &value)
Definition: SearchProductsAsAdminRequest.h:215
Aws::ServiceCatalog::Model::SearchProductsAsAdminRequest::SortOrderHasBeenSet
bool SortOrderHasBeenSet() const
Definition: SearchProductsAsAdminRequest.h:241
ServiceCatalog_EXPORTS.h
Aws::ServiceCatalog::Model::SearchProductsAsAdminRequest::WithPortfolioId
SearchProductsAsAdminRequest & WithPortfolioId(Aws::String &&value)
Definition: SearchProductsAsAdminRequest.h:133
Aws::ServiceCatalog::Model::SearchProductsAsAdminRequest::SetAcceptLanguage
void SetAcceptLanguage(const Aws::String &value)
Definition: SearchProductsAsAdminRequest.h:62
Aws::ServiceCatalog::Model::SearchProductsAsAdminRequest::WithFilters
SearchProductsAsAdminRequest & WithFilters(const Aws::Map< ProductViewFilterBy, Aws::Vector< Aws::String >> &value)
Definition: SearchProductsAsAdminRequest.h:169
Aws::ServiceCatalog::Model::SearchProductsAsAdminRequest::PageSizeHasBeenSet
bool PageSizeHasBeenSet() const
Definition: SearchProductsAsAdminRequest.h:321
AWSMap.h
Aws::ServiceCatalog::Model::SearchProductsAsAdminRequest::SetSortOrder
void SetSortOrder(SortOrder &&value)
Definition: SearchProductsAsAdminRequest.h:251
Aws::ServiceCatalog::Model::SearchProductsAsAdminRequest::SetAcceptLanguage
void SetAcceptLanguage(Aws::String &&value)
Definition: SearchProductsAsAdminRequest.h:69
Aws::ServiceCatalog::Model::SearchProductsAsAdminRequest::GetAcceptLanguage
const Aws::String & GetAcceptLanguage() const
Definition: SearchProductsAsAdminRequest.h:48
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::ServiceCatalog::Model::SearchProductsAsAdminRequest::AddFilters
SearchProductsAsAdminRequest & AddFilters(const ProductViewFilterBy &key, const Aws::Vector< Aws::String > &value)
Definition: SearchProductsAsAdminRequest.h:181