AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
OpportunitySummaryView.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/partnercentral-selling/PartnerCentralSelling_EXPORTS.h>
9#include <aws/partnercentral-selling/model/Contact.h>
10#include <aws/partnercentral-selling/model/Customer.h>
11#include <aws/partnercentral-selling/model/LifeCycleForView.h>
12#include <aws/partnercentral-selling/model/OpportunityType.h>
13#include <aws/partnercentral-selling/model/PrimaryNeedFromAws.h>
14#include <aws/partnercentral-selling/model/ProjectView.h>
15#include <aws/partnercentral-selling/model/RelatedEntityIdentifiers.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace PartnerCentralSelling {
27namespace Model {
28
37 public:
38 AWS_PARTNERCENTRALSELLING_API OpportunitySummaryView() = default;
39 AWS_PARTNERCENTRALSELLING_API OpportunitySummaryView(Aws::Utils::Json::JsonView jsonValue);
40 AWS_PARTNERCENTRALSELLING_API OpportunitySummaryView& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
47 inline OpportunityType GetOpportunityType() const { return m_opportunityType; }
48 inline bool OpportunityTypeHasBeenSet() const { return m_opportunityTypeHasBeenSet; }
50 m_opportunityTypeHasBeenSet = true;
51 m_opportunityType = value;
52 }
54 SetOpportunityType(value);
55 return *this;
56 }
58
60
65 inline const LifeCycleForView& GetLifecycle() const { return m_lifecycle; }
66 inline bool LifecycleHasBeenSet() const { return m_lifecycleHasBeenSet; }
67 template <typename LifecycleT = LifeCycleForView>
68 void SetLifecycle(LifecycleT&& value) {
69 m_lifecycleHasBeenSet = true;
70 m_lifecycle = std::forward<LifecycleT>(value);
71 }
72 template <typename LifecycleT = LifeCycleForView>
74 SetLifecycle(std::forward<LifecycleT>(value));
75 return *this;
76 }
78
80
85 inline const Aws::Vector<Contact>& GetOpportunityTeam() const { return m_opportunityTeam; }
86 inline bool OpportunityTeamHasBeenSet() const { return m_opportunityTeamHasBeenSet; }
87 template <typename OpportunityTeamT = Aws::Vector<Contact>>
88 void SetOpportunityTeam(OpportunityTeamT&& value) {
89 m_opportunityTeamHasBeenSet = true;
90 m_opportunityTeam = std::forward<OpportunityTeamT>(value);
91 }
92 template <typename OpportunityTeamT = Aws::Vector<Contact>>
93 OpportunitySummaryView& WithOpportunityTeam(OpportunityTeamT&& value) {
94 SetOpportunityTeam(std::forward<OpportunityTeamT>(value));
95 return *this;
96 }
97 template <typename OpportunityTeamT = Contact>
98 OpportunitySummaryView& AddOpportunityTeam(OpportunityTeamT&& value) {
99 m_opportunityTeamHasBeenSet = true;
100 m_opportunityTeam.emplace_back(std::forward<OpportunityTeamT>(value));
101 return *this;
102 }
104
106
109 inline const Aws::Vector<PrimaryNeedFromAws>& GetPrimaryNeedsFromAws() const { return m_primaryNeedsFromAws; }
110 inline bool PrimaryNeedsFromAwsHasBeenSet() const { return m_primaryNeedsFromAwsHasBeenSet; }
111 template <typename PrimaryNeedsFromAwsT = Aws::Vector<PrimaryNeedFromAws>>
112 void SetPrimaryNeedsFromAws(PrimaryNeedsFromAwsT&& value) {
113 m_primaryNeedsFromAwsHasBeenSet = true;
114 m_primaryNeedsFromAws = std::forward<PrimaryNeedsFromAwsT>(value);
115 }
116 template <typename PrimaryNeedsFromAwsT = Aws::Vector<PrimaryNeedFromAws>>
117 OpportunitySummaryView& WithPrimaryNeedsFromAws(PrimaryNeedsFromAwsT&& value) {
118 SetPrimaryNeedsFromAws(std::forward<PrimaryNeedsFromAwsT>(value));
119 return *this;
120 }
122 m_primaryNeedsFromAwsHasBeenSet = true;
123 m_primaryNeedsFromAws.push_back(value);
124 return *this;
125 }
127
129
130 inline const Customer& GetCustomer() const { return m_customer; }
131 inline bool CustomerHasBeenSet() const { return m_customerHasBeenSet; }
132 template <typename CustomerT = Customer>
133 void SetCustomer(CustomerT&& value) {
134 m_customerHasBeenSet = true;
135 m_customer = std::forward<CustomerT>(value);
136 }
137 template <typename CustomerT = Customer>
139 SetCustomer(std::forward<CustomerT>(value));
140 return *this;
141 }
143
145
150 inline const ProjectView& GetProject() const { return m_project; }
151 inline bool ProjectHasBeenSet() const { return m_projectHasBeenSet; }
152 template <typename ProjectT = ProjectView>
153 void SetProject(ProjectT&& value) {
154 m_projectHasBeenSet = true;
155 m_project = std::forward<ProjectT>(value);
156 }
157 template <typename ProjectT = ProjectView>
159 SetProject(std::forward<ProjectT>(value));
160 return *this;
161 }
163
165
166 inline const RelatedEntityIdentifiers& GetRelatedEntityIdentifiers() const { return m_relatedEntityIdentifiers; }
167 inline bool RelatedEntityIdentifiersHasBeenSet() const { return m_relatedEntityIdentifiersHasBeenSet; }
168 template <typename RelatedEntityIdentifiersT = RelatedEntityIdentifiers>
169 void SetRelatedEntityIdentifiers(RelatedEntityIdentifiersT&& value) {
170 m_relatedEntityIdentifiersHasBeenSet = true;
171 m_relatedEntityIdentifiers = std::forward<RelatedEntityIdentifiersT>(value);
172 }
173 template <typename RelatedEntityIdentifiersT = RelatedEntityIdentifiers>
174 OpportunitySummaryView& WithRelatedEntityIdentifiers(RelatedEntityIdentifiersT&& value) {
175 SetRelatedEntityIdentifiers(std::forward<RelatedEntityIdentifiersT>(value));
176 return *this;
177 }
179 private:
180 OpportunityType m_opportunityType{OpportunityType::NOT_SET};
181
182 LifeCycleForView m_lifecycle;
183
184 Aws::Vector<Contact> m_opportunityTeam;
185
186 Aws::Vector<PrimaryNeedFromAws> m_primaryNeedsFromAws;
187
188 Customer m_customer;
189
190 ProjectView m_project;
191
192 RelatedEntityIdentifiers m_relatedEntityIdentifiers;
193 bool m_opportunityTypeHasBeenSet = false;
194 bool m_lifecycleHasBeenSet = false;
195 bool m_opportunityTeamHasBeenSet = false;
196 bool m_primaryNeedsFromAwsHasBeenSet = false;
197 bool m_customerHasBeenSet = false;
198 bool m_projectHasBeenSet = false;
199 bool m_relatedEntityIdentifiersHasBeenSet = false;
200};
201
202} // namespace Model
203} // namespace PartnerCentralSelling
204} // namespace Aws
OpportunitySummaryView & AddPrimaryNeedsFromAws(PrimaryNeedFromAws value)
OpportunitySummaryView & WithOpportunityType(OpportunityType value)
OpportunitySummaryView & WithLifecycle(LifecycleT &&value)
AWS_PARTNERCENTRALSELLING_API OpportunitySummaryView & operator=(Aws::Utils::Json::JsonView jsonValue)
OpportunitySummaryView & WithRelatedEntityIdentifiers(RelatedEntityIdentifiersT &&value)
void SetRelatedEntityIdentifiers(RelatedEntityIdentifiersT &&value)
AWS_PARTNERCENTRALSELLING_API OpportunitySummaryView()=default
OpportunitySummaryView & WithPrimaryNeedsFromAws(PrimaryNeedsFromAwsT &&value)
AWS_PARTNERCENTRALSELLING_API OpportunitySummaryView(Aws::Utils::Json::JsonView jsonValue)
const RelatedEntityIdentifiers & GetRelatedEntityIdentifiers() const
OpportunitySummaryView & AddOpportunityTeam(OpportunityTeamT &&value)
const Aws::Vector< PrimaryNeedFromAws > & GetPrimaryNeedsFromAws() const
OpportunitySummaryView & WithCustomer(CustomerT &&value)
OpportunitySummaryView & WithOpportunityTeam(OpportunityTeamT &&value)
AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue