AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ListOpportunitiesRequest.h
1
6#pragma once
7#include <aws/partnercentral-selling/PartnerCentralSelling_EXPORTS.h>
8#include <aws/partnercentral-selling/PartnerCentralSellingRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/partnercentral-selling/model/LastModifiedDate.h>
12#include <aws/partnercentral-selling/model/OpportunitySort.h>
13#include <aws/partnercentral-selling/model/ReviewStatus.h>
14#include <aws/partnercentral-selling/model/Stage.h>
15#include <utility>
16
17namespace Aws
18{
19namespace PartnerCentralSelling
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_PARTNERCENTRALSELLING_API ListOpportunitiesRequest() = default;
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 "ListOpportunities"; }
36
37 AWS_PARTNERCENTRALSELLING_API Aws::String SerializePayload() const override;
38
39 AWS_PARTNERCENTRALSELLING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40
41
43
51 inline const Aws::String& GetCatalog() const { return m_catalog; }
52 inline bool CatalogHasBeenSet() const { return m_catalogHasBeenSet; }
53 template<typename CatalogT = Aws::String>
54 void SetCatalog(CatalogT&& value) { m_catalogHasBeenSet = true; m_catalog = std::forward<CatalogT>(value); }
55 template<typename CatalogT = Aws::String>
56 ListOpportunitiesRequest& WithCatalog(CatalogT&& value) { SetCatalog(std::forward<CatalogT>(value)); return *this;}
58
60
65 inline const Aws::Vector<Aws::String>& GetCustomerCompanyName() const { return m_customerCompanyName; }
66 inline bool CustomerCompanyNameHasBeenSet() const { return m_customerCompanyNameHasBeenSet; }
67 template<typename CustomerCompanyNameT = Aws::Vector<Aws::String>>
68 void SetCustomerCompanyName(CustomerCompanyNameT&& value) { m_customerCompanyNameHasBeenSet = true; m_customerCompanyName = std::forward<CustomerCompanyNameT>(value); }
69 template<typename CustomerCompanyNameT = Aws::Vector<Aws::String>>
70 ListOpportunitiesRequest& WithCustomerCompanyName(CustomerCompanyNameT&& value) { SetCustomerCompanyName(std::forward<CustomerCompanyNameT>(value)); return *this;}
71 template<typename CustomerCompanyNameT = Aws::String>
72 ListOpportunitiesRequest& AddCustomerCompanyName(CustomerCompanyNameT&& value) { m_customerCompanyNameHasBeenSet = true; m_customerCompanyName.emplace_back(std::forward<CustomerCompanyNameT>(value)); return *this; }
74
76
81 inline const Aws::Vector<Aws::String>& GetIdentifier() const { return m_identifier; }
82 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
83 template<typename IdentifierT = Aws::Vector<Aws::String>>
84 void SetIdentifier(IdentifierT&& value) { m_identifierHasBeenSet = true; m_identifier = std::forward<IdentifierT>(value); }
85 template<typename IdentifierT = Aws::Vector<Aws::String>>
86 ListOpportunitiesRequest& WithIdentifier(IdentifierT&& value) { SetIdentifier(std::forward<IdentifierT>(value)); return *this;}
87 template<typename IdentifierT = Aws::String>
88 ListOpportunitiesRequest& AddIdentifier(IdentifierT&& value) { m_identifierHasBeenSet = true; m_identifier.emplace_back(std::forward<IdentifierT>(value)); return *this; }
90
92
97 inline const LastModifiedDate& GetLastModifiedDate() const { return m_lastModifiedDate; }
98 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
99 template<typename LastModifiedDateT = LastModifiedDate>
100 void SetLastModifiedDate(LastModifiedDateT&& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = std::forward<LastModifiedDateT>(value); }
101 template<typename LastModifiedDateT = LastModifiedDate>
102 ListOpportunitiesRequest& WithLastModifiedDate(LastModifiedDateT&& value) { SetLastModifiedDate(std::forward<LastModifiedDateT>(value)); return *this;}
104
106
112 inline const Aws::Vector<ReviewStatus>& GetLifeCycleReviewStatus() const { return m_lifeCycleReviewStatus; }
113 inline bool LifeCycleReviewStatusHasBeenSet() const { return m_lifeCycleReviewStatusHasBeenSet; }
114 template<typename LifeCycleReviewStatusT = Aws::Vector<ReviewStatus>>
115 void SetLifeCycleReviewStatus(LifeCycleReviewStatusT&& value) { m_lifeCycleReviewStatusHasBeenSet = true; m_lifeCycleReviewStatus = std::forward<LifeCycleReviewStatusT>(value); }
116 template<typename LifeCycleReviewStatusT = Aws::Vector<ReviewStatus>>
117 ListOpportunitiesRequest& WithLifeCycleReviewStatus(LifeCycleReviewStatusT&& value) { SetLifeCycleReviewStatus(std::forward<LifeCycleReviewStatusT>(value)); return *this;}
118 inline ListOpportunitiesRequest& AddLifeCycleReviewStatus(ReviewStatus value) { m_lifeCycleReviewStatusHasBeenSet = true; m_lifeCycleReviewStatus.push_back(value); return *this; }
120
122
128 inline const Aws::Vector<Stage>& GetLifeCycleStage() const { return m_lifeCycleStage; }
129 inline bool LifeCycleStageHasBeenSet() const { return m_lifeCycleStageHasBeenSet; }
130 template<typename LifeCycleStageT = Aws::Vector<Stage>>
131 void SetLifeCycleStage(LifeCycleStageT&& value) { m_lifeCycleStageHasBeenSet = true; m_lifeCycleStage = std::forward<LifeCycleStageT>(value); }
132 template<typename LifeCycleStageT = Aws::Vector<Stage>>
133 ListOpportunitiesRequest& WithLifeCycleStage(LifeCycleStageT&& value) { SetLifeCycleStage(std::forward<LifeCycleStageT>(value)); return *this;}
134 inline ListOpportunitiesRequest& AddLifeCycleStage(Stage value) { m_lifeCycleStageHasBeenSet = true; m_lifeCycleStage.push_back(value); return *this; }
136
138
143 inline int GetMaxResults() const { return m_maxResults; }
144 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
145 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
146 inline ListOpportunitiesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
148
150
155 inline const Aws::String& GetNextToken() const { return m_nextToken; }
156 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
157 template<typename NextTokenT = Aws::String>
158 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
159 template<typename NextTokenT = Aws::String>
160 ListOpportunitiesRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
162
164
168 inline const OpportunitySort& GetSort() const { return m_sort; }
169 inline bool SortHasBeenSet() const { return m_sortHasBeenSet; }
170 template<typename SortT = OpportunitySort>
171 void SetSort(SortT&& value) { m_sortHasBeenSet = true; m_sort = std::forward<SortT>(value); }
172 template<typename SortT = OpportunitySort>
173 ListOpportunitiesRequest& WithSort(SortT&& value) { SetSort(std::forward<SortT>(value)); return *this;}
175 private:
176
177 Aws::String m_catalog;
178 bool m_catalogHasBeenSet = false;
179
180 Aws::Vector<Aws::String> m_customerCompanyName;
181 bool m_customerCompanyNameHasBeenSet = false;
182
183 Aws::Vector<Aws::String> m_identifier;
184 bool m_identifierHasBeenSet = false;
185
186 LastModifiedDate m_lastModifiedDate;
187 bool m_lastModifiedDateHasBeenSet = false;
188
189 Aws::Vector<ReviewStatus> m_lifeCycleReviewStatus;
190 bool m_lifeCycleReviewStatusHasBeenSet = false;
191
192 Aws::Vector<Stage> m_lifeCycleStage;
193 bool m_lifeCycleStageHasBeenSet = false;
194
195 int m_maxResults{0};
196 bool m_maxResultsHasBeenSet = false;
197
198 Aws::String m_nextToken;
199 bool m_nextTokenHasBeenSet = false;
200
201 OpportunitySort m_sort;
202 bool m_sortHasBeenSet = false;
203 };
204
205} // namespace Model
206} // namespace PartnerCentralSelling
207} // namespace Aws
ListOpportunitiesRequest & WithIdentifier(IdentifierT &&value)
AWS_PARTNERCENTRALSELLING_API Aws::String SerializePayload() const override
AWS_PARTNERCENTRALSELLING_API ListOpportunitiesRequest()=default
ListOpportunitiesRequest & WithLifeCycleReviewStatus(LifeCycleReviewStatusT &&value)
ListOpportunitiesRequest & WithNextToken(NextTokenT &&value)
ListOpportunitiesRequest & AddIdentifier(IdentifierT &&value)
const Aws::Vector< Aws::String > & GetCustomerCompanyName() const
AWS_PARTNERCENTRALSELLING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListOpportunitiesRequest & WithLifeCycleStage(LifeCycleStageT &&value)
ListOpportunitiesRequest & AddLifeCycleReviewStatus(ReviewStatus value)
ListOpportunitiesRequest & WithLastModifiedDate(LastModifiedDateT &&value)
const Aws::Vector< ReviewStatus > & GetLifeCycleReviewStatus() const
ListOpportunitiesRequest & AddCustomerCompanyName(CustomerCompanyNameT &&value)
ListOpportunitiesRequest & WithCustomerCompanyName(CustomerCompanyNameT &&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