AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
GetOpportunityResult.h
1
6#pragma once
7#include <aws/partnercentral-selling/PartnerCentralSelling_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.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/Project.h>
17#include <aws/partnercentral-selling/model/RelatedEntityIdentifiers.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
23namespace Aws
24{
25template<typename RESULT_TYPE>
26class AmazonWebServiceResult;
27
28namespace Utils
29{
30namespace Json
31{
32 class JsonValue;
33} // namespace Json
34} // namespace Utils
35namespace PartnerCentralSelling
36{
37namespace Model
38{
40 {
41 public:
42 AWS_PARTNERCENTRALSELLING_API GetOpportunityResult() = default;
45
46
48
51 inline const Aws::String& GetArn() const { return m_arn; }
52 template<typename ArnT = Aws::String>
53 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
54 template<typename ArnT = Aws::String>
55 GetOpportunityResult& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
57
59
67 inline const Aws::String& GetCatalog() const { return m_catalog; }
68 template<typename CatalogT = Aws::String>
69 void SetCatalog(CatalogT&& value) { m_catalogHasBeenSet = true; m_catalog = std::forward<CatalogT>(value); }
70 template<typename CatalogT = Aws::String>
71 GetOpportunityResult& WithCatalog(CatalogT&& value) { SetCatalog(std::forward<CatalogT>(value)); return *this;}
73
75
79 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
80 template<typename CreatedDateT = Aws::Utils::DateTime>
81 void SetCreatedDate(CreatedDateT&& value) { m_createdDateHasBeenSet = true; m_createdDate = std::forward<CreatedDateT>(value); }
82 template<typename CreatedDateT = Aws::Utils::DateTime>
83 GetOpportunityResult& WithCreatedDate(CreatedDateT&& value) { SetCreatedDate(std::forward<CreatedDateT>(value)); return *this;}
85
87
91 inline const Customer& GetCustomer() const { return m_customer; }
92 template<typename CustomerT = Customer>
93 void SetCustomer(CustomerT&& value) { m_customerHasBeenSet = true; m_customer = std::forward<CustomerT>(value); }
94 template<typename CustomerT = Customer>
95 GetOpportunityResult& WithCustomer(CustomerT&& value) { SetCustomer(std::forward<CustomerT>(value)); return *this;}
97
99
102 inline const Aws::String& GetId() const { return m_id; }
103 template<typename IdT = Aws::String>
104 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
105 template<typename IdT = Aws::String>
106 GetOpportunityResult& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
108
110
113 inline const Aws::Utils::DateTime& GetLastModifiedDate() const { return m_lastModifiedDate; }
114 template<typename LastModifiedDateT = Aws::Utils::DateTime>
115 void SetLastModifiedDate(LastModifiedDateT&& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = std::forward<LastModifiedDateT>(value); }
116 template<typename LastModifiedDateT = Aws::Utils::DateTime>
117 GetOpportunityResult& WithLastModifiedDate(LastModifiedDateT&& value) { SetLastModifiedDate(std::forward<LastModifiedDateT>(value)); return *this;}
119
121
125 inline const LifeCycle& GetLifeCycle() const { return m_lifeCycle; }
126 template<typename LifeCycleT = LifeCycle>
127 void SetLifeCycle(LifeCycleT&& value) { m_lifeCycleHasBeenSet = true; m_lifeCycle = std::forward<LifeCycleT>(value); }
128 template<typename LifeCycleT = LifeCycle>
129 GetOpportunityResult& WithLifeCycle(LifeCycleT&& value) { SetLifeCycle(std::forward<LifeCycleT>(value)); return *this;}
131
133
137 inline const Marketing& GetMarketing() const { return m_marketing; }
138 template<typename MarketingT = Marketing>
139 void SetMarketing(MarketingT&& value) { m_marketingHasBeenSet = true; m_marketing = std::forward<MarketingT>(value); }
140 template<typename MarketingT = Marketing>
141 GetOpportunityResult& WithMarketing(MarketingT&& value) { SetMarketing(std::forward<MarketingT>(value)); return *this;}
143
145
152 inline NationalSecurity GetNationalSecurity() const { return m_nationalSecurity; }
153 inline void SetNationalSecurity(NationalSecurity value) { m_nationalSecurityHasBeenSet = true; m_nationalSecurity = value; }
156
158
163 inline const Aws::Vector<Contact>& GetOpportunityTeam() const { return m_opportunityTeam; }
164 template<typename OpportunityTeamT = Aws::Vector<Contact>>
165 void SetOpportunityTeam(OpportunityTeamT&& value) { m_opportunityTeamHasBeenSet = true; m_opportunityTeam = std::forward<OpportunityTeamT>(value); }
166 template<typename OpportunityTeamT = Aws::Vector<Contact>>
167 GetOpportunityResult& WithOpportunityTeam(OpportunityTeamT&& value) { SetOpportunityTeam(std::forward<OpportunityTeamT>(value)); return *this;}
168 template<typename OpportunityTeamT = Contact>
169 GetOpportunityResult& AddOpportunityTeam(OpportunityTeamT&& value) { m_opportunityTeamHasBeenSet = true; m_opportunityTeam.emplace_back(std::forward<OpportunityTeamT>(value)); return *this; }
171
173
184 inline OpportunityType GetOpportunityType() const { return m_opportunityType; }
185 inline void SetOpportunityType(OpportunityType value) { m_opportunityTypeHasBeenSet = true; m_opportunityType = value; }
188
190
195 inline const Aws::String& GetPartnerOpportunityIdentifier() const { return m_partnerOpportunityIdentifier; }
196 template<typename PartnerOpportunityIdentifierT = Aws::String>
197 void SetPartnerOpportunityIdentifier(PartnerOpportunityIdentifierT&& value) { m_partnerOpportunityIdentifierHasBeenSet = true; m_partnerOpportunityIdentifier = std::forward<PartnerOpportunityIdentifierT>(value); }
198 template<typename PartnerOpportunityIdentifierT = Aws::String>
199 GetOpportunityResult& WithPartnerOpportunityIdentifier(PartnerOpportunityIdentifierT&& value) { SetPartnerOpportunityIdentifier(std::forward<PartnerOpportunityIdentifierT>(value)); return *this;}
201
203
225 inline const Aws::Vector<PrimaryNeedFromAws>& GetPrimaryNeedsFromAws() const { return m_primaryNeedsFromAws; }
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 GetOpportunityResult& WithPrimaryNeedsFromAws(PrimaryNeedsFromAwsT&& value) { SetPrimaryNeedsFromAws(std::forward<PrimaryNeedsFromAwsT>(value)); return *this;}
230 inline GetOpportunityResult& AddPrimaryNeedsFromAws(PrimaryNeedFromAws value) { m_primaryNeedsFromAwsHasBeenSet = true; m_primaryNeedsFromAws.push_back(value); return *this; }
232
234
238 inline const Project& GetProject() const { return m_project; }
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 GetOpportunityResult& WithProject(ProjectT&& value) { SetProject(std::forward<ProjectT>(value)); return *this;}
244
246
251 inline const RelatedEntityIdentifiers& GetRelatedEntityIdentifiers() const { return m_relatedEntityIdentifiers; }
252 template<typename RelatedEntityIdentifiersT = RelatedEntityIdentifiers>
253 void SetRelatedEntityIdentifiers(RelatedEntityIdentifiersT&& value) { m_relatedEntityIdentifiersHasBeenSet = true; m_relatedEntityIdentifiers = std::forward<RelatedEntityIdentifiersT>(value); }
254 template<typename RelatedEntityIdentifiersT = RelatedEntityIdentifiers>
255 GetOpportunityResult& WithRelatedEntityIdentifiers(RelatedEntityIdentifiersT&& value) { SetRelatedEntityIdentifiers(std::forward<RelatedEntityIdentifiersT>(value)); return *this;}
257
259
263 inline const SoftwareRevenue& GetSoftwareRevenue() const { return m_softwareRevenue; }
264 template<typename SoftwareRevenueT = SoftwareRevenue>
265 void SetSoftwareRevenue(SoftwareRevenueT&& value) { m_softwareRevenueHasBeenSet = true; m_softwareRevenue = std::forward<SoftwareRevenueT>(value); }
266 template<typename SoftwareRevenueT = SoftwareRevenue>
267 GetOpportunityResult& WithSoftwareRevenue(SoftwareRevenueT&& value) { SetSoftwareRevenue(std::forward<SoftwareRevenueT>(value)); return *this;}
269
271
272 inline const Aws::String& GetRequestId() const { return m_requestId; }
273 template<typename RequestIdT = Aws::String>
274 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
275 template<typename RequestIdT = Aws::String>
276 GetOpportunityResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
278 private:
279
280 Aws::String m_arn;
281 bool m_arnHasBeenSet = false;
282
283 Aws::String m_catalog;
284 bool m_catalogHasBeenSet = false;
285
286 Aws::Utils::DateTime m_createdDate{};
287 bool m_createdDateHasBeenSet = false;
288
289 Customer m_customer;
290 bool m_customerHasBeenSet = false;
291
292 Aws::String m_id;
293 bool m_idHasBeenSet = false;
294
295 Aws::Utils::DateTime m_lastModifiedDate{};
296 bool m_lastModifiedDateHasBeenSet = false;
297
298 LifeCycle m_lifeCycle;
299 bool m_lifeCycleHasBeenSet = false;
300
301 Marketing m_marketing;
302 bool m_marketingHasBeenSet = false;
303
305 bool m_nationalSecurityHasBeenSet = false;
306
307 Aws::Vector<Contact> m_opportunityTeam;
308 bool m_opportunityTeamHasBeenSet = false;
309
310 OpportunityType m_opportunityType{OpportunityType::NOT_SET};
311 bool m_opportunityTypeHasBeenSet = false;
312
313 Aws::String m_partnerOpportunityIdentifier;
314 bool m_partnerOpportunityIdentifierHasBeenSet = false;
315
316 Aws::Vector<PrimaryNeedFromAws> m_primaryNeedsFromAws;
317 bool m_primaryNeedsFromAwsHasBeenSet = false;
318
319 Project m_project;
320 bool m_projectHasBeenSet = false;
321
322 RelatedEntityIdentifiers m_relatedEntityIdentifiers;
323 bool m_relatedEntityIdentifiersHasBeenSet = false;
324
325 SoftwareRevenue m_softwareRevenue;
326 bool m_softwareRevenueHasBeenSet = false;
327
328 Aws::String m_requestId;
329 bool m_requestIdHasBeenSet = false;
330 };
331
332} // namespace Model
333} // namespace PartnerCentralSelling
334} // 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