AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
UpdateOpportunityRequest.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/partnercentral-selling/model/Customer.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/partnercentral-selling/model/LifeCycle.h>
13#include <aws/partnercentral-selling/model/Marketing.h>
14#include <aws/partnercentral-selling/model/NationalSecurity.h>
15#include <aws/partnercentral-selling/model/OpportunityType.h>
16#include <aws/core/utils/memory/stl/AWSVector.h>
17#include <aws/partnercentral-selling/model/Project.h>
18#include <aws/partnercentral-selling/model/SoftwareRevenue.h>
19#include <aws/partnercentral-selling/model/PrimaryNeedFromAws.h>
20#include <utility>
21
22namespace Aws
23{
24namespace PartnerCentralSelling
25{
26namespace Model
27{
28
32 {
33 public:
34 AWS_PARTNERCENTRALSELLING_API UpdateOpportunityRequest() = default;
35
36 // Service request name is the Operation name which will send this request out,
37 // each operation should has unique request name, so that we can get operation's name from this request.
38 // Note: this is not true for response, multiple operations may have the same response name,
39 // so we can not get operation's name from response.
40 inline virtual const char* GetServiceRequestName() const override { return "UpdateOpportunity"; }
41
42 AWS_PARTNERCENTRALSELLING_API Aws::String SerializePayload() const override;
43
44 AWS_PARTNERCENTRALSELLING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
45
46
48
58 inline const Aws::String& GetCatalog() const { return m_catalog; }
59 inline bool CatalogHasBeenSet() const { return m_catalogHasBeenSet; }
60 template<typename CatalogT = Aws::String>
61 void SetCatalog(CatalogT&& value) { m_catalogHasBeenSet = true; m_catalog = std::forward<CatalogT>(value); }
62 template<typename CatalogT = Aws::String>
63 UpdateOpportunityRequest& WithCatalog(CatalogT&& value) { SetCatalog(std::forward<CatalogT>(value)); return *this;}
65
67
71 inline const Customer& GetCustomer() const { return m_customer; }
72 inline bool CustomerHasBeenSet() const { return m_customerHasBeenSet; }
73 template<typename CustomerT = Customer>
74 void SetCustomer(CustomerT&& value) { m_customerHasBeenSet = true; m_customer = std::forward<CustomerT>(value); }
75 template<typename CustomerT = Customer>
76 UpdateOpportunityRequest& WithCustomer(CustomerT&& value) { SetCustomer(std::forward<CustomerT>(value)); return *this;}
78
80
83 inline const Aws::String& GetIdentifier() const { return m_identifier; }
84 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
85 template<typename IdentifierT = Aws::String>
86 void SetIdentifier(IdentifierT&& value) { m_identifierHasBeenSet = true; m_identifier = std::forward<IdentifierT>(value); }
87 template<typename IdentifierT = Aws::String>
88 UpdateOpportunityRequest& WithIdentifier(IdentifierT&& value) { SetIdentifier(std::forward<IdentifierT>(value)); return *this;}
90
92
95 inline const Aws::Utils::DateTime& GetLastModifiedDate() const { return m_lastModifiedDate; }
96 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
97 template<typename LastModifiedDateT = Aws::Utils::DateTime>
98 void SetLastModifiedDate(LastModifiedDateT&& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = std::forward<LastModifiedDateT>(value); }
99 template<typename LastModifiedDateT = Aws::Utils::DateTime>
100 UpdateOpportunityRequest& WithLastModifiedDate(LastModifiedDateT&& value) { SetLastModifiedDate(std::forward<LastModifiedDateT>(value)); return *this;}
102
104
108 inline const LifeCycle& GetLifeCycle() const { return m_lifeCycle; }
109 inline bool LifeCycleHasBeenSet() const { return m_lifeCycleHasBeenSet; }
110 template<typename LifeCycleT = LifeCycle>
111 void SetLifeCycle(LifeCycleT&& value) { m_lifeCycleHasBeenSet = true; m_lifeCycle = std::forward<LifeCycleT>(value); }
112 template<typename LifeCycleT = LifeCycle>
113 UpdateOpportunityRequest& WithLifeCycle(LifeCycleT&& value) { SetLifeCycle(std::forward<LifeCycleT>(value)); return *this;}
115
117
121 inline const Marketing& GetMarketing() const { return m_marketing; }
122 inline bool MarketingHasBeenSet() const { return m_marketingHasBeenSet; }
123 template<typename MarketingT = Marketing>
124 void SetMarketing(MarketingT&& value) { m_marketingHasBeenSet = true; m_marketing = std::forward<MarketingT>(value); }
125 template<typename MarketingT = Marketing>
126 UpdateOpportunityRequest& WithMarketing(MarketingT&& value) { SetMarketing(std::forward<MarketingT>(value)); return *this;}
128
130
136 inline NationalSecurity GetNationalSecurity() const { return m_nationalSecurity; }
137 inline bool NationalSecurityHasBeenSet() const { return m_nationalSecurityHasBeenSet; }
138 inline void SetNationalSecurity(NationalSecurity value) { m_nationalSecurityHasBeenSet = true; m_nationalSecurity = value; }
141
143
154 inline OpportunityType GetOpportunityType() const { return m_opportunityType; }
155 inline bool OpportunityTypeHasBeenSet() const { return m_opportunityTypeHasBeenSet; }
156 inline void SetOpportunityType(OpportunityType value) { m_opportunityTypeHasBeenSet = true; m_opportunityType = value; }
159
161
166 inline const Aws::String& GetPartnerOpportunityIdentifier() const { return m_partnerOpportunityIdentifier; }
167 inline bool PartnerOpportunityIdentifierHasBeenSet() const { return m_partnerOpportunityIdentifierHasBeenSet; }
168 template<typename PartnerOpportunityIdentifierT = Aws::String>
169 void SetPartnerOpportunityIdentifier(PartnerOpportunityIdentifierT&& value) { m_partnerOpportunityIdentifierHasBeenSet = true; m_partnerOpportunityIdentifier = std::forward<PartnerOpportunityIdentifierT>(value); }
170 template<typename PartnerOpportunityIdentifierT = Aws::String>
171 UpdateOpportunityRequest& WithPartnerOpportunityIdentifier(PartnerOpportunityIdentifierT&& value) { SetPartnerOpportunityIdentifier(std::forward<PartnerOpportunityIdentifierT>(value)); return *this;}
173
175
198 inline const Aws::Vector<PrimaryNeedFromAws>& GetPrimaryNeedsFromAws() const { return m_primaryNeedsFromAws; }
199 inline bool PrimaryNeedsFromAwsHasBeenSet() const { return m_primaryNeedsFromAwsHasBeenSet; }
200 template<typename PrimaryNeedsFromAwsT = Aws::Vector<PrimaryNeedFromAws>>
201 void SetPrimaryNeedsFromAws(PrimaryNeedsFromAwsT&& value) { m_primaryNeedsFromAwsHasBeenSet = true; m_primaryNeedsFromAws = std::forward<PrimaryNeedsFromAwsT>(value); }
202 template<typename PrimaryNeedsFromAwsT = Aws::Vector<PrimaryNeedFromAws>>
203 UpdateOpportunityRequest& WithPrimaryNeedsFromAws(PrimaryNeedsFromAwsT&& value) { SetPrimaryNeedsFromAws(std::forward<PrimaryNeedsFromAwsT>(value)); return *this;}
204 inline UpdateOpportunityRequest& AddPrimaryNeedsFromAws(PrimaryNeedFromAws value) { m_primaryNeedsFromAwsHasBeenSet = true; m_primaryNeedsFromAws.push_back(value); return *this; }
206
208
212 inline const Project& GetProject() const { return m_project; }
213 inline bool ProjectHasBeenSet() const { return m_projectHasBeenSet; }
214 template<typename ProjectT = Project>
215 void SetProject(ProjectT&& value) { m_projectHasBeenSet = true; m_project = std::forward<ProjectT>(value); }
216 template<typename ProjectT = Project>
217 UpdateOpportunityRequest& WithProject(ProjectT&& value) { SetProject(std::forward<ProjectT>(value)); return *this;}
219
221
225 inline const SoftwareRevenue& GetSoftwareRevenue() const { return m_softwareRevenue; }
226 inline bool SoftwareRevenueHasBeenSet() const { return m_softwareRevenueHasBeenSet; }
227 template<typename SoftwareRevenueT = SoftwareRevenue>
228 void SetSoftwareRevenue(SoftwareRevenueT&& value) { m_softwareRevenueHasBeenSet = true; m_softwareRevenue = std::forward<SoftwareRevenueT>(value); }
229 template<typename SoftwareRevenueT = SoftwareRevenue>
230 UpdateOpportunityRequest& WithSoftwareRevenue(SoftwareRevenueT&& value) { SetSoftwareRevenue(std::forward<SoftwareRevenueT>(value)); return *this;}
232 private:
233
234 Aws::String m_catalog;
235 bool m_catalogHasBeenSet = false;
236
237 Customer m_customer;
238 bool m_customerHasBeenSet = false;
239
240 Aws::String m_identifier;
241 bool m_identifierHasBeenSet = false;
242
243 Aws::Utils::DateTime m_lastModifiedDate{};
244 bool m_lastModifiedDateHasBeenSet = false;
245
246 LifeCycle m_lifeCycle;
247 bool m_lifeCycleHasBeenSet = false;
248
249 Marketing m_marketing;
250 bool m_marketingHasBeenSet = false;
251
253 bool m_nationalSecurityHasBeenSet = false;
254
255 OpportunityType m_opportunityType{OpportunityType::NOT_SET};
256 bool m_opportunityTypeHasBeenSet = false;
257
258 Aws::String m_partnerOpportunityIdentifier;
259 bool m_partnerOpportunityIdentifierHasBeenSet = false;
260
261 Aws::Vector<PrimaryNeedFromAws> m_primaryNeedsFromAws;
262 bool m_primaryNeedsFromAwsHasBeenSet = false;
263
264 Project m_project;
265 bool m_projectHasBeenSet = false;
266
267 SoftwareRevenue m_softwareRevenue;
268 bool m_softwareRevenueHasBeenSet = false;
269 };
270
271} // namespace Model
272} // namespace PartnerCentralSelling
273} // 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