AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
OpportunitySummary.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/CustomerSummary.h>
11#include <aws/partnercentral-selling/model/LifeCycleSummary.h>
12#include <aws/partnercentral-selling/model/OpportunityType.h>
13#include <aws/partnercentral-selling/model/ProjectSummary.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace PartnerCentralSelling
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_PARTNERCENTRALSELLING_API OpportunitySummary() = default;
41 AWS_PARTNERCENTRALSELLING_API OpportunitySummary(Aws::Utils::Json::JsonView jsonValue);
42 AWS_PARTNERCENTRALSELLING_API OpportunitySummary& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
51 inline const Aws::String& GetArn() const { return m_arn; }
52 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
53 template<typename ArnT = Aws::String>
54 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
55 template<typename ArnT = Aws::String>
56 OpportunitySummary& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
58
60
65 inline const Aws::String& GetCatalog() const { return m_catalog; }
66 inline bool CatalogHasBeenSet() const { return m_catalogHasBeenSet; }
67 template<typename CatalogT = Aws::String>
68 void SetCatalog(CatalogT&& value) { m_catalogHasBeenSet = true; m_catalog = std::forward<CatalogT>(value); }
69 template<typename CatalogT = Aws::String>
70 OpportunitySummary& WithCatalog(CatalogT&& value) { SetCatalog(std::forward<CatalogT>(value)); return *this;}
72
74
78 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
79 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
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 OpportunitySummary& WithCreatedDate(CreatedDateT&& value) { SetCreatedDate(std::forward<CreatedDateT>(value)); return *this;}
85
87
90 inline const CustomerSummary& GetCustomer() const { return m_customer; }
91 inline bool CustomerHasBeenSet() const { return m_customerHasBeenSet; }
92 template<typename CustomerT = CustomerSummary>
93 void SetCustomer(CustomerT&& value) { m_customerHasBeenSet = true; m_customer = std::forward<CustomerT>(value); }
94 template<typename CustomerT = CustomerSummary>
95 OpportunitySummary& WithCustomer(CustomerT&& value) { SetCustomer(std::forward<CustomerT>(value)); return *this;}
97
99
102 inline const Aws::String& GetId() const { return m_id; }
103 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
104 template<typename IdT = Aws::String>
105 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
106 template<typename IdT = Aws::String>
107 OpportunitySummary& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
109
111
115 inline const Aws::Utils::DateTime& GetLastModifiedDate() const { return m_lastModifiedDate; }
116 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
117 template<typename LastModifiedDateT = Aws::Utils::DateTime>
118 void SetLastModifiedDate(LastModifiedDateT&& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = std::forward<LastModifiedDateT>(value); }
119 template<typename LastModifiedDateT = Aws::Utils::DateTime>
120 OpportunitySummary& WithLastModifiedDate(LastModifiedDateT&& value) { SetLastModifiedDate(std::forward<LastModifiedDateT>(value)); return *this;}
122
124
127 inline const LifeCycleSummary& GetLifeCycle() const { return m_lifeCycle; }
128 inline bool LifeCycleHasBeenSet() const { return m_lifeCycleHasBeenSet; }
129 template<typename LifeCycleT = LifeCycleSummary>
130 void SetLifeCycle(LifeCycleT&& value) { m_lifeCycleHasBeenSet = true; m_lifeCycle = std::forward<LifeCycleT>(value); }
131 template<typename LifeCycleT = LifeCycleSummary>
132 OpportunitySummary& WithLifeCycle(LifeCycleT&& value) { SetLifeCycle(std::forward<LifeCycleT>(value)); return *this;}
134
136
147 inline OpportunityType GetOpportunityType() const { return m_opportunityType; }
148 inline bool OpportunityTypeHasBeenSet() const { return m_opportunityTypeHasBeenSet; }
149 inline void SetOpportunityType(OpportunityType value) { m_opportunityTypeHasBeenSet = true; m_opportunityType = value; }
152
154
160 inline const Aws::String& GetPartnerOpportunityIdentifier() const { return m_partnerOpportunityIdentifier; }
161 inline bool PartnerOpportunityIdentifierHasBeenSet() const { return m_partnerOpportunityIdentifierHasBeenSet; }
162 template<typename PartnerOpportunityIdentifierT = Aws::String>
163 void SetPartnerOpportunityIdentifier(PartnerOpportunityIdentifierT&& value) { m_partnerOpportunityIdentifierHasBeenSet = true; m_partnerOpportunityIdentifier = std::forward<PartnerOpportunityIdentifierT>(value); }
164 template<typename PartnerOpportunityIdentifierT = Aws::String>
165 OpportunitySummary& WithPartnerOpportunityIdentifier(PartnerOpportunityIdentifierT&& value) { SetPartnerOpportunityIdentifier(std::forward<PartnerOpportunityIdentifierT>(value)); return *this;}
167
169
173 inline const ProjectSummary& GetProject() const { return m_project; }
174 inline bool ProjectHasBeenSet() const { return m_projectHasBeenSet; }
175 template<typename ProjectT = ProjectSummary>
176 void SetProject(ProjectT&& value) { m_projectHasBeenSet = true; m_project = std::forward<ProjectT>(value); }
177 template<typename ProjectT = ProjectSummary>
178 OpportunitySummary& WithProject(ProjectT&& value) { SetProject(std::forward<ProjectT>(value)); return *this;}
180 private:
181
182 Aws::String m_arn;
183 bool m_arnHasBeenSet = false;
184
185 Aws::String m_catalog;
186 bool m_catalogHasBeenSet = false;
187
188 Aws::Utils::DateTime m_createdDate{};
189 bool m_createdDateHasBeenSet = false;
190
191 CustomerSummary m_customer;
192 bool m_customerHasBeenSet = false;
193
194 Aws::String m_id;
195 bool m_idHasBeenSet = false;
196
197 Aws::Utils::DateTime m_lastModifiedDate{};
198 bool m_lastModifiedDateHasBeenSet = false;
199
200 LifeCycleSummary m_lifeCycle;
201 bool m_lifeCycleHasBeenSet = false;
202
203 OpportunityType m_opportunityType{OpportunityType::NOT_SET};
204 bool m_opportunityTypeHasBeenSet = false;
205
206 Aws::String m_partnerOpportunityIdentifier;
207 bool m_partnerOpportunityIdentifierHasBeenSet = false;
208
209 ProjectSummary m_project;
210 bool m_projectHasBeenSet = false;
211 };
212
213} // namespace Model
214} // namespace PartnerCentralSelling
215} // namespace Aws
const Aws::Utils::DateTime & GetLastModifiedDate() const
OpportunitySummary & WithCreatedDate(CreatedDateT &&value)
OpportunitySummary & WithProject(ProjectT &&value)
void SetPartnerOpportunityIdentifier(PartnerOpportunityIdentifierT &&value)
const Aws::Utils::DateTime & GetCreatedDate() const
OpportunitySummary & WithPartnerOpportunityIdentifier(PartnerOpportunityIdentifierT &&value)
AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PARTNERCENTRALSELLING_API OpportunitySummary & operator=(Aws::Utils::Json::JsonView jsonValue)
OpportunitySummary & WithLastModifiedDate(LastModifiedDateT &&value)
AWS_PARTNERCENTRALSELLING_API OpportunitySummary()=default
OpportunitySummary & WithCustomer(CustomerT &&value)
OpportunitySummary & WithCatalog(CatalogT &&value)
OpportunitySummary & WithOpportunityType(OpportunityType value)
AWS_PARTNERCENTRALSELLING_API OpportunitySummary(Aws::Utils::Json::JsonView jsonValue)
OpportunitySummary & WithLifeCycle(LifeCycleT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue