AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
GetOpportunityResult.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/PartnerCentralSelling_EXPORTS.h>
11#include <aws/partnercentral-selling/model/Contact.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/RelatedEntityIdentifiers.h>
20#include <aws/partnercentral-selling/model/SoftwareRevenue.h>
21
22#include <utility>
23
24namespace Aws {
25template <typename RESULT_TYPE>
26class AmazonWebServiceResult;
27
28namespace Utils {
29namespace Json {
30class JsonValue;
31} // namespace Json
32} // namespace Utils
33namespace PartnerCentralSelling {
34namespace Model {
36 public:
37 AWS_PARTNERCENTRALSELLING_API GetOpportunityResult() = default;
40
42
50 inline const Aws::String& GetCatalog() const { return m_catalog; }
51 template <typename CatalogT = Aws::String>
52 void SetCatalog(CatalogT&& value) {
53 m_catalogHasBeenSet = true;
54 m_catalog = std::forward<CatalogT>(value);
55 }
56 template <typename CatalogT = Aws::String>
57 GetOpportunityResult& WithCatalog(CatalogT&& value) {
58 SetCatalog(std::forward<CatalogT>(value));
59 return *this;
60 }
62
64
86 inline const Aws::Vector<PrimaryNeedFromAws>& GetPrimaryNeedsFromAws() const { return m_primaryNeedsFromAws; }
87 template <typename PrimaryNeedsFromAwsT = Aws::Vector<PrimaryNeedFromAws>>
88 void SetPrimaryNeedsFromAws(PrimaryNeedsFromAwsT&& value) {
89 m_primaryNeedsFromAwsHasBeenSet = true;
90 m_primaryNeedsFromAws = std::forward<PrimaryNeedsFromAwsT>(value);
91 }
92 template <typename PrimaryNeedsFromAwsT = Aws::Vector<PrimaryNeedFromAws>>
93 GetOpportunityResult& WithPrimaryNeedsFromAws(PrimaryNeedsFromAwsT&& value) {
94 SetPrimaryNeedsFromAws(std::forward<PrimaryNeedsFromAwsT>(value));
95 return *this;
96 }
98 m_primaryNeedsFromAwsHasBeenSet = true;
99 m_primaryNeedsFromAws.push_back(value);
100 return *this;
101 }
103
105
112 inline NationalSecurity GetNationalSecurity() const { return m_nationalSecurity; }
114 m_nationalSecurityHasBeenSet = true;
115 m_nationalSecurity = value;
116 }
118 SetNationalSecurity(value);
119 return *this;
120 }
122
124
129 inline const Aws::String& GetPartnerOpportunityIdentifier() const { return m_partnerOpportunityIdentifier; }
130 template <typename PartnerOpportunityIdentifierT = Aws::String>
131 void SetPartnerOpportunityIdentifier(PartnerOpportunityIdentifierT&& value) {
132 m_partnerOpportunityIdentifierHasBeenSet = true;
133 m_partnerOpportunityIdentifier = std::forward<PartnerOpportunityIdentifierT>(value);
134 }
135 template <typename PartnerOpportunityIdentifierT = Aws::String>
136 GetOpportunityResult& WithPartnerOpportunityIdentifier(PartnerOpportunityIdentifierT&& value) {
137 SetPartnerOpportunityIdentifier(std::forward<PartnerOpportunityIdentifierT>(value));
138 return *this;
139 }
141
143
147 inline const Customer& GetCustomer() const { return m_customer; }
148 template <typename CustomerT = Customer>
149 void SetCustomer(CustomerT&& value) {
150 m_customerHasBeenSet = true;
151 m_customer = std::forward<CustomerT>(value);
152 }
153 template <typename CustomerT = Customer>
154 GetOpportunityResult& WithCustomer(CustomerT&& value) {
155 SetCustomer(std::forward<CustomerT>(value));
156 return *this;
157 }
159
161
165 inline const Project& GetProject() const { return m_project; }
166 template <typename ProjectT = Project>
167 void SetProject(ProjectT&& value) {
168 m_projectHasBeenSet = true;
169 m_project = std::forward<ProjectT>(value);
170 }
171 template <typename ProjectT = Project>
173 SetProject(std::forward<ProjectT>(value));
174 return *this;
175 }
177
179
190 inline OpportunityType GetOpportunityType() const { return m_opportunityType; }
192 m_opportunityTypeHasBeenSet = true;
193 m_opportunityType = value;
194 }
196 SetOpportunityType(value);
197 return *this;
198 }
200
202
206 inline const Marketing& GetMarketing() const { return m_marketing; }
207 template <typename MarketingT = Marketing>
208 void SetMarketing(MarketingT&& value) {
209 m_marketingHasBeenSet = true;
210 m_marketing = std::forward<MarketingT>(value);
211 }
212 template <typename MarketingT = Marketing>
213 GetOpportunityResult& WithMarketing(MarketingT&& value) {
214 SetMarketing(std::forward<MarketingT>(value));
215 return *this;
216 }
218
220
224 inline const SoftwareRevenue& GetSoftwareRevenue() const { return m_softwareRevenue; }
225 template <typename SoftwareRevenueT = SoftwareRevenue>
226 void SetSoftwareRevenue(SoftwareRevenueT&& value) {
227 m_softwareRevenueHasBeenSet = true;
228 m_softwareRevenue = std::forward<SoftwareRevenueT>(value);
229 }
230 template <typename SoftwareRevenueT = SoftwareRevenue>
231 GetOpportunityResult& WithSoftwareRevenue(SoftwareRevenueT&& value) {
232 SetSoftwareRevenue(std::forward<SoftwareRevenueT>(value));
233 return *this;
234 }
236
238
241 inline const Aws::String& GetId() const { return m_id; }
242 template <typename IdT = Aws::String>
243 void SetId(IdT&& value) {
244 m_idHasBeenSet = true;
245 m_id = std::forward<IdT>(value);
246 }
247 template <typename IdT = Aws::String>
249 SetId(std::forward<IdT>(value));
250 return *this;
251 }
253
255
258 inline const Aws::String& GetArn() const { return m_arn; }
259 template <typename ArnT = Aws::String>
260 void SetArn(ArnT&& value) {
261 m_arnHasBeenSet = true;
262 m_arn = std::forward<ArnT>(value);
263 }
264 template <typename ArnT = Aws::String>
266 SetArn(std::forward<ArnT>(value));
267 return *this;
268 }
270
272
275 inline const Aws::Utils::DateTime& GetLastModifiedDate() const { return m_lastModifiedDate; }
276 template <typename LastModifiedDateT = Aws::Utils::DateTime>
277 void SetLastModifiedDate(LastModifiedDateT&& value) {
278 m_lastModifiedDateHasBeenSet = true;
279 m_lastModifiedDate = std::forward<LastModifiedDateT>(value);
280 }
281 template <typename LastModifiedDateT = Aws::Utils::DateTime>
282 GetOpportunityResult& WithLastModifiedDate(LastModifiedDateT&& value) {
283 SetLastModifiedDate(std::forward<LastModifiedDateT>(value));
284 return *this;
285 }
287
289
293 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
294 template <typename CreatedDateT = Aws::Utils::DateTime>
295 void SetCreatedDate(CreatedDateT&& value) {
296 m_createdDateHasBeenSet = true;
297 m_createdDate = std::forward<CreatedDateT>(value);
298 }
299 template <typename CreatedDateT = Aws::Utils::DateTime>
300 GetOpportunityResult& WithCreatedDate(CreatedDateT&& value) {
301 SetCreatedDate(std::forward<CreatedDateT>(value));
302 return *this;
303 }
305
307
312 inline const RelatedEntityIdentifiers& GetRelatedEntityIdentifiers() const { return m_relatedEntityIdentifiers; }
313 template <typename RelatedEntityIdentifiersT = RelatedEntityIdentifiers>
314 void SetRelatedEntityIdentifiers(RelatedEntityIdentifiersT&& value) {
315 m_relatedEntityIdentifiersHasBeenSet = true;
316 m_relatedEntityIdentifiers = std::forward<RelatedEntityIdentifiersT>(value);
317 }
318 template <typename RelatedEntityIdentifiersT = RelatedEntityIdentifiers>
319 GetOpportunityResult& WithRelatedEntityIdentifiers(RelatedEntityIdentifiersT&& value) {
320 SetRelatedEntityIdentifiers(std::forward<RelatedEntityIdentifiersT>(value));
321 return *this;
322 }
324
326
330 inline const LifeCycle& GetLifeCycle() const { return m_lifeCycle; }
331 template <typename LifeCycleT = LifeCycle>
332 void SetLifeCycle(LifeCycleT&& value) {
333 m_lifeCycleHasBeenSet = true;
334 m_lifeCycle = std::forward<LifeCycleT>(value);
335 }
336 template <typename LifeCycleT = LifeCycle>
337 GetOpportunityResult& WithLifeCycle(LifeCycleT&& value) {
338 SetLifeCycle(std::forward<LifeCycleT>(value));
339 return *this;
340 }
342
344
349 inline const Aws::Vector<Contact>& GetOpportunityTeam() const { return m_opportunityTeam; }
350 template <typename OpportunityTeamT = Aws::Vector<Contact>>
351 void SetOpportunityTeam(OpportunityTeamT&& value) {
352 m_opportunityTeamHasBeenSet = true;
353 m_opportunityTeam = std::forward<OpportunityTeamT>(value);
354 }
355 template <typename OpportunityTeamT = Aws::Vector<Contact>>
356 GetOpportunityResult& WithOpportunityTeam(OpportunityTeamT&& value) {
357 SetOpportunityTeam(std::forward<OpportunityTeamT>(value));
358 return *this;
359 }
360 template <typename OpportunityTeamT = Contact>
361 GetOpportunityResult& AddOpportunityTeam(OpportunityTeamT&& value) {
362 m_opportunityTeamHasBeenSet = true;
363 m_opportunityTeam.emplace_back(std::forward<OpportunityTeamT>(value));
364 return *this;
365 }
367
369
370 inline const Aws::String& GetRequestId() const { return m_requestId; }
371 template <typename RequestIdT = Aws::String>
372 void SetRequestId(RequestIdT&& value) {
373 m_requestIdHasBeenSet = true;
374 m_requestId = std::forward<RequestIdT>(value);
375 }
376 template <typename RequestIdT = Aws::String>
377 GetOpportunityResult& WithRequestId(RequestIdT&& value) {
378 SetRequestId(std::forward<RequestIdT>(value));
379 return *this;
380 }
382 private:
383 Aws::String m_catalog;
384
385 Aws::Vector<PrimaryNeedFromAws> m_primaryNeedsFromAws;
386
388
389 Aws::String m_partnerOpportunityIdentifier;
390
391 Customer m_customer;
392
393 Project m_project;
394
395 OpportunityType m_opportunityType{OpportunityType::NOT_SET};
396
397 Marketing m_marketing;
398
399 SoftwareRevenue m_softwareRevenue;
400
401 Aws::String m_id;
402
403 Aws::String m_arn;
404
405 Aws::Utils::DateTime m_lastModifiedDate{};
406
407 Aws::Utils::DateTime m_createdDate{};
408
409 RelatedEntityIdentifiers m_relatedEntityIdentifiers;
410
411 LifeCycle m_lifeCycle;
412
413 Aws::Vector<Contact> m_opportunityTeam;
414
415 Aws::String m_requestId;
416 bool m_catalogHasBeenSet = false;
417 bool m_primaryNeedsFromAwsHasBeenSet = false;
418 bool m_nationalSecurityHasBeenSet = false;
419 bool m_partnerOpportunityIdentifierHasBeenSet = false;
420 bool m_customerHasBeenSet = false;
421 bool m_projectHasBeenSet = false;
422 bool m_opportunityTypeHasBeenSet = false;
423 bool m_marketingHasBeenSet = false;
424 bool m_softwareRevenueHasBeenSet = false;
425 bool m_idHasBeenSet = false;
426 bool m_arnHasBeenSet = false;
427 bool m_lastModifiedDateHasBeenSet = false;
428 bool m_createdDateHasBeenSet = false;
429 bool m_relatedEntityIdentifiersHasBeenSet = false;
430 bool m_lifeCycleHasBeenSet = false;
431 bool m_opportunityTeamHasBeenSet = false;
432 bool m_requestIdHasBeenSet = false;
433};
434
435} // namespace Model
436} // namespace PartnerCentralSelling
437} // namespace Aws
GetOpportunityResult & WithCatalog(CatalogT &&value)
GetOpportunityResult & WithPartnerOpportunityIdentifier(PartnerOpportunityIdentifierT &&value)
GetOpportunityResult & WithRelatedEntityIdentifiers(RelatedEntityIdentifiersT &&value)
GetOpportunityResult & WithOpportunityType(OpportunityType value)
GetOpportunityResult & WithPrimaryNeedsFromAws(PrimaryNeedsFromAwsT &&value)
const RelatedEntityIdentifiers & GetRelatedEntityIdentifiers() const
GetOpportunityResult & WithCreatedDate(CreatedDateT &&value)
GetOpportunityResult & WithCustomer(CustomerT &&value)
const Aws::Vector< PrimaryNeedFromAws > & GetPrimaryNeedsFromAws() const
GetOpportunityResult & AddPrimaryNeedsFromAws(PrimaryNeedFromAws value)
GetOpportunityResult & WithProject(ProjectT &&value)
const Aws::Vector< Contact > & GetOpportunityTeam() const
GetOpportunityResult & WithLastModifiedDate(LastModifiedDateT &&value)
AWS_PARTNERCENTRALSELLING_API GetOpportunityResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetOpportunityResult & WithOpportunityTeam(OpportunityTeamT &&value)
GetOpportunityResult & WithLifeCycle(LifeCycleT &&value)
void SetRelatedEntityIdentifiers(RelatedEntityIdentifiersT &&value)
GetOpportunityResult & WithMarketing(MarketingT &&value)
void SetPartnerOpportunityIdentifier(PartnerOpportunityIdentifierT &&value)
GetOpportunityResult & AddOpportunityTeam(OpportunityTeamT &&value)
GetOpportunityResult & WithRequestId(RequestIdT &&value)
AWS_PARTNERCENTRALSELLING_API GetOpportunityResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetOpportunityResult & WithNationalSecurity(NationalSecurity value)
AWS_PARTNERCENTRALSELLING_API GetOpportunityResult()=default
GetOpportunityResult & WithSoftwareRevenue(SoftwareRevenueT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue