AWS SDK for C++

AWS SDK for C++ Version 1.11.637

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/core/utils/memory/stl/AWSVector.h>
11#include <aws/partnercentral-selling/model/NationalSecurity.h>
12#include <aws/partnercentral-selling/model/Customer.h>
13#include <aws/partnercentral-selling/model/Project.h>
14#include <aws/partnercentral-selling/model/OpportunityType.h>
15#include <aws/partnercentral-selling/model/Marketing.h>
16#include <aws/partnercentral-selling/model/SoftwareRevenue.h>
17#include <aws/partnercentral-selling/model/LifeCycle.h>
18#include <aws/partnercentral-selling/model/OpportunityOrigin.h>
19#include <aws/partnercentral-selling/model/PrimaryNeedFromAws.h>
20#include <aws/partnercentral-selling/model/Contact.h>
21#include <aws/partnercentral-selling/model/Tag.h>
22#include <utility>
23#include <aws/core/utils/UUID.h>
24
25namespace Aws
26{
27namespace PartnerCentralSelling
28{
29namespace Model
30{
31
35 {
36 public:
37 AWS_PARTNERCENTRALSELLING_API CreateOpportunityRequest() = default;
38
39 // Service request name is the Operation name which will send this request out,
40 // each operation should has unique request name, so that we can get operation's name from this request.
41 // Note: this is not true for response, multiple operations may have the same response name,
42 // so we can not get operation's name from response.
43 inline virtual const char* GetServiceRequestName() const override { return "CreateOpportunity"; }
44
45 AWS_PARTNERCENTRALSELLING_API Aws::String SerializePayload() const override;
46
47 AWS_PARTNERCENTRALSELLING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
48
49
51
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 CreateOpportunityRequest& WithCatalog(CatalogT&& value) { SetCatalog(std::forward<CatalogT>(value)); return *this;}
65
67
89 inline const Aws::Vector<PrimaryNeedFromAws>& GetPrimaryNeedsFromAws() const { return m_primaryNeedsFromAws; }
90 inline bool PrimaryNeedsFromAwsHasBeenSet() const { return m_primaryNeedsFromAwsHasBeenSet; }
91 template<typename PrimaryNeedsFromAwsT = Aws::Vector<PrimaryNeedFromAws>>
92 void SetPrimaryNeedsFromAws(PrimaryNeedsFromAwsT&& value) { m_primaryNeedsFromAwsHasBeenSet = true; m_primaryNeedsFromAws = std::forward<PrimaryNeedsFromAwsT>(value); }
93 template<typename PrimaryNeedsFromAwsT = Aws::Vector<PrimaryNeedFromAws>>
94 CreateOpportunityRequest& WithPrimaryNeedsFromAws(PrimaryNeedsFromAwsT&& value) { SetPrimaryNeedsFromAws(std::forward<PrimaryNeedsFromAwsT>(value)); return *this;}
95 inline CreateOpportunityRequest& AddPrimaryNeedsFromAws(PrimaryNeedFromAws value) { m_primaryNeedsFromAwsHasBeenSet = true; m_primaryNeedsFromAws.push_back(value); return *this; }
97
99
106 inline NationalSecurity GetNationalSecurity() const { return m_nationalSecurity; }
107 inline bool NationalSecurityHasBeenSet() const { return m_nationalSecurityHasBeenSet; }
108 inline void SetNationalSecurity(NationalSecurity value) { m_nationalSecurityHasBeenSet = true; m_nationalSecurity = value; }
111
113
121 inline const Aws::String& GetPartnerOpportunityIdentifier() const { return m_partnerOpportunityIdentifier; }
122 inline bool PartnerOpportunityIdentifierHasBeenSet() const { return m_partnerOpportunityIdentifierHasBeenSet; }
123 template<typename PartnerOpportunityIdentifierT = Aws::String>
124 void SetPartnerOpportunityIdentifier(PartnerOpportunityIdentifierT&& value) { m_partnerOpportunityIdentifierHasBeenSet = true; m_partnerOpportunityIdentifier = std::forward<PartnerOpportunityIdentifierT>(value); }
125 template<typename PartnerOpportunityIdentifierT = Aws::String>
126 CreateOpportunityRequest& WithPartnerOpportunityIdentifier(PartnerOpportunityIdentifierT&& value) { SetPartnerOpportunityIdentifier(std::forward<PartnerOpportunityIdentifierT>(value)); return *this;}
128
130
133 inline const Customer& GetCustomer() const { return m_customer; }
134 inline bool CustomerHasBeenSet() const { return m_customerHasBeenSet; }
135 template<typename CustomerT = Customer>
136 void SetCustomer(CustomerT&& value) { m_customerHasBeenSet = true; m_customer = std::forward<CustomerT>(value); }
137 template<typename CustomerT = Customer>
138 CreateOpportunityRequest& WithCustomer(CustomerT&& value) { SetCustomer(std::forward<CustomerT>(value)); return *this;}
140
142
145 inline const Project& GetProject() const { return m_project; }
146 inline bool ProjectHasBeenSet() const { return m_projectHasBeenSet; }
147 template<typename ProjectT = Project>
148 void SetProject(ProjectT&& value) { m_projectHasBeenSet = true; m_project = std::forward<ProjectT>(value); }
149 template<typename ProjectT = Project>
150 CreateOpportunityRequest& WithProject(ProjectT&& value) { SetProject(std::forward<ProjectT>(value)); return *this;}
152
154
165 inline OpportunityType GetOpportunityType() const { return m_opportunityType; }
166 inline bool OpportunityTypeHasBeenSet() const { return m_opportunityTypeHasBeenSet; }
167 inline void SetOpportunityType(OpportunityType value) { m_opportunityTypeHasBeenSet = true; m_opportunityType = value; }
170
172
176 inline const Marketing& GetMarketing() const { return m_marketing; }
177 inline bool MarketingHasBeenSet() const { return m_marketingHasBeenSet; }
178 template<typename MarketingT = Marketing>
179 void SetMarketing(MarketingT&& value) { m_marketingHasBeenSet = true; m_marketing = std::forward<MarketingT>(value); }
180 template<typename MarketingT = Marketing>
181 CreateOpportunityRequest& WithMarketing(MarketingT&& value) { SetMarketing(std::forward<MarketingT>(value)); return *this;}
183
185
189 inline const SoftwareRevenue& GetSoftwareRevenue() const { return m_softwareRevenue; }
190 inline bool SoftwareRevenueHasBeenSet() const { return m_softwareRevenueHasBeenSet; }
191 template<typename SoftwareRevenueT = SoftwareRevenue>
192 void SetSoftwareRevenue(SoftwareRevenueT&& value) { m_softwareRevenueHasBeenSet = true; m_softwareRevenue = std::forward<SoftwareRevenueT>(value); }
193 template<typename SoftwareRevenueT = SoftwareRevenue>
194 CreateOpportunityRequest& WithSoftwareRevenue(SoftwareRevenueT&& value) { SetSoftwareRevenue(std::forward<SoftwareRevenueT>(value)); return *this;}
196
198
207 inline const Aws::String& GetClientToken() const { return m_clientToken; }
208 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
209 template<typename ClientTokenT = Aws::String>
210 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
211 template<typename ClientTokenT = Aws::String>
212 CreateOpportunityRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
214
216
220 inline const LifeCycle& GetLifeCycle() const { return m_lifeCycle; }
221 inline bool LifeCycleHasBeenSet() const { return m_lifeCycleHasBeenSet; }
222 template<typename LifeCycleT = LifeCycle>
223 void SetLifeCycle(LifeCycleT&& value) { m_lifeCycleHasBeenSet = true; m_lifeCycle = std::forward<LifeCycleT>(value); }
224 template<typename LifeCycleT = LifeCycle>
225 CreateOpportunityRequest& WithLifeCycle(LifeCycleT&& value) { SetLifeCycle(std::forward<LifeCycleT>(value)); return *this;}
227
229
238 inline OpportunityOrigin GetOrigin() const { return m_origin; }
239 inline bool OriginHasBeenSet() const { return m_originHasBeenSet; }
240 inline void SetOrigin(OpportunityOrigin value) { m_originHasBeenSet = true; m_origin = value; }
241 inline CreateOpportunityRequest& WithOrigin(OpportunityOrigin value) { SetOrigin(value); return *this;}
243
245
249 inline const Aws::Vector<Contact>& GetOpportunityTeam() const { return m_opportunityTeam; }
250 inline bool OpportunityTeamHasBeenSet() const { return m_opportunityTeamHasBeenSet; }
251 template<typename OpportunityTeamT = Aws::Vector<Contact>>
252 void SetOpportunityTeam(OpportunityTeamT&& value) { m_opportunityTeamHasBeenSet = true; m_opportunityTeam = std::forward<OpportunityTeamT>(value); }
253 template<typename OpportunityTeamT = Aws::Vector<Contact>>
254 CreateOpportunityRequest& WithOpportunityTeam(OpportunityTeamT&& value) { SetOpportunityTeam(std::forward<OpportunityTeamT>(value)); return *this;}
255 template<typename OpportunityTeamT = Contact>
256 CreateOpportunityRequest& AddOpportunityTeam(OpportunityTeamT&& value) { m_opportunityTeamHasBeenSet = true; m_opportunityTeam.emplace_back(std::forward<OpportunityTeamT>(value)); return *this; }
258
260
263 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
264 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
265 template<typename TagsT = Aws::Vector<Tag>>
266 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
267 template<typename TagsT = Aws::Vector<Tag>>
268 CreateOpportunityRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
269 template<typename TagsT = Tag>
270 CreateOpportunityRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
272 private:
273
274 Aws::String m_catalog;
275 bool m_catalogHasBeenSet = false;
276
277 Aws::Vector<PrimaryNeedFromAws> m_primaryNeedsFromAws;
278 bool m_primaryNeedsFromAwsHasBeenSet = false;
279
281 bool m_nationalSecurityHasBeenSet = false;
282
283 Aws::String m_partnerOpportunityIdentifier;
284 bool m_partnerOpportunityIdentifierHasBeenSet = false;
285
286 Customer m_customer;
287 bool m_customerHasBeenSet = false;
288
289 Project m_project;
290 bool m_projectHasBeenSet = false;
291
292 OpportunityType m_opportunityType{OpportunityType::NOT_SET};
293 bool m_opportunityTypeHasBeenSet = false;
294
295 Marketing m_marketing;
296 bool m_marketingHasBeenSet = false;
297
298 SoftwareRevenue m_softwareRevenue;
299 bool m_softwareRevenueHasBeenSet = false;
300
302 bool m_clientTokenHasBeenSet = true;
303
304 LifeCycle m_lifeCycle;
305 bool m_lifeCycleHasBeenSet = false;
306
308 bool m_originHasBeenSet = false;
309
310 Aws::Vector<Contact> m_opportunityTeam;
311 bool m_opportunityTeamHasBeenSet = false;
312
313 Aws::Vector<Tag> m_tags;
314 bool m_tagsHasBeenSet = false;
315 };
316
317} // namespace Model
318} // namespace PartnerCentralSelling
319} // 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