AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
AwsOpportunityLifeCycle.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/partnercentral-selling/PartnerCentralSelling_EXPORTS.h>
10#include <aws/partnercentral-selling/model/AwsClosedLostReason.h>
11#include <aws/partnercentral-selling/model/AwsOpportunityStage.h>
12#include <aws/partnercentral-selling/model/ProfileNextStepsHistory.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace PartnerCentralSelling {
24namespace Model {
25
34 public:
35 AWS_PARTNERCENTRALSELLING_API AwsOpportunityLifeCycle() = default;
36 AWS_PARTNERCENTRALSELLING_API AwsOpportunityLifeCycle(Aws::Utils::Json::JsonView jsonValue);
37 AWS_PARTNERCENTRALSELLING_API AwsOpportunityLifeCycle& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
46 inline const Aws::String& GetTargetCloseDate() const { return m_targetCloseDate; }
47 inline bool TargetCloseDateHasBeenSet() const { return m_targetCloseDateHasBeenSet; }
48 template <typename TargetCloseDateT = Aws::String>
49 void SetTargetCloseDate(TargetCloseDateT&& value) {
50 m_targetCloseDateHasBeenSet = true;
51 m_targetCloseDate = std::forward<TargetCloseDateT>(value);
52 }
53 template <typename TargetCloseDateT = Aws::String>
54 AwsOpportunityLifeCycle& WithTargetCloseDate(TargetCloseDateT&& value) {
55 SetTargetCloseDate(std::forward<TargetCloseDateT>(value));
56 return *this;
57 }
59
61
66 inline AwsClosedLostReason GetClosedLostReason() const { return m_closedLostReason; }
67 inline bool ClosedLostReasonHasBeenSet() const { return m_closedLostReasonHasBeenSet; }
69 m_closedLostReasonHasBeenSet = true;
70 m_closedLostReason = value;
71 }
74 return *this;
75 }
77
79
84 inline AwsOpportunityStage GetStage() const { return m_stage; }
85 inline bool StageHasBeenSet() const { return m_stageHasBeenSet; }
86 inline void SetStage(AwsOpportunityStage value) {
87 m_stageHasBeenSet = true;
88 m_stage = value;
89 }
91 SetStage(value);
92 return *this;
93 }
95
97
102 inline const Aws::String& GetNextSteps() const { return m_nextSteps; }
103 inline bool NextStepsHasBeenSet() const { return m_nextStepsHasBeenSet; }
104 template <typename NextStepsT = Aws::String>
105 void SetNextSteps(NextStepsT&& value) {
106 m_nextStepsHasBeenSet = true;
107 m_nextSteps = std::forward<NextStepsT>(value);
108 }
109 template <typename NextStepsT = Aws::String>
111 SetNextSteps(std::forward<NextStepsT>(value));
112 return *this;
113 }
115
117
122 inline const Aws::Vector<ProfileNextStepsHistory>& GetNextStepsHistory() const { return m_nextStepsHistory; }
123 inline bool NextStepsHistoryHasBeenSet() const { return m_nextStepsHistoryHasBeenSet; }
124 template <typename NextStepsHistoryT = Aws::Vector<ProfileNextStepsHistory>>
125 void SetNextStepsHistory(NextStepsHistoryT&& value) {
126 m_nextStepsHistoryHasBeenSet = true;
127 m_nextStepsHistory = std::forward<NextStepsHistoryT>(value);
128 }
129 template <typename NextStepsHistoryT = Aws::Vector<ProfileNextStepsHistory>>
130 AwsOpportunityLifeCycle& WithNextStepsHistory(NextStepsHistoryT&& value) {
131 SetNextStepsHistory(std::forward<NextStepsHistoryT>(value));
132 return *this;
133 }
134 template <typename NextStepsHistoryT = ProfileNextStepsHistory>
135 AwsOpportunityLifeCycle& AddNextStepsHistory(NextStepsHistoryT&& value) {
136 m_nextStepsHistoryHasBeenSet = true;
137 m_nextStepsHistory.emplace_back(std::forward<NextStepsHistoryT>(value));
138 return *this;
139 }
141 private:
142 Aws::String m_targetCloseDate;
143
145
147
148 Aws::String m_nextSteps;
149
150 Aws::Vector<ProfileNextStepsHistory> m_nextStepsHistory;
151 bool m_targetCloseDateHasBeenSet = false;
152 bool m_closedLostReasonHasBeenSet = false;
153 bool m_stageHasBeenSet = false;
154 bool m_nextStepsHasBeenSet = false;
155 bool m_nextStepsHistoryHasBeenSet = false;
156};
157
158} // namespace Model
159} // namespace PartnerCentralSelling
160} // namespace Aws
AwsOpportunityLifeCycle & WithClosedLostReason(AwsClosedLostReason value)
AwsOpportunityLifeCycle & WithNextSteps(NextStepsT &&value)
AwsOpportunityLifeCycle & WithTargetCloseDate(TargetCloseDateT &&value)
AwsOpportunityLifeCycle & WithNextStepsHistory(NextStepsHistoryT &&value)
AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PARTNERCENTRALSELLING_API AwsOpportunityLifeCycle()=default
const Aws::Vector< ProfileNextStepsHistory > & GetNextStepsHistory() const
AwsOpportunityLifeCycle & AddNextStepsHistory(NextStepsHistoryT &&value)
AWS_PARTNERCENTRALSELLING_API AwsOpportunityLifeCycle(Aws::Utils::Json::JsonView jsonValue)
AWS_PARTNERCENTRALSELLING_API AwsOpportunityLifeCycle & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsOpportunityLifeCycle & WithStage(AwsOpportunityStage 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