AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ListSolutionsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/partnercentral-selling/PartnerCentralSellingRequest.h>
10#include <aws/partnercentral-selling/PartnerCentralSelling_EXPORTS.h>
11#include <aws/partnercentral-selling/model/SolutionSort.h>
12#include <aws/partnercentral-selling/model/SolutionStatus.h>
13
14#include <utility>
15
16namespace Aws {
17namespace PartnerCentralSelling {
18namespace Model {
19
23 public:
24 AWS_PARTNERCENTRALSELLING_API ListSolutionsRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "ListSolutions"; }
31
32 AWS_PARTNERCENTRALSELLING_API Aws::String SerializePayload() const override;
33
34 AWS_PARTNERCENTRALSELLING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
37
45 inline const Aws::String& GetCatalog() const { return m_catalog; }
46 inline bool CatalogHasBeenSet() const { return m_catalogHasBeenSet; }
47 template <typename CatalogT = Aws::String>
48 void SetCatalog(CatalogT&& value) {
49 m_catalogHasBeenSet = true;
50 m_catalog = std::forward<CatalogT>(value);
51 }
52 template <typename CatalogT = Aws::String>
53 ListSolutionsRequest& WithCatalog(CatalogT&& value) {
54 SetCatalog(std::forward<CatalogT>(value));
55 return *this;
56 }
58
60
65 inline int GetMaxResults() const { return m_maxResults; }
66 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
67 inline void SetMaxResults(int value) {
68 m_maxResultsHasBeenSet = true;
69 m_maxResults = value;
70 }
72 SetMaxResults(value);
73 return *this;
74 }
76
78
83 inline const Aws::String& GetNextToken() const { return m_nextToken; }
84 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
85 template <typename NextTokenT = Aws::String>
86 void SetNextToken(NextTokenT&& value) {
87 m_nextTokenHasBeenSet = true;
88 m_nextToken = std::forward<NextTokenT>(value);
89 }
90 template <typename NextTokenT = Aws::String>
91 ListSolutionsRequest& WithNextToken(NextTokenT&& value) {
92 SetNextToken(std::forward<NextTokenT>(value));
93 return *this;
94 }
96
98
102 inline const SolutionSort& GetSort() const { return m_sort; }
103 inline bool SortHasBeenSet() const { return m_sortHasBeenSet; }
104 template <typename SortT = SolutionSort>
105 void SetSort(SortT&& value) {
106 m_sortHasBeenSet = true;
107 m_sort = std::forward<SortT>(value);
108 }
109 template <typename SortT = SolutionSort>
111 SetSort(std::forward<SortT>(value));
112 return *this;
113 }
115
117
121 inline const Aws::Vector<SolutionStatus>& GetStatus() const { return m_status; }
122 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
123 template <typename StatusT = Aws::Vector<SolutionStatus>>
124 void SetStatus(StatusT&& value) {
125 m_statusHasBeenSet = true;
126 m_status = std::forward<StatusT>(value);
127 }
128 template <typename StatusT = Aws::Vector<SolutionStatus>>
130 SetStatus(std::forward<StatusT>(value));
131 return *this;
132 }
134 m_statusHasBeenSet = true;
135 m_status.push_back(value);
136 return *this;
137 }
139
141
146 inline const Aws::Vector<Aws::String>& GetIdentifier() const { return m_identifier; }
147 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
148 template <typename IdentifierT = Aws::Vector<Aws::String>>
149 void SetIdentifier(IdentifierT&& value) {
150 m_identifierHasBeenSet = true;
151 m_identifier = std::forward<IdentifierT>(value);
152 }
153 template <typename IdentifierT = Aws::Vector<Aws::String>>
154 ListSolutionsRequest& WithIdentifier(IdentifierT&& value) {
155 SetIdentifier(std::forward<IdentifierT>(value));
156 return *this;
157 }
158 template <typename IdentifierT = Aws::String>
159 ListSolutionsRequest& AddIdentifier(IdentifierT&& value) {
160 m_identifierHasBeenSet = true;
161 m_identifier.emplace_back(std::forward<IdentifierT>(value));
162 return *this;
163 }
165
167
173 inline const Aws::Vector<Aws::String>& GetCategory() const { return m_category; }
174 inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
175 template <typename CategoryT = Aws::Vector<Aws::String>>
176 void SetCategory(CategoryT&& value) {
177 m_categoryHasBeenSet = true;
178 m_category = std::forward<CategoryT>(value);
179 }
180 template <typename CategoryT = Aws::Vector<Aws::String>>
181 ListSolutionsRequest& WithCategory(CategoryT&& value) {
182 SetCategory(std::forward<CategoryT>(value));
183 return *this;
184 }
185 template <typename CategoryT = Aws::String>
186 ListSolutionsRequest& AddCategory(CategoryT&& value) {
187 m_categoryHasBeenSet = true;
188 m_category.emplace_back(std::forward<CategoryT>(value));
189 return *this;
190 }
192 private:
193 Aws::String m_catalog;
194
195 int m_maxResults{0};
196
197 Aws::String m_nextToken;
198
199 SolutionSort m_sort;
200
202
203 Aws::Vector<Aws::String> m_identifier;
204
205 Aws::Vector<Aws::String> m_category;
206 bool m_catalogHasBeenSet = false;
207 bool m_maxResultsHasBeenSet = false;
208 bool m_nextTokenHasBeenSet = false;
209 bool m_sortHasBeenSet = false;
210 bool m_statusHasBeenSet = false;
211 bool m_identifierHasBeenSet = false;
212 bool m_categoryHasBeenSet = false;
213};
214
215} // namespace Model
216} // namespace PartnerCentralSelling
217} // namespace Aws
ListSolutionsRequest & AddIdentifier(IdentifierT &&value)
ListSolutionsRequest & WithIdentifier(IdentifierT &&value)
ListSolutionsRequest & WithCategory(CategoryT &&value)
AWS_PARTNERCENTRALSELLING_API ListSolutionsRequest()=default
virtual const char * GetServiceRequestName() const override
ListSolutionsRequest & WithNextToken(NextTokenT &&value)
AWS_PARTNERCENTRALSELLING_API Aws::String SerializePayload() const override
ListSolutionsRequest & WithCatalog(CatalogT &&value)
const Aws::Vector< Aws::String > & GetIdentifier() const
const Aws::Vector< Aws::String > & GetCategory() const
ListSolutionsRequest & AddStatus(SolutionStatus value)
AWS_PARTNERCENTRALSELLING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListSolutionsRequest & AddCategory(CategoryT &&value)
const Aws::Vector< SolutionStatus > & GetStatus() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector