AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateOpportunityRequest.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/partnercentral-selling/model/LifeCycle.h>
12#include <aws/partnercentral-selling/model/Marketing.h>
13#include <aws/partnercentral-selling/model/NationalSecurity.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15#include <aws/partnercentral-selling/model/OpportunityType.h>
16#include <aws/partnercentral-selling/model/OpportunityOrigin.h>
17#include <aws/partnercentral-selling/model/Project.h>
18#include <aws/partnercentral-selling/model/SoftwareRevenue.h>
19#include <aws/partnercentral-selling/model/Contact.h>
20#include <aws/partnercentral-selling/model/PrimaryNeedFromAws.h>
21#include <utility>
22#include <aws/core/utils/UUID.h>
23
24namespace Aws
25{
26namespace PartnerCentralSelling
27{
28namespace Model
29{
30
34 {
35 public:
36 AWS_PARTNERCENTRALSELLING_API CreateOpportunityRequest() = default;
37
38 // Service request name is the Operation name which will send this request out,
39 // each operation should has unique request name, so that we can get operation's name from this request.
40 // Note: this is not true for response, multiple operations may have the same response name,
41 // so we can not get operation's name from response.
42 inline virtual const char* GetServiceRequestName() const override { return "CreateOpportunity"; }
43
44 AWS_PARTNERCENTRALSELLING_API Aws::String SerializePayload() const override;
45
46 AWS_PARTNERCENTRALSELLING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
47
48
50
57 inline const Aws::String& GetCatalog() const { return m_catalog; }
58 inline bool CatalogHasBeenSet() const { return m_catalogHasBeenSet; }
59 template<typename CatalogT = Aws::String>
60 void SetCatalog(CatalogT&& value) { m_catalogHasBeenSet = true; m_catalog = std::forward<CatalogT>(value); }
61 template<typename CatalogT = Aws::String>
62 CreateOpportunityRequest& WithCatalog(CatalogT&& value) { SetCatalog(std::forward<CatalogT>(value)); return *this;}
64
66
75 inline const Aws::String& GetClientToken() const { return m_clientToken; }
76 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
77 template<typename ClientTokenT = Aws::String>
78 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
79 template<typename ClientTokenT = Aws::String>
80 CreateOpportunityRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
82
84
87 inline const Customer& GetCustomer() const { return m_customer; }
88 inline bool CustomerHasBeenSet() const { return m_customerHasBeenSet; }
89 template<typename CustomerT = Customer>
90 void SetCustomer(CustomerT&& value) { m_customerHasBeenSet = true; m_customer = std::forward<CustomerT>(value); }
91 template<typename CustomerT = Customer>
92 CreateOpportunityRequest& WithCustomer(CustomerT&& value) { SetCustomer(std::forward<CustomerT>(value)); return *this;}
94
96
100 inline const LifeCycle& GetLifeCycle() const { return m_lifeCycle; }
101 inline bool LifeCycleHasBeenSet() const { return m_lifeCycleHasBeenSet; }
102 template<typename LifeCycleT = LifeCycle>
103 void SetLifeCycle(LifeCycleT&& value) { m_lifeCycleHasBeenSet = true; m_lifeCycle = std::forward<LifeCycleT>(value); }
104 template<typename LifeCycleT = LifeCycle>
105 CreateOpportunityRequest& WithLifeCycle(LifeCycleT&& value) { SetLifeCycle(std::forward<LifeCycleT>(value)); return *this;}
107
109
113 inline const Marketing& GetMarketing() const { return m_marketing; }
114 inline bool MarketingHasBeenSet() const { return m_marketingHasBeenSet; }
115 template<typename MarketingT = Marketing>
116 void SetMarketing(MarketingT&& value) { m_marketingHasBeenSet = true; m_marketing = std::forward<MarketingT>(value); }
117 template<typename MarketingT = Marketing>
118 CreateOpportunityRequest& WithMarketing(MarketingT&& value) { SetMarketing(std::forward<MarketingT>(value)); return *this;}
120
122
129 inline NationalSecurity GetNationalSecurity() const { return m_nationalSecurity; }
130 inline bool NationalSecurityHasBeenSet() const { return m_nationalSecurityHasBeenSet; }
131 inline void SetNationalSecurity(NationalSecurity value) { m_nationalSecurityHasBeenSet = true; m_nationalSecurity = value; }
134
136
140 inline const Aws::Vector<Contact>& GetOpportunityTeam() const { return m_opportunityTeam; }
141 inline bool OpportunityTeamHasBeenSet() const { return m_opportunityTeamHasBeenSet; }
142 template<typename OpportunityTeamT = Aws::Vector<Contact>>
143 void SetOpportunityTeam(OpportunityTeamT&& value) { m_opportunityTeamHasBeenSet = true; m_opportunityTeam = std::forward<OpportunityTeamT>(value); }
144 template<typename OpportunityTeamT = Aws::Vector<Contact>>
145 CreateOpportunityRequest& WithOpportunityTeam(OpportunityTeamT&& value) { SetOpportunityTeam(std::forward<OpportunityTeamT>(value)); return *this;}
146 template<typename OpportunityTeamT = Contact>
147 CreateOpportunityRequest& AddOpportunityTeam(OpportunityTeamT&& value) { m_opportunityTeamHasBeenSet = true; m_opportunityTeam.emplace_back(std::forward<OpportunityTeamT>(value)); return *this; }
149
151
162 inline OpportunityType GetOpportunityType() const { return m_opportunityType; }
163 inline bool OpportunityTypeHasBeenSet() const { return m_opportunityTypeHasBeenSet; }
164 inline void SetOpportunityType(OpportunityType value) { m_opportunityTypeHasBeenSet = true; m_opportunityType = value; }
167
169
178 inline OpportunityOrigin GetOrigin() const { return m_origin; }
179 inline bool OriginHasBeenSet() const { return m_originHasBeenSet; }
180 inline void SetOrigin(OpportunityOrigin value) { m_originHasBeenSet = true; m_origin = value; }
181 inline CreateOpportunityRequest& WithOrigin(OpportunityOrigin value) { SetOrigin(value); return *this;}
183
185
193 inline const Aws::String& GetPartnerOpportunityIdentifier() const { return m_partnerOpportunityIdentifier; }
194 inline bool PartnerOpportunityIdentifierHasBeenSet() const { return m_partnerOpportunityIdentifierHasBeenSet; }
195 template<typename PartnerOpportunityIdentifierT = Aws::String>
196 void SetPartnerOpportunityIdentifier(PartnerOpportunityIdentifierT&& value) { m_partnerOpportunityIdentifierHasBeenSet = true; m_partnerOpportunityIdentifier = std::forward<PartnerOpportunityIdentifierT>(value); }
197 template<typename PartnerOpportunityIdentifierT = Aws::String>
198 CreateOpportunityRequest& WithPartnerOpportunityIdentifier(PartnerOpportunityIdentifierT&& value) { SetPartnerOpportunityIdentifier(std::forward<PartnerOpportunityIdentifierT>(value)); return *this;}
200
202
224 inline const Aws::Vector<PrimaryNeedFromAws>& GetPrimaryNeedsFromAws() const { return m_primaryNeedsFromAws; }
225 inline bool PrimaryNeedsFromAwsHasBeenSet() const { return m_primaryNeedsFromAwsHasBeenSet; }
226 template<typename PrimaryNeedsFromAwsT = Aws::Vector<PrimaryNeedFromAws>>
227 void SetPrimaryNeedsFromAws(PrimaryNeedsFromAwsT&& value) { m_primaryNeedsFromAwsHasBeenSet = true; m_primaryNeedsFromAws = std::forward<PrimaryNeedsFromAwsT>(value); }
228 template<typename PrimaryNeedsFromAwsT = Aws::Vector<PrimaryNeedFromAws>>
229 CreateOpportunityRequest& WithPrimaryNeedsFromAws(PrimaryNeedsFromAwsT&& value) { SetPrimaryNeedsFromAws(std::forward<PrimaryNeedsFromAwsT>(value)); return *this;}
230 inline CreateOpportunityRequest& AddPrimaryNeedsFromAws(PrimaryNeedFromAws value) { m_primaryNeedsFromAwsHasBeenSet = true; m_primaryNeedsFromAws.push_back(value); return *this; }
232
234
237 inline const Project& GetProject() const { return m_project; }
238 inline bool ProjectHasBeenSet() const { return m_projectHasBeenSet; }
239 template<typename ProjectT = Project>
240 void SetProject(ProjectT&& value) { m_projectHasBeenSet = true; m_project = std::forward<ProjectT>(value); }
241 template<typename ProjectT = Project>
242 CreateOpportunityRequest& WithProject(ProjectT&& value) { SetProject(std::forward<ProjectT>(value)); return *this;}
244
246
250 inline const SoftwareRevenue& GetSoftwareRevenue() const { return m_softwareRevenue; }
251 inline bool SoftwareRevenueHasBeenSet() const { return m_softwareRevenueHasBeenSet; }
252 template<typename SoftwareRevenueT = SoftwareRevenue>
253 void SetSoftwareRevenue(SoftwareRevenueT&& value) { m_softwareRevenueHasBeenSet = true; m_softwareRevenue = std::forward<SoftwareRevenueT>(value); }
254 template<typename SoftwareRevenueT = SoftwareRevenue>
255 CreateOpportunityRequest& WithSoftwareRevenue(SoftwareRevenueT&& value) { SetSoftwareRevenue(std::forward<SoftwareRevenueT>(value)); return *this;}
257 private:
258
259 Aws::String m_catalog;
260 bool m_catalogHasBeenSet = false;
261
263 bool m_clientTokenHasBeenSet = true;
264
265 Customer m_customer;
266 bool m_customerHasBeenSet = false;
267
268 LifeCycle m_lifeCycle;
269 bool m_lifeCycleHasBeenSet = false;
270
271 Marketing m_marketing;
272 bool m_marketingHasBeenSet = false;
273
275 bool m_nationalSecurityHasBeenSet = false;
276
277 Aws::Vector<Contact> m_opportunityTeam;
278 bool m_opportunityTeamHasBeenSet = false;
279
280 OpportunityType m_opportunityType{OpportunityType::NOT_SET};
281 bool m_opportunityTypeHasBeenSet = false;
282
284 bool m_originHasBeenSet = false;
285
286 Aws::String m_partnerOpportunityIdentifier;
287 bool m_partnerOpportunityIdentifierHasBeenSet = false;
288
289 Aws::Vector<PrimaryNeedFromAws> m_primaryNeedsFromAws;
290 bool m_primaryNeedsFromAwsHasBeenSet = false;
291
292 Project m_project;
293 bool m_projectHasBeenSet = false;
294
295 SoftwareRevenue m_softwareRevenue;
296 bool m_softwareRevenueHasBeenSet = false;
297 };
298
299} // namespace Model
300} // namespace PartnerCentralSelling
301} // namespace Aws
AWS_PARTNERCENTRALSELLING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateOpportunityRequest & AddPrimaryNeedsFromAws(PrimaryNeedFromAws value)
AWS_PARTNERCENTRALSELLING_API Aws::String SerializePayload() const override
CreateOpportunityRequest & WithLifeCycle(LifeCycleT &&value)
CreateOpportunityRequest & WithPrimaryNeedsFromAws(PrimaryNeedsFromAwsT &&value)
CreateOpportunityRequest & WithOrigin(OpportunityOrigin value)
CreateOpportunityRequest & WithOpportunityTeam(OpportunityTeamT &&value)
CreateOpportunityRequest & AddOpportunityTeam(OpportunityTeamT &&value)
CreateOpportunityRequest & WithNationalSecurity(NationalSecurity value)
CreateOpportunityRequest & WithMarketing(MarketingT &&value)
CreateOpportunityRequest & WithClientToken(ClientTokenT &&value)
const Aws::Vector< PrimaryNeedFromAws > & GetPrimaryNeedsFromAws() const
CreateOpportunityRequest & WithOpportunityType(OpportunityType value)
CreateOpportunityRequest & WithPartnerOpportunityIdentifier(PartnerOpportunityIdentifierT &&value)
AWS_PARTNERCENTRALSELLING_API CreateOpportunityRequest()=default
void SetPartnerOpportunityIdentifier(PartnerOpportunityIdentifierT &&value)
CreateOpportunityRequest & WithSoftwareRevenue(SoftwareRevenueT &&value)
CreateOpportunityRequest & WithCustomer(CustomerT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
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