AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ListEngagementsRequest.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/EngagementContextType.h>
12#include <aws/partnercentral-selling/model/EngagementSort.h>
13
14#include <utility>
15
16namespace Aws {
17namespace PartnerCentralSelling {
18namespace Model {
19
23 public:
24 AWS_PARTNERCENTRALSELLING_API ListEngagementsRequest() = 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 "ListEngagements"; }
31
32 AWS_PARTNERCENTRALSELLING_API Aws::String SerializePayload() const override;
33
34 AWS_PARTNERCENTRALSELLING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
37
40 inline const Aws::String& GetCatalog() const { return m_catalog; }
41 inline bool CatalogHasBeenSet() const { return m_catalogHasBeenSet; }
42 template <typename CatalogT = Aws::String>
43 void SetCatalog(CatalogT&& value) {
44 m_catalogHasBeenSet = true;
45 m_catalog = std::forward<CatalogT>(value);
46 }
47 template <typename CatalogT = Aws::String>
49 SetCatalog(std::forward<CatalogT>(value));
50 return *this;
51 }
53
55
60 inline const Aws::Vector<Aws::String>& GetCreatedBy() const { return m_createdBy; }
61 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
62 template <typename CreatedByT = Aws::Vector<Aws::String>>
63 void SetCreatedBy(CreatedByT&& value) {
64 m_createdByHasBeenSet = true;
65 m_createdBy = std::forward<CreatedByT>(value);
66 }
67 template <typename CreatedByT = Aws::Vector<Aws::String>>
69 SetCreatedBy(std::forward<CreatedByT>(value));
70 return *this;
71 }
72 template <typename CreatedByT = Aws::String>
73 ListEngagementsRequest& AddCreatedBy(CreatedByT&& value) {
74 m_createdByHasBeenSet = true;
75 m_createdBy.emplace_back(std::forward<CreatedByT>(value));
76 return *this;
77 }
79
81
85 inline const Aws::Vector<Aws::String>& GetExcludeCreatedBy() const { return m_excludeCreatedBy; }
86 inline bool ExcludeCreatedByHasBeenSet() const { return m_excludeCreatedByHasBeenSet; }
87 template <typename ExcludeCreatedByT = Aws::Vector<Aws::String>>
88 void SetExcludeCreatedBy(ExcludeCreatedByT&& value) {
89 m_excludeCreatedByHasBeenSet = true;
90 m_excludeCreatedBy = std::forward<ExcludeCreatedByT>(value);
91 }
92 template <typename ExcludeCreatedByT = Aws::Vector<Aws::String>>
93 ListEngagementsRequest& WithExcludeCreatedBy(ExcludeCreatedByT&& value) {
94 SetExcludeCreatedBy(std::forward<ExcludeCreatedByT>(value));
95 return *this;
96 }
97 template <typename ExcludeCreatedByT = Aws::String>
98 ListEngagementsRequest& AddExcludeCreatedBy(ExcludeCreatedByT&& value) {
99 m_excludeCreatedByHasBeenSet = true;
100 m_excludeCreatedBy.emplace_back(std::forward<ExcludeCreatedByT>(value));
101 return *this;
102 }
104
106
111 inline const Aws::Vector<EngagementContextType>& GetContextTypes() const { return m_contextTypes; }
112 inline bool ContextTypesHasBeenSet() const { return m_contextTypesHasBeenSet; }
113 template <typename ContextTypesT = Aws::Vector<EngagementContextType>>
114 void SetContextTypes(ContextTypesT&& value) {
115 m_contextTypesHasBeenSet = true;
116 m_contextTypes = std::forward<ContextTypesT>(value);
117 }
118 template <typename ContextTypesT = Aws::Vector<EngagementContextType>>
119 ListEngagementsRequest& WithContextTypes(ContextTypesT&& value) {
120 SetContextTypes(std::forward<ContextTypesT>(value));
121 return *this;
122 }
124 m_contextTypesHasBeenSet = true;
125 m_contextTypes.push_back(value);
126 return *this;
127 }
129
131
136 inline const Aws::Vector<EngagementContextType>& GetExcludeContextTypes() const { return m_excludeContextTypes; }
137 inline bool ExcludeContextTypesHasBeenSet() const { return m_excludeContextTypesHasBeenSet; }
138 template <typename ExcludeContextTypesT = Aws::Vector<EngagementContextType>>
139 void SetExcludeContextTypes(ExcludeContextTypesT&& value) {
140 m_excludeContextTypesHasBeenSet = true;
141 m_excludeContextTypes = std::forward<ExcludeContextTypesT>(value);
142 }
143 template <typename ExcludeContextTypesT = Aws::Vector<EngagementContextType>>
144 ListEngagementsRequest& WithExcludeContextTypes(ExcludeContextTypesT&& value) {
145 SetExcludeContextTypes(std::forward<ExcludeContextTypesT>(value));
146 return *this;
147 }
149 m_excludeContextTypesHasBeenSet = true;
150 m_excludeContextTypes.push_back(value);
151 return *this;
152 }
154
156
157 inline const EngagementSort& GetSort() const { return m_sort; }
158 inline bool SortHasBeenSet() const { return m_sortHasBeenSet; }
159 template <typename SortT = EngagementSort>
160 void SetSort(SortT&& value) {
161 m_sortHasBeenSet = true;
162 m_sort = std::forward<SortT>(value);
163 }
164 template <typename SortT = EngagementSort>
166 SetSort(std::forward<SortT>(value));
167 return *this;
168 }
170
172
175 inline int GetMaxResults() const { return m_maxResults; }
176 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
177 inline void SetMaxResults(int value) {
178 m_maxResultsHasBeenSet = true;
179 m_maxResults = value;
180 }
182 SetMaxResults(value);
183 return *this;
184 }
186
188
192 inline const Aws::String& GetNextToken() const { return m_nextToken; }
193 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
194 template <typename NextTokenT = Aws::String>
195 void SetNextToken(NextTokenT&& value) {
196 m_nextTokenHasBeenSet = true;
197 m_nextToken = std::forward<NextTokenT>(value);
198 }
199 template <typename NextTokenT = Aws::String>
201 SetNextToken(std::forward<NextTokenT>(value));
202 return *this;
203 }
205
207
210 inline const Aws::Vector<Aws::String>& GetEngagementIdentifier() const { return m_engagementIdentifier; }
211 inline bool EngagementIdentifierHasBeenSet() const { return m_engagementIdentifierHasBeenSet; }
212 template <typename EngagementIdentifierT = Aws::Vector<Aws::String>>
213 void SetEngagementIdentifier(EngagementIdentifierT&& value) {
214 m_engagementIdentifierHasBeenSet = true;
215 m_engagementIdentifier = std::forward<EngagementIdentifierT>(value);
216 }
217 template <typename EngagementIdentifierT = Aws::Vector<Aws::String>>
218 ListEngagementsRequest& WithEngagementIdentifier(EngagementIdentifierT&& value) {
219 SetEngagementIdentifier(std::forward<EngagementIdentifierT>(value));
220 return *this;
221 }
222 template <typename EngagementIdentifierT = Aws::String>
223 ListEngagementsRequest& AddEngagementIdentifier(EngagementIdentifierT&& value) {
224 m_engagementIdentifierHasBeenSet = true;
225 m_engagementIdentifier.emplace_back(std::forward<EngagementIdentifierT>(value));
226 return *this;
227 }
229 private:
230 Aws::String m_catalog;
231
232 Aws::Vector<Aws::String> m_createdBy;
233
234 Aws::Vector<Aws::String> m_excludeCreatedBy;
235
237
238 Aws::Vector<EngagementContextType> m_excludeContextTypes;
239
240 EngagementSort m_sort;
241
242 int m_maxResults{0};
243
244 Aws::String m_nextToken;
245
246 Aws::Vector<Aws::String> m_engagementIdentifier;
247 bool m_catalogHasBeenSet = false;
248 bool m_createdByHasBeenSet = false;
249 bool m_excludeCreatedByHasBeenSet = false;
250 bool m_contextTypesHasBeenSet = false;
251 bool m_excludeContextTypesHasBeenSet = false;
252 bool m_sortHasBeenSet = false;
253 bool m_maxResultsHasBeenSet = false;
254 bool m_nextTokenHasBeenSet = false;
255 bool m_engagementIdentifierHasBeenSet = false;
256};
257
258} // namespace Model
259} // namespace PartnerCentralSelling
260} // namespace Aws
AWS_PARTNERCENTRALSELLING_API Aws::String SerializePayload() const override
ListEngagementsRequest & AddExcludeCreatedBy(ExcludeCreatedByT &&value)
ListEngagementsRequest & WithExcludeCreatedBy(ExcludeCreatedByT &&value)
const Aws::Vector< EngagementContextType > & GetExcludeContextTypes() const
ListEngagementsRequest & WithExcludeContextTypes(ExcludeContextTypesT &&value)
ListEngagementsRequest & AddContextTypes(EngagementContextType value)
ListEngagementsRequest & WithEngagementIdentifier(EngagementIdentifierT &&value)
ListEngagementsRequest & AddEngagementIdentifier(EngagementIdentifierT &&value)
const Aws::Vector< Aws::String > & GetExcludeCreatedBy() const
const Aws::Vector< Aws::String > & GetCreatedBy() const
ListEngagementsRequest & AddExcludeContextTypes(EngagementContextType value)
ListEngagementsRequest & WithNextToken(NextTokenT &&value)
const Aws::Vector< Aws::String > & GetEngagementIdentifier() const
AWS_PARTNERCENTRALSELLING_API ListEngagementsRequest()=default
const Aws::Vector< EngagementContextType > & GetContextTypes() const
ListEngagementsRequest & WithCatalog(CatalogT &&value)
ListEngagementsRequest & WithContextTypes(ContextTypesT &&value)
ListEngagementsRequest & AddCreatedBy(CreatedByT &&value)
AWS_PARTNERCENTRALSELLING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListEngagementsRequest & WithCreatedBy(CreatedByT &&value)
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