AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
UpdateOpportunityRequest.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/partnercentral-selling/PartnerCentralSellingRequest.h>
11#include <aws/partnercentral-selling/PartnerCentralSelling_EXPORTS.h>
12#include <aws/partnercentral-selling/model/Customer.h>
13#include <aws/partnercentral-selling/model/LifeCycle.h>
14#include <aws/partnercentral-selling/model/Marketing.h>
15#include <aws/partnercentral-selling/model/NationalSecurity.h>
16#include <aws/partnercentral-selling/model/OpportunityType.h>
17#include <aws/partnercentral-selling/model/PrimaryNeedFromAws.h>
18#include <aws/partnercentral-selling/model/Project.h>
19#include <aws/partnercentral-selling/model/SoftwareRevenue.h>
20
21#include <utility>
22
23namespace Aws {
24namespace PartnerCentralSelling {
25namespace Model {
26
30 public:
31 AWS_PARTNERCENTRALSELLING_API UpdateOpportunityRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "UpdateOpportunity"; }
38
39 AWS_PARTNERCENTRALSELLING_API Aws::String SerializePayload() const override;
40
41 AWS_PARTNERCENTRALSELLING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
42
44
54 inline const Aws::String& GetCatalog() const { return m_catalog; }
55 inline bool CatalogHasBeenSet() const { return m_catalogHasBeenSet; }
56 template <typename CatalogT = Aws::String>
57 void SetCatalog(CatalogT&& value) {
58 m_catalogHasBeenSet = true;
59 m_catalog = std::forward<CatalogT>(value);
60 }
61 template <typename CatalogT = Aws::String>
63 SetCatalog(std::forward<CatalogT>(value));
64 return *this;
65 }
67
69
92 inline const Aws::Vector<PrimaryNeedFromAws>& GetPrimaryNeedsFromAws() const { return m_primaryNeedsFromAws; }
93 inline bool PrimaryNeedsFromAwsHasBeenSet() const { return m_primaryNeedsFromAwsHasBeenSet; }
94 template <typename PrimaryNeedsFromAwsT = Aws::Vector<PrimaryNeedFromAws>>
95 void SetPrimaryNeedsFromAws(PrimaryNeedsFromAwsT&& value) {
96 m_primaryNeedsFromAwsHasBeenSet = true;
97 m_primaryNeedsFromAws = std::forward<PrimaryNeedsFromAwsT>(value);
98 }
99 template <typename PrimaryNeedsFromAwsT = Aws::Vector<PrimaryNeedFromAws>>
100 UpdateOpportunityRequest& WithPrimaryNeedsFromAws(PrimaryNeedsFromAwsT&& value) {
101 SetPrimaryNeedsFromAws(std::forward<PrimaryNeedsFromAwsT>(value));
102 return *this;
103 }
105 m_primaryNeedsFromAwsHasBeenSet = true;
106 m_primaryNeedsFromAws.push_back(value);
107 return *this;
108 }
110
112
118 inline NationalSecurity GetNationalSecurity() const { return m_nationalSecurity; }
119 inline bool NationalSecurityHasBeenSet() const { return m_nationalSecurityHasBeenSet; }
121 m_nationalSecurityHasBeenSet = true;
122 m_nationalSecurity = value;
123 }
125 SetNationalSecurity(value);
126 return *this;
127 }
129
131
136 inline const Aws::String& GetPartnerOpportunityIdentifier() const { return m_partnerOpportunityIdentifier; }
137 inline bool PartnerOpportunityIdentifierHasBeenSet() const { return m_partnerOpportunityIdentifierHasBeenSet; }
138 template <typename PartnerOpportunityIdentifierT = Aws::String>
139 void SetPartnerOpportunityIdentifier(PartnerOpportunityIdentifierT&& value) {
140 m_partnerOpportunityIdentifierHasBeenSet = true;
141 m_partnerOpportunityIdentifier = std::forward<PartnerOpportunityIdentifierT>(value);
142 }
143 template <typename PartnerOpportunityIdentifierT = Aws::String>
144 UpdateOpportunityRequest& WithPartnerOpportunityIdentifier(PartnerOpportunityIdentifierT&& value) {
145 SetPartnerOpportunityIdentifier(std::forward<PartnerOpportunityIdentifierT>(value));
146 return *this;
147 }
149
151
155 inline const Customer& GetCustomer() const { return m_customer; }
156 inline bool CustomerHasBeenSet() const { return m_customerHasBeenSet; }
157 template <typename CustomerT = Customer>
158 void SetCustomer(CustomerT&& value) {
159 m_customerHasBeenSet = true;
160 m_customer = std::forward<CustomerT>(value);
161 }
162 template <typename CustomerT = Customer>
164 SetCustomer(std::forward<CustomerT>(value));
165 return *this;
166 }
168
170
174 inline const Project& GetProject() const { return m_project; }
175 inline bool ProjectHasBeenSet() const { return m_projectHasBeenSet; }
176 template <typename ProjectT = Project>
177 void SetProject(ProjectT&& value) {
178 m_projectHasBeenSet = true;
179 m_project = std::forward<ProjectT>(value);
180 }
181 template <typename ProjectT = Project>
183 SetProject(std::forward<ProjectT>(value));
184 return *this;
185 }
187
189
200 inline OpportunityType GetOpportunityType() const { return m_opportunityType; }
201 inline bool OpportunityTypeHasBeenSet() const { return m_opportunityTypeHasBeenSet; }
203 m_opportunityTypeHasBeenSet = true;
204 m_opportunityType = value;
205 }
207 SetOpportunityType(value);
208 return *this;
209 }
211
213
217 inline const Marketing& GetMarketing() const { return m_marketing; }
218 inline bool MarketingHasBeenSet() const { return m_marketingHasBeenSet; }
219 template <typename MarketingT = Marketing>
220 void SetMarketing(MarketingT&& value) {
221 m_marketingHasBeenSet = true;
222 m_marketing = std::forward<MarketingT>(value);
223 }
224 template <typename MarketingT = Marketing>
226 SetMarketing(std::forward<MarketingT>(value));
227 return *this;
228 }
230
232
236 inline const SoftwareRevenue& GetSoftwareRevenue() const { return m_softwareRevenue; }
237 inline bool SoftwareRevenueHasBeenSet() const { return m_softwareRevenueHasBeenSet; }
238 template <typename SoftwareRevenueT = SoftwareRevenue>
239 void SetSoftwareRevenue(SoftwareRevenueT&& value) {
240 m_softwareRevenueHasBeenSet = true;
241 m_softwareRevenue = std::forward<SoftwareRevenueT>(value);
242 }
243 template <typename SoftwareRevenueT = SoftwareRevenue>
245 SetSoftwareRevenue(std::forward<SoftwareRevenueT>(value));
246 return *this;
247 }
249
251
254 inline const Aws::Utils::DateTime& GetLastModifiedDate() const { return m_lastModifiedDate; }
255 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
256 template <typename LastModifiedDateT = Aws::Utils::DateTime>
257 void SetLastModifiedDate(LastModifiedDateT&& value) {
258 m_lastModifiedDateHasBeenSet = true;
259 m_lastModifiedDate = std::forward<LastModifiedDateT>(value);
260 }
261 template <typename LastModifiedDateT = Aws::Utils::DateTime>
262 UpdateOpportunityRequest& WithLastModifiedDate(LastModifiedDateT&& value) {
263 SetLastModifiedDate(std::forward<LastModifiedDateT>(value));
264 return *this;
265 }
267
269
272 inline const Aws::String& GetIdentifier() const { return m_identifier; }
273 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
274 template <typename IdentifierT = Aws::String>
275 void SetIdentifier(IdentifierT&& value) {
276 m_identifierHasBeenSet = true;
277 m_identifier = std::forward<IdentifierT>(value);
278 }
279 template <typename IdentifierT = Aws::String>
281 SetIdentifier(std::forward<IdentifierT>(value));
282 return *this;
283 }
285
287
291 inline const LifeCycle& GetLifeCycle() const { return m_lifeCycle; }
292 inline bool LifeCycleHasBeenSet() const { return m_lifeCycleHasBeenSet; }
293 template <typename LifeCycleT = LifeCycle>
294 void SetLifeCycle(LifeCycleT&& value) {
295 m_lifeCycleHasBeenSet = true;
296 m_lifeCycle = std::forward<LifeCycleT>(value);
297 }
298 template <typename LifeCycleT = LifeCycle>
300 SetLifeCycle(std::forward<LifeCycleT>(value));
301 return *this;
302 }
304 private:
305 Aws::String m_catalog;
306
307 Aws::Vector<PrimaryNeedFromAws> m_primaryNeedsFromAws;
308
310
311 Aws::String m_partnerOpportunityIdentifier;
312
313 Customer m_customer;
314
315 Project m_project;
316
317 OpportunityType m_opportunityType{OpportunityType::NOT_SET};
318
319 Marketing m_marketing;
320
321 SoftwareRevenue m_softwareRevenue;
322
323 Aws::Utils::DateTime m_lastModifiedDate{};
324
325 Aws::String m_identifier;
326
327 LifeCycle m_lifeCycle;
328 bool m_catalogHasBeenSet = false;
329 bool m_primaryNeedsFromAwsHasBeenSet = false;
330 bool m_nationalSecurityHasBeenSet = false;
331 bool m_partnerOpportunityIdentifierHasBeenSet = false;
332 bool m_customerHasBeenSet = false;
333 bool m_projectHasBeenSet = false;
334 bool m_opportunityTypeHasBeenSet = false;
335 bool m_marketingHasBeenSet = false;
336 bool m_softwareRevenueHasBeenSet = false;
337 bool m_lastModifiedDateHasBeenSet = false;
338 bool m_identifierHasBeenSet = false;
339 bool m_lifeCycleHasBeenSet = false;
340};
341
342} // namespace Model
343} // namespace PartnerCentralSelling
344} // namespace Aws
UpdateOpportunityRequest & WithOpportunityType(OpportunityType value)
UpdateOpportunityRequest & WithCustomer(CustomerT &&value)
AWS_PARTNERCENTRALSELLING_API UpdateOpportunityRequest()=default
UpdateOpportunityRequest & WithMarketing(MarketingT &&value)
AWS_PARTNERCENTRALSELLING_API Aws::String SerializePayload() const override
const Aws::Vector< PrimaryNeedFromAws > & GetPrimaryNeedsFromAws() const
UpdateOpportunityRequest & WithLastModifiedDate(LastModifiedDateT &&value)
AWS_PARTNERCENTRALSELLING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateOpportunityRequest & WithPrimaryNeedsFromAws(PrimaryNeedsFromAwsT &&value)
UpdateOpportunityRequest & WithSoftwareRevenue(SoftwareRevenueT &&value)
UpdateOpportunityRequest & WithNationalSecurity(NationalSecurity value)
UpdateOpportunityRequest & WithLifeCycle(LifeCycleT &&value)
UpdateOpportunityRequest & WithPartnerOpportunityIdentifier(PartnerOpportunityIdentifierT &&value)
UpdateOpportunityRequest & AddPrimaryNeedsFromAws(PrimaryNeedFromAws value)
UpdateOpportunityRequest & WithIdentifier(IdentifierT &&value)
void SetPartnerOpportunityIdentifier(PartnerOpportunityIdentifierT &&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