AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CreateOpportunityRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.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/Contact.h>
13#include <aws/partnercentral-selling/model/Customer.h>
14#include <aws/partnercentral-selling/model/LifeCycle.h>
15#include <aws/partnercentral-selling/model/Marketing.h>
16#include <aws/partnercentral-selling/model/NationalSecurity.h>
17#include <aws/partnercentral-selling/model/OpportunityOrigin.h>
18#include <aws/partnercentral-selling/model/OpportunityType.h>
19#include <aws/partnercentral-selling/model/PrimaryNeedFromAws.h>
20#include <aws/partnercentral-selling/model/Project.h>
21#include <aws/partnercentral-selling/model/SoftwareRevenue.h>
22#include <aws/partnercentral-selling/model/Tag.h>
23
24#include <utility>
25
26namespace Aws {
27namespace PartnerCentralSelling {
28namespace Model {
29
33 public:
34 AWS_PARTNERCENTRALSELLING_API CreateOpportunityRequest() = 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 "CreateOpportunity"; }
41
42 AWS_PARTNERCENTRALSELLING_API Aws::String SerializePayload() const override;
43
44 AWS_PARTNERCENTRALSELLING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
45
47
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
91 inline const Aws::Vector<PrimaryNeedFromAws>& GetPrimaryNeedsFromAws() const { return m_primaryNeedsFromAws; }
92 inline bool PrimaryNeedsFromAwsHasBeenSet() const { return m_primaryNeedsFromAwsHasBeenSet; }
93 template <typename PrimaryNeedsFromAwsT = Aws::Vector<PrimaryNeedFromAws>>
94 void SetPrimaryNeedsFromAws(PrimaryNeedsFromAwsT&& value) {
95 m_primaryNeedsFromAwsHasBeenSet = true;
96 m_primaryNeedsFromAws = std::forward<PrimaryNeedsFromAwsT>(value);
97 }
98 template <typename PrimaryNeedsFromAwsT = Aws::Vector<PrimaryNeedFromAws>>
99 CreateOpportunityRequest& WithPrimaryNeedsFromAws(PrimaryNeedsFromAwsT&& value) {
100 SetPrimaryNeedsFromAws(std::forward<PrimaryNeedsFromAwsT>(value));
101 return *this;
102 }
104 m_primaryNeedsFromAwsHasBeenSet = true;
105 m_primaryNeedsFromAws.push_back(value);
106 return *this;
107 }
109
111
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
139 inline const Aws::String& GetPartnerOpportunityIdentifier() const { return m_partnerOpportunityIdentifier; }
140 inline bool PartnerOpportunityIdentifierHasBeenSet() const { return m_partnerOpportunityIdentifierHasBeenSet; }
141 template <typename PartnerOpportunityIdentifierT = Aws::String>
142 void SetPartnerOpportunityIdentifier(PartnerOpportunityIdentifierT&& value) {
143 m_partnerOpportunityIdentifierHasBeenSet = true;
144 m_partnerOpportunityIdentifier = std::forward<PartnerOpportunityIdentifierT>(value);
145 }
146 template <typename PartnerOpportunityIdentifierT = Aws::String>
147 CreateOpportunityRequest& WithPartnerOpportunityIdentifier(PartnerOpportunityIdentifierT&& value) {
148 SetPartnerOpportunityIdentifier(std::forward<PartnerOpportunityIdentifierT>(value));
149 return *this;
150 }
152
154
157 inline const Customer& GetCustomer() const { return m_customer; }
158 inline bool CustomerHasBeenSet() const { return m_customerHasBeenSet; }
159 template <typename CustomerT = Customer>
160 void SetCustomer(CustomerT&& value) {
161 m_customerHasBeenSet = true;
162 m_customer = std::forward<CustomerT>(value);
163 }
164 template <typename CustomerT = Customer>
166 SetCustomer(std::forward<CustomerT>(value));
167 return *this;
168 }
170
172
175 inline const Project& GetProject() const { return m_project; }
176 inline bool ProjectHasBeenSet() const { return m_projectHasBeenSet; }
177 template <typename ProjectT = Project>
178 void SetProject(ProjectT&& value) {
179 m_projectHasBeenSet = true;
180 m_project = std::forward<ProjectT>(value);
181 }
182 template <typename ProjectT = Project>
184 SetProject(std::forward<ProjectT>(value));
185 return *this;
186 }
188
190
201 inline OpportunityType GetOpportunityType() const { return m_opportunityType; }
202 inline bool OpportunityTypeHasBeenSet() const { return m_opportunityTypeHasBeenSet; }
204 m_opportunityTypeHasBeenSet = true;
205 m_opportunityType = value;
206 }
208 SetOpportunityType(value);
209 return *this;
210 }
212
214
218 inline const Marketing& GetMarketing() const { return m_marketing; }
219 inline bool MarketingHasBeenSet() const { return m_marketingHasBeenSet; }
220 template <typename MarketingT = Marketing>
221 void SetMarketing(MarketingT&& value) {
222 m_marketingHasBeenSet = true;
223 m_marketing = std::forward<MarketingT>(value);
224 }
225 template <typename MarketingT = Marketing>
227 SetMarketing(std::forward<MarketingT>(value));
228 return *this;
229 }
231
233
237 inline const SoftwareRevenue& GetSoftwareRevenue() const { return m_softwareRevenue; }
238 inline bool SoftwareRevenueHasBeenSet() const { return m_softwareRevenueHasBeenSet; }
239 template <typename SoftwareRevenueT = SoftwareRevenue>
240 void SetSoftwareRevenue(SoftwareRevenueT&& value) {
241 m_softwareRevenueHasBeenSet = true;
242 m_softwareRevenue = std::forward<SoftwareRevenueT>(value);
243 }
244 template <typename SoftwareRevenueT = SoftwareRevenue>
246 SetSoftwareRevenue(std::forward<SoftwareRevenueT>(value));
247 return *this;
248 }
250
252
261 inline const Aws::String& GetClientToken() const { return m_clientToken; }
262 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
263 template <typename ClientTokenT = Aws::String>
264 void SetClientToken(ClientTokenT&& value) {
265 m_clientTokenHasBeenSet = true;
266 m_clientToken = std::forward<ClientTokenT>(value);
267 }
268 template <typename ClientTokenT = Aws::String>
270 SetClientToken(std::forward<ClientTokenT>(value));
271 return *this;
272 }
274
276
280 inline const LifeCycle& GetLifeCycle() const { return m_lifeCycle; }
281 inline bool LifeCycleHasBeenSet() const { return m_lifeCycleHasBeenSet; }
282 template <typename LifeCycleT = LifeCycle>
283 void SetLifeCycle(LifeCycleT&& value) {
284 m_lifeCycleHasBeenSet = true;
285 m_lifeCycle = std::forward<LifeCycleT>(value);
286 }
287 template <typename LifeCycleT = LifeCycle>
289 SetLifeCycle(std::forward<LifeCycleT>(value));
290 return *this;
291 }
293
295
304 inline OpportunityOrigin GetOrigin() const { return m_origin; }
305 inline bool OriginHasBeenSet() const { return m_originHasBeenSet; }
306 inline void SetOrigin(OpportunityOrigin value) {
307 m_originHasBeenSet = true;
308 m_origin = value;
309 }
311 SetOrigin(value);
312 return *this;
313 }
315
317
321 inline const Aws::Vector<Contact>& GetOpportunityTeam() const { return m_opportunityTeam; }
322 inline bool OpportunityTeamHasBeenSet() const { return m_opportunityTeamHasBeenSet; }
323 template <typename OpportunityTeamT = Aws::Vector<Contact>>
324 void SetOpportunityTeam(OpportunityTeamT&& value) {
325 m_opportunityTeamHasBeenSet = true;
326 m_opportunityTeam = std::forward<OpportunityTeamT>(value);
327 }
328 template <typename OpportunityTeamT = Aws::Vector<Contact>>
330 SetOpportunityTeam(std::forward<OpportunityTeamT>(value));
331 return *this;
332 }
333 template <typename OpportunityTeamT = Contact>
334 CreateOpportunityRequest& AddOpportunityTeam(OpportunityTeamT&& value) {
335 m_opportunityTeamHasBeenSet = true;
336 m_opportunityTeam.emplace_back(std::forward<OpportunityTeamT>(value));
337 return *this;
338 }
340
342
345 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
346 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
347 template <typename TagsT = Aws::Vector<Tag>>
348 void SetTags(TagsT&& value) {
349 m_tagsHasBeenSet = true;
350 m_tags = std::forward<TagsT>(value);
351 }
352 template <typename TagsT = Aws::Vector<Tag>>
354 SetTags(std::forward<TagsT>(value));
355 return *this;
356 }
357 template <typename TagsT = Tag>
359 m_tagsHasBeenSet = true;
360 m_tags.emplace_back(std::forward<TagsT>(value));
361 return *this;
362 }
364 private:
365 Aws::String m_catalog;
366
367 Aws::Vector<PrimaryNeedFromAws> m_primaryNeedsFromAws;
368
370
371 Aws::String m_partnerOpportunityIdentifier;
372
373 Customer m_customer;
374
375 Project m_project;
376
377 OpportunityType m_opportunityType{OpportunityType::NOT_SET};
378
379 Marketing m_marketing;
380
381 SoftwareRevenue m_softwareRevenue;
382
384
385 LifeCycle m_lifeCycle;
386
388
389 Aws::Vector<Contact> m_opportunityTeam;
390
391 Aws::Vector<Tag> m_tags;
392 bool m_catalogHasBeenSet = false;
393 bool m_primaryNeedsFromAwsHasBeenSet = false;
394 bool m_nationalSecurityHasBeenSet = false;
395 bool m_partnerOpportunityIdentifierHasBeenSet = false;
396 bool m_customerHasBeenSet = false;
397 bool m_projectHasBeenSet = false;
398 bool m_opportunityTypeHasBeenSet = false;
399 bool m_marketingHasBeenSet = false;
400 bool m_softwareRevenueHasBeenSet = false;
401 bool m_clientTokenHasBeenSet = true;
402 bool m_lifeCycleHasBeenSet = false;
403 bool m_originHasBeenSet = false;
404 bool m_opportunityTeamHasBeenSet = false;
405 bool m_tagsHasBeenSet = false;
406};
407
408} // namespace Model
409} // namespace PartnerCentralSelling
410} // 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