AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
GetOpportunityResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.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/OpportunityType.h>
18#include <aws/partnercentral-selling/model/PrimaryNeedFromAws.h>
19#include <aws/partnercentral-selling/model/Project.h>
20#include <aws/partnercentral-selling/model/RelatedEntityIdentifiers.h>
21#include <aws/partnercentral-selling/model/SoftwareRevenue.h>
22
23#include <utility>
24
25namespace Aws {
26template <typename RESULT_TYPE>
27class AmazonWebServiceResult;
28
29namespace Utils {
30namespace Json {
31class JsonValue;
32} // namespace Json
33} // namespace Utils
34namespace PartnerCentralSelling {
35namespace Model {
37 public:
38 AWS_PARTNERCENTRALSELLING_API GetOpportunityResult() = default;
41
43
51 inline const Aws::String& GetCatalog() const { return m_catalog; }
52 template <typename CatalogT = Aws::String>
53 void SetCatalog(CatalogT&& value) {
54 m_catalogHasBeenSet = true;
55 m_catalog = std::forward<CatalogT>(value);
56 }
57 template <typename CatalogT = Aws::String>
58 GetOpportunityResult& WithCatalog(CatalogT&& value) {
59 SetCatalog(std::forward<CatalogT>(value));
60 return *this;
61 }
63
65
87 inline const Aws::Vector<PrimaryNeedFromAws>& GetPrimaryNeedsFromAws() const { return m_primaryNeedsFromAws; }
88 template <typename PrimaryNeedsFromAwsT = Aws::Vector<PrimaryNeedFromAws>>
89 void SetPrimaryNeedsFromAws(PrimaryNeedsFromAwsT&& value) {
90 m_primaryNeedsFromAwsHasBeenSet = true;
91 m_primaryNeedsFromAws = std::forward<PrimaryNeedsFromAwsT>(value);
92 }
93 template <typename PrimaryNeedsFromAwsT = Aws::Vector<PrimaryNeedFromAws>>
94 GetOpportunityResult& WithPrimaryNeedsFromAws(PrimaryNeedsFromAwsT&& value) {
95 SetPrimaryNeedsFromAws(std::forward<PrimaryNeedsFromAwsT>(value));
96 return *this;
97 }
99 m_primaryNeedsFromAwsHasBeenSet = true;
100 m_primaryNeedsFromAws.push_back(value);
101 return *this;
102 }
104
106
113 inline NationalSecurity GetNationalSecurity() const { return m_nationalSecurity; }
115 m_nationalSecurityHasBeenSet = true;
116 m_nationalSecurity = value;
117 }
119 SetNationalSecurity(value);
120 return *this;
121 }
123
125
130 inline const Aws::String& GetPartnerOpportunityIdentifier() const { return m_partnerOpportunityIdentifier; }
131 template <typename PartnerOpportunityIdentifierT = Aws::String>
132 void SetPartnerOpportunityIdentifier(PartnerOpportunityIdentifierT&& value) {
133 m_partnerOpportunityIdentifierHasBeenSet = true;
134 m_partnerOpportunityIdentifier = std::forward<PartnerOpportunityIdentifierT>(value);
135 }
136 template <typename PartnerOpportunityIdentifierT = Aws::String>
137 GetOpportunityResult& WithPartnerOpportunityIdentifier(PartnerOpportunityIdentifierT&& value) {
138 SetPartnerOpportunityIdentifier(std::forward<PartnerOpportunityIdentifierT>(value));
139 return *this;
140 }
142
144
148 inline const Customer& GetCustomer() const { return m_customer; }
149 template <typename CustomerT = Customer>
150 void SetCustomer(CustomerT&& value) {
151 m_customerHasBeenSet = true;
152 m_customer = std::forward<CustomerT>(value);
153 }
154 template <typename CustomerT = Customer>
155 GetOpportunityResult& WithCustomer(CustomerT&& value) {
156 SetCustomer(std::forward<CustomerT>(value));
157 return *this;
158 }
160
162
166 inline const Project& GetProject() const { return m_project; }
167 template <typename ProjectT = Project>
168 void SetProject(ProjectT&& value) {
169 m_projectHasBeenSet = true;
170 m_project = std::forward<ProjectT>(value);
171 }
172 template <typename ProjectT = Project>
174 SetProject(std::forward<ProjectT>(value));
175 return *this;
176 }
178
180
191 inline OpportunityType GetOpportunityType() const { return m_opportunityType; }
193 m_opportunityTypeHasBeenSet = true;
194 m_opportunityType = value;
195 }
197 SetOpportunityType(value);
198 return *this;
199 }
201
203
207 inline const Marketing& GetMarketing() const { return m_marketing; }
208 template <typename MarketingT = Marketing>
209 void SetMarketing(MarketingT&& value) {
210 m_marketingHasBeenSet = true;
211 m_marketing = std::forward<MarketingT>(value);
212 }
213 template <typename MarketingT = Marketing>
214 GetOpportunityResult& WithMarketing(MarketingT&& value) {
215 SetMarketing(std::forward<MarketingT>(value));
216 return *this;
217 }
219
221
225 inline const SoftwareRevenue& GetSoftwareRevenue() const { return m_softwareRevenue; }
226 template <typename SoftwareRevenueT = SoftwareRevenue>
227 void SetSoftwareRevenue(SoftwareRevenueT&& value) {
228 m_softwareRevenueHasBeenSet = true;
229 m_softwareRevenue = std::forward<SoftwareRevenueT>(value);
230 }
231 template <typename SoftwareRevenueT = SoftwareRevenue>
232 GetOpportunityResult& WithSoftwareRevenue(SoftwareRevenueT&& value) {
233 SetSoftwareRevenue(std::forward<SoftwareRevenueT>(value));
234 return *this;
235 }
237
239
242 inline const Aws::String& GetId() const { return m_id; }
243 template <typename IdT = Aws::String>
244 void SetId(IdT&& value) {
245 m_idHasBeenSet = true;
246 m_id = std::forward<IdT>(value);
247 }
248 template <typename IdT = Aws::String>
250 SetId(std::forward<IdT>(value));
251 return *this;
252 }
254
256
259 inline const Aws::String& GetArn() const { return m_arn; }
260 template <typename ArnT = Aws::String>
261 void SetArn(ArnT&& value) {
262 m_arnHasBeenSet = true;
263 m_arn = std::forward<ArnT>(value);
264 }
265 template <typename ArnT = Aws::String>
267 SetArn(std::forward<ArnT>(value));
268 return *this;
269 }
271
273
276 inline const Aws::Utils::DateTime& GetLastModifiedDate() const { return m_lastModifiedDate; }
277 template <typename LastModifiedDateT = Aws::Utils::DateTime>
278 void SetLastModifiedDate(LastModifiedDateT&& value) {
279 m_lastModifiedDateHasBeenSet = true;
280 m_lastModifiedDate = std::forward<LastModifiedDateT>(value);
281 }
282 template <typename LastModifiedDateT = Aws::Utils::DateTime>
283 GetOpportunityResult& WithLastModifiedDate(LastModifiedDateT&& value) {
284 SetLastModifiedDate(std::forward<LastModifiedDateT>(value));
285 return *this;
286 }
288
290
294 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
295 template <typename CreatedDateT = Aws::Utils::DateTime>
296 void SetCreatedDate(CreatedDateT&& value) {
297 m_createdDateHasBeenSet = true;
298 m_createdDate = std::forward<CreatedDateT>(value);
299 }
300 template <typename CreatedDateT = Aws::Utils::DateTime>
301 GetOpportunityResult& WithCreatedDate(CreatedDateT&& value) {
302 SetCreatedDate(std::forward<CreatedDateT>(value));
303 return *this;
304 }
306
308
313 inline const RelatedEntityIdentifiers& GetRelatedEntityIdentifiers() const { return m_relatedEntityIdentifiers; }
314 template <typename RelatedEntityIdentifiersT = RelatedEntityIdentifiers>
315 void SetRelatedEntityIdentifiers(RelatedEntityIdentifiersT&& value) {
316 m_relatedEntityIdentifiersHasBeenSet = true;
317 m_relatedEntityIdentifiers = std::forward<RelatedEntityIdentifiersT>(value);
318 }
319 template <typename RelatedEntityIdentifiersT = RelatedEntityIdentifiers>
320 GetOpportunityResult& WithRelatedEntityIdentifiers(RelatedEntityIdentifiersT&& value) {
321 SetRelatedEntityIdentifiers(std::forward<RelatedEntityIdentifiersT>(value));
322 return *this;
323 }
325
327
331 inline const LifeCycle& GetLifeCycle() const { return m_lifeCycle; }
332 template <typename LifeCycleT = LifeCycle>
333 void SetLifeCycle(LifeCycleT&& value) {
334 m_lifeCycleHasBeenSet = true;
335 m_lifeCycle = std::forward<LifeCycleT>(value);
336 }
337 template <typename LifeCycleT = LifeCycle>
338 GetOpportunityResult& WithLifeCycle(LifeCycleT&& value) {
339 SetLifeCycle(std::forward<LifeCycleT>(value));
340 return *this;
341 }
343
345
350 inline const Aws::Vector<Contact>& GetOpportunityTeam() const { return m_opportunityTeam; }
351 template <typename OpportunityTeamT = Aws::Vector<Contact>>
352 void SetOpportunityTeam(OpportunityTeamT&& value) {
353 m_opportunityTeamHasBeenSet = true;
354 m_opportunityTeam = std::forward<OpportunityTeamT>(value);
355 }
356 template <typename OpportunityTeamT = Aws::Vector<Contact>>
357 GetOpportunityResult& WithOpportunityTeam(OpportunityTeamT&& value) {
358 SetOpportunityTeam(std::forward<OpportunityTeamT>(value));
359 return *this;
360 }
361 template <typename OpportunityTeamT = Contact>
362 GetOpportunityResult& AddOpportunityTeam(OpportunityTeamT&& value) {
363 m_opportunityTeamHasBeenSet = true;
364 m_opportunityTeam.emplace_back(std::forward<OpportunityTeamT>(value));
365 return *this;
366 }
368
370
371 inline const Aws::String& GetRequestId() const { return m_requestId; }
372 template <typename RequestIdT = Aws::String>
373 void SetRequestId(RequestIdT&& value) {
374 m_requestIdHasBeenSet = true;
375 m_requestId = std::forward<RequestIdT>(value);
376 }
377 template <typename RequestIdT = Aws::String>
378 GetOpportunityResult& WithRequestId(RequestIdT&& value) {
379 SetRequestId(std::forward<RequestIdT>(value));
380 return *this;
381 }
383 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
384
385 private:
386 Aws::String m_catalog;
387
388 Aws::Vector<PrimaryNeedFromAws> m_primaryNeedsFromAws;
389
391
392 Aws::String m_partnerOpportunityIdentifier;
393
394 Customer m_customer;
395
396 Project m_project;
397
398 OpportunityType m_opportunityType{OpportunityType::NOT_SET};
399
400 Marketing m_marketing;
401
402 SoftwareRevenue m_softwareRevenue;
403
404 Aws::String m_id;
405
406 Aws::String m_arn;
407
408 Aws::Utils::DateTime m_lastModifiedDate{};
409
410 Aws::Utils::DateTime m_createdDate{};
411
412 RelatedEntityIdentifiers m_relatedEntityIdentifiers;
413
414 LifeCycle m_lifeCycle;
415
416 Aws::Vector<Contact> m_opportunityTeam;
417
418 Aws::String m_requestId;
419 Aws::Http::HttpResponseCode m_HttpResponseCode;
420 bool m_catalogHasBeenSet = false;
421 bool m_primaryNeedsFromAwsHasBeenSet = false;
422 bool m_nationalSecurityHasBeenSet = false;
423 bool m_partnerOpportunityIdentifierHasBeenSet = false;
424 bool m_customerHasBeenSet = false;
425 bool m_projectHasBeenSet = false;
426 bool m_opportunityTypeHasBeenSet = false;
427 bool m_marketingHasBeenSet = false;
428 bool m_softwareRevenueHasBeenSet = false;
429 bool m_idHasBeenSet = false;
430 bool m_arnHasBeenSet = false;
431 bool m_lastModifiedDateHasBeenSet = false;
432 bool m_createdDateHasBeenSet = false;
433 bool m_relatedEntityIdentifiersHasBeenSet = false;
434 bool m_lifeCycleHasBeenSet = false;
435 bool m_opportunityTeamHasBeenSet = false;
436 bool m_requestIdHasBeenSet = false;
437};
438
439} // namespace Model
440} // namespace PartnerCentralSelling
441} // 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