AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
OpportunitySummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/partnercentral-selling/PartnerCentralSelling_EXPORTS.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
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace PartnerCentralSelling {
25namespace Model {
26
34 public:
35 AWS_PARTNERCENTRALSELLING_API OpportunitySummary() = default;
36 AWS_PARTNERCENTRALSELLING_API OpportunitySummary(Aws::Utils::Json::JsonView jsonValue);
37 AWS_PARTNERCENTRALSELLING_API OpportunitySummary& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
46 inline const Aws::String& GetCatalog() const { return m_catalog; }
47 inline bool CatalogHasBeenSet() const { return m_catalogHasBeenSet; }
48 template <typename CatalogT = Aws::String>
49 void SetCatalog(CatalogT&& value) {
50 m_catalogHasBeenSet = true;
51 m_catalog = std::forward<CatalogT>(value);
52 }
53 template <typename CatalogT = Aws::String>
54 OpportunitySummary& WithCatalog(CatalogT&& value) {
55 SetCatalog(std::forward<CatalogT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetId() const { return m_id; }
65 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
66 template <typename IdT = Aws::String>
67 void SetId(IdT&& value) {
68 m_idHasBeenSet = true;
69 m_id = std::forward<IdT>(value);
70 }
71 template <typename IdT = Aws::String>
72 OpportunitySummary& WithId(IdT&& value) {
73 SetId(std::forward<IdT>(value));
74 return *this;
75 }
77
79
83 inline const Aws::String& GetArn() const { return m_arn; }
84 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
85 template <typename ArnT = Aws::String>
86 void SetArn(ArnT&& value) {
87 m_arnHasBeenSet = true;
88 m_arn = std::forward<ArnT>(value);
89 }
90 template <typename ArnT = Aws::String>
91 OpportunitySummary& WithArn(ArnT&& value) {
92 SetArn(std::forward<ArnT>(value));
93 return *this;
94 }
96
98
104 inline const Aws::String& GetPartnerOpportunityIdentifier() const { return m_partnerOpportunityIdentifier; }
105 inline bool PartnerOpportunityIdentifierHasBeenSet() const { return m_partnerOpportunityIdentifierHasBeenSet; }
106 template <typename PartnerOpportunityIdentifierT = Aws::String>
107 void SetPartnerOpportunityIdentifier(PartnerOpportunityIdentifierT&& value) {
108 m_partnerOpportunityIdentifierHasBeenSet = true;
109 m_partnerOpportunityIdentifier = std::forward<PartnerOpportunityIdentifierT>(value);
110 }
111 template <typename PartnerOpportunityIdentifierT = Aws::String>
112 OpportunitySummary& WithPartnerOpportunityIdentifier(PartnerOpportunityIdentifierT&& value) {
113 SetPartnerOpportunityIdentifier(std::forward<PartnerOpportunityIdentifierT>(value));
114 return *this;
115 }
117
119
130 inline OpportunityType GetOpportunityType() const { return m_opportunityType; }
131 inline bool OpportunityTypeHasBeenSet() const { return m_opportunityTypeHasBeenSet; }
133 m_opportunityTypeHasBeenSet = true;
134 m_opportunityType = value;
135 }
137 SetOpportunityType(value);
138 return *this;
139 }
141
143
147 inline const Aws::Utils::DateTime& GetLastModifiedDate() const { return m_lastModifiedDate; }
148 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
149 template <typename LastModifiedDateT = Aws::Utils::DateTime>
150 void SetLastModifiedDate(LastModifiedDateT&& value) {
151 m_lastModifiedDateHasBeenSet = true;
152 m_lastModifiedDate = std::forward<LastModifiedDateT>(value);
153 }
154 template <typename LastModifiedDateT = Aws::Utils::DateTime>
155 OpportunitySummary& WithLastModifiedDate(LastModifiedDateT&& value) {
156 SetLastModifiedDate(std::forward<LastModifiedDateT>(value));
157 return *this;
158 }
160
162
166 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
167 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
168 template <typename CreatedDateT = Aws::Utils::DateTime>
169 void SetCreatedDate(CreatedDateT&& value) {
170 m_createdDateHasBeenSet = true;
171 m_createdDate = std::forward<CreatedDateT>(value);
172 }
173 template <typename CreatedDateT = Aws::Utils::DateTime>
174 OpportunitySummary& WithCreatedDate(CreatedDateT&& value) {
175 SetCreatedDate(std::forward<CreatedDateT>(value));
176 return *this;
177 }
179
181
184 inline const LifeCycleSummary& GetLifeCycle() const { return m_lifeCycle; }
185 inline bool LifeCycleHasBeenSet() const { return m_lifeCycleHasBeenSet; }
186 template <typename LifeCycleT = LifeCycleSummary>
187 void SetLifeCycle(LifeCycleT&& value) {
188 m_lifeCycleHasBeenSet = true;
189 m_lifeCycle = std::forward<LifeCycleT>(value);
190 }
191 template <typename LifeCycleT = LifeCycleSummary>
192 OpportunitySummary& WithLifeCycle(LifeCycleT&& value) {
193 SetLifeCycle(std::forward<LifeCycleT>(value));
194 return *this;
195 }
197
199
202 inline const CustomerSummary& GetCustomer() const { return m_customer; }
203 inline bool CustomerHasBeenSet() const { return m_customerHasBeenSet; }
204 template <typename CustomerT = CustomerSummary>
205 void SetCustomer(CustomerT&& value) {
206 m_customerHasBeenSet = true;
207 m_customer = std::forward<CustomerT>(value);
208 }
209 template <typename CustomerT = CustomerSummary>
210 OpportunitySummary& WithCustomer(CustomerT&& value) {
211 SetCustomer(std::forward<CustomerT>(value));
212 return *this;
213 }
215
217
221 inline const ProjectSummary& GetProject() const { return m_project; }
222 inline bool ProjectHasBeenSet() const { return m_projectHasBeenSet; }
223 template <typename ProjectT = ProjectSummary>
224 void SetProject(ProjectT&& value) {
225 m_projectHasBeenSet = true;
226 m_project = std::forward<ProjectT>(value);
227 }
228 template <typename ProjectT = ProjectSummary>
229 OpportunitySummary& WithProject(ProjectT&& value) {
230 SetProject(std::forward<ProjectT>(value));
231 return *this;
232 }
234 private:
235 Aws::String m_catalog;
236
237 Aws::String m_id;
238
239 Aws::String m_arn;
240
241 Aws::String m_partnerOpportunityIdentifier;
242
243 OpportunityType m_opportunityType{OpportunityType::NOT_SET};
244
245 Aws::Utils::DateTime m_lastModifiedDate{};
246
247 Aws::Utils::DateTime m_createdDate{};
248
249 LifeCycleSummary m_lifeCycle;
250
251 CustomerSummary m_customer;
252
253 ProjectSummary m_project;
254 bool m_catalogHasBeenSet = false;
255 bool m_idHasBeenSet = false;
256 bool m_arnHasBeenSet = false;
257 bool m_partnerOpportunityIdentifierHasBeenSet = false;
258 bool m_opportunityTypeHasBeenSet = false;
259 bool m_lastModifiedDateHasBeenSet = false;
260 bool m_createdDateHasBeenSet = false;
261 bool m_lifeCycleHasBeenSet = false;
262 bool m_customerHasBeenSet = false;
263 bool m_projectHasBeenSet = false;
264};
265
266} // namespace Model
267} // namespace PartnerCentralSelling
268} // 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