AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
OpportunitySummaryView.h
1
6#pragma once
7#include <aws/partnercentral-selling/PartnerCentralSelling_EXPORTS.h>
8#include <aws/partnercentral-selling/model/Customer.h>
9#include <aws/partnercentral-selling/model/LifeCycleForView.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/partnercentral-selling/model/OpportunityType.h>
12#include <aws/partnercentral-selling/model/ProjectView.h>
13#include <aws/partnercentral-selling/model/RelatedEntityIdentifiers.h>
14#include <aws/partnercentral-selling/model/Contact.h>
15#include <aws/partnercentral-selling/model/PrimaryNeedFromAws.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace PartnerCentralSelling
29{
30namespace Model
31{
32
41 {
42 public:
43 AWS_PARTNERCENTRALSELLING_API OpportunitySummaryView() = default;
44 AWS_PARTNERCENTRALSELLING_API OpportunitySummaryView(Aws::Utils::Json::JsonView jsonValue);
45 AWS_PARTNERCENTRALSELLING_API OpportunitySummaryView& operator=(Aws::Utils::Json::JsonView jsonValue);
46 AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
51 inline const Customer& GetCustomer() const { return m_customer; }
52 inline bool CustomerHasBeenSet() const { return m_customerHasBeenSet; }
53 template<typename CustomerT = Customer>
54 void SetCustomer(CustomerT&& value) { m_customerHasBeenSet = true; m_customer = std::forward<CustomerT>(value); }
55 template<typename CustomerT = Customer>
56 OpportunitySummaryView& WithCustomer(CustomerT&& value) { SetCustomer(std::forward<CustomerT>(value)); return *this;}
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) { m_lifecycleHasBeenSet = true; m_lifecycle = std::forward<LifecycleT>(value); }
69 template<typename LifecycleT = LifeCycleForView>
70 OpportunitySummaryView& WithLifecycle(LifecycleT&& value) { SetLifecycle(std::forward<LifecycleT>(value)); return *this;}
72
74
79 inline const Aws::Vector<Contact>& GetOpportunityTeam() const { return m_opportunityTeam; }
80 inline bool OpportunityTeamHasBeenSet() const { return m_opportunityTeamHasBeenSet; }
81 template<typename OpportunityTeamT = Aws::Vector<Contact>>
82 void SetOpportunityTeam(OpportunityTeamT&& value) { m_opportunityTeamHasBeenSet = true; m_opportunityTeam = std::forward<OpportunityTeamT>(value); }
83 template<typename OpportunityTeamT = Aws::Vector<Contact>>
84 OpportunitySummaryView& WithOpportunityTeam(OpportunityTeamT&& value) { SetOpportunityTeam(std::forward<OpportunityTeamT>(value)); return *this;}
85 template<typename OpportunityTeamT = Contact>
86 OpportunitySummaryView& AddOpportunityTeam(OpportunityTeamT&& value) { m_opportunityTeamHasBeenSet = true; m_opportunityTeam.emplace_back(std::forward<OpportunityTeamT>(value)); return *this; }
88
90
93 inline OpportunityType GetOpportunityType() const { return m_opportunityType; }
94 inline bool OpportunityTypeHasBeenSet() const { return m_opportunityTypeHasBeenSet; }
95 inline void SetOpportunityType(OpportunityType value) { m_opportunityTypeHasBeenSet = true; m_opportunityType = value; }
98
100
103 inline const Aws::Vector<PrimaryNeedFromAws>& GetPrimaryNeedsFromAws() const { return m_primaryNeedsFromAws; }
104 inline bool PrimaryNeedsFromAwsHasBeenSet() const { return m_primaryNeedsFromAwsHasBeenSet; }
105 template<typename PrimaryNeedsFromAwsT = Aws::Vector<PrimaryNeedFromAws>>
106 void SetPrimaryNeedsFromAws(PrimaryNeedsFromAwsT&& value) { m_primaryNeedsFromAwsHasBeenSet = true; m_primaryNeedsFromAws = std::forward<PrimaryNeedsFromAwsT>(value); }
107 template<typename PrimaryNeedsFromAwsT = Aws::Vector<PrimaryNeedFromAws>>
108 OpportunitySummaryView& WithPrimaryNeedsFromAws(PrimaryNeedsFromAwsT&& value) { SetPrimaryNeedsFromAws(std::forward<PrimaryNeedsFromAwsT>(value)); return *this;}
109 inline OpportunitySummaryView& AddPrimaryNeedsFromAws(PrimaryNeedFromAws value) { m_primaryNeedsFromAwsHasBeenSet = true; m_primaryNeedsFromAws.push_back(value); return *this; }
111
113
118 inline const ProjectView& GetProject() const { return m_project; }
119 inline bool ProjectHasBeenSet() const { return m_projectHasBeenSet; }
120 template<typename ProjectT = ProjectView>
121 void SetProject(ProjectT&& value) { m_projectHasBeenSet = true; m_project = std::forward<ProjectT>(value); }
122 template<typename ProjectT = ProjectView>
123 OpportunitySummaryView& WithProject(ProjectT&& value) { SetProject(std::forward<ProjectT>(value)); return *this;}
125
127
128 inline const RelatedEntityIdentifiers& GetRelatedEntityIdentifiers() const { return m_relatedEntityIdentifiers; }
129 inline bool RelatedEntityIdentifiersHasBeenSet() const { return m_relatedEntityIdentifiersHasBeenSet; }
130 template<typename RelatedEntityIdentifiersT = RelatedEntityIdentifiers>
131 void SetRelatedEntityIdentifiers(RelatedEntityIdentifiersT&& value) { m_relatedEntityIdentifiersHasBeenSet = true; m_relatedEntityIdentifiers = std::forward<RelatedEntityIdentifiersT>(value); }
132 template<typename RelatedEntityIdentifiersT = RelatedEntityIdentifiers>
133 OpportunitySummaryView& WithRelatedEntityIdentifiers(RelatedEntityIdentifiersT&& value) { SetRelatedEntityIdentifiers(std::forward<RelatedEntityIdentifiersT>(value)); return *this;}
135 private:
136
137 Customer m_customer;
138 bool m_customerHasBeenSet = false;
139
140 LifeCycleForView m_lifecycle;
141 bool m_lifecycleHasBeenSet = false;
142
143 Aws::Vector<Contact> m_opportunityTeam;
144 bool m_opportunityTeamHasBeenSet = false;
145
146 OpportunityType m_opportunityType{OpportunityType::NOT_SET};
147 bool m_opportunityTypeHasBeenSet = false;
148
149 Aws::Vector<PrimaryNeedFromAws> m_primaryNeedsFromAws;
150 bool m_primaryNeedsFromAwsHasBeenSet = false;
151
152 ProjectView m_project;
153 bool m_projectHasBeenSet = false;
154
155 RelatedEntityIdentifiers m_relatedEntityIdentifiers;
156 bool m_relatedEntityIdentifiersHasBeenSet = false;
157 };
158
159} // namespace Model
160} // namespace PartnerCentralSelling
161} // 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