AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
LifeCycle.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/ClosedLostReason.h>
11#include <aws/partnercentral-selling/model/NextStepsHistory.h>
12#include <aws/partnercentral-selling/model/ReviewStatus.h>
13#include <aws/partnercentral-selling/model/Stage.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
33class LifeCycle {
34 public:
35 AWS_PARTNERCENTRALSELLING_API LifeCycle() = default;
36 AWS_PARTNERCENTRALSELLING_API LifeCycle(Aws::Utils::Json::JsonView jsonValue);
37 AWS_PARTNERCENTRALSELLING_API LifeCycle& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
64 inline Stage GetStage() const { return m_stage; }
65 inline bool StageHasBeenSet() const { return m_stageHasBeenSet; }
66 inline void SetStage(Stage value) {
67 m_stageHasBeenSet = true;
68 m_stage = value;
69 }
70 inline LifeCycle& WithStage(Stage value) {
71 SetStage(value);
72 return *this;
73 }
75
77
106 inline ClosedLostReason GetClosedLostReason() const { return m_closedLostReason; }
107 inline bool ClosedLostReasonHasBeenSet() const { return m_closedLostReasonHasBeenSet; }
109 m_closedLostReasonHasBeenSet = true;
110 m_closedLostReason = value;
111 }
113 SetClosedLostReason(value);
114 return *this;
115 }
117
119
124 inline const Aws::String& GetNextSteps() const { return m_nextSteps; }
125 inline bool NextStepsHasBeenSet() const { return m_nextStepsHasBeenSet; }
126 template <typename NextStepsT = Aws::String>
127 void SetNextSteps(NextStepsT&& value) {
128 m_nextStepsHasBeenSet = true;
129 m_nextSteps = std::forward<NextStepsT>(value);
130 }
131 template <typename NextStepsT = Aws::String>
132 LifeCycle& WithNextSteps(NextStepsT&& value) {
133 SetNextSteps(std::forward<NextStepsT>(value));
134 return *this;
135 }
137
139
146 inline const Aws::String& GetTargetCloseDate() const { return m_targetCloseDate; }
147 inline bool TargetCloseDateHasBeenSet() const { return m_targetCloseDateHasBeenSet; }
148 template <typename TargetCloseDateT = Aws::String>
149 void SetTargetCloseDate(TargetCloseDateT&& value) {
150 m_targetCloseDateHasBeenSet = true;
151 m_targetCloseDate = std::forward<TargetCloseDateT>(value);
152 }
153 template <typename TargetCloseDateT = Aws::String>
154 LifeCycle& WithTargetCloseDate(TargetCloseDateT&& value) {
155 SetTargetCloseDate(std::forward<TargetCloseDateT>(value));
156 return *this;
157 }
159
161
189 inline ReviewStatus GetReviewStatus() const { return m_reviewStatus; }
190 inline bool ReviewStatusHasBeenSet() const { return m_reviewStatusHasBeenSet; }
191 inline void SetReviewStatus(ReviewStatus value) {
192 m_reviewStatusHasBeenSet = true;
193 m_reviewStatus = value;
194 }
196 SetReviewStatus(value);
197 return *this;
198 }
200
202
208 inline const Aws::String& GetReviewComments() const { return m_reviewComments; }
209 inline bool ReviewCommentsHasBeenSet() const { return m_reviewCommentsHasBeenSet; }
210 template <typename ReviewCommentsT = Aws::String>
211 void SetReviewComments(ReviewCommentsT&& value) {
212 m_reviewCommentsHasBeenSet = true;
213 m_reviewComments = std::forward<ReviewCommentsT>(value);
214 }
215 template <typename ReviewCommentsT = Aws::String>
216 LifeCycle& WithReviewComments(ReviewCommentsT&& value) {
217 SetReviewComments(std::forward<ReviewCommentsT>(value));
218 return *this;
219 }
221
223
230 inline const Aws::String& GetReviewStatusReason() const { return m_reviewStatusReason; }
231 inline bool ReviewStatusReasonHasBeenSet() const { return m_reviewStatusReasonHasBeenSet; }
232 template <typename ReviewStatusReasonT = Aws::String>
233 void SetReviewStatusReason(ReviewStatusReasonT&& value) {
234 m_reviewStatusReasonHasBeenSet = true;
235 m_reviewStatusReason = std::forward<ReviewStatusReasonT>(value);
236 }
237 template <typename ReviewStatusReasonT = Aws::String>
238 LifeCycle& WithReviewStatusReason(ReviewStatusReasonT&& value) {
239 SetReviewStatusReason(std::forward<ReviewStatusReasonT>(value));
240 return *this;
241 }
243
245
249 inline const Aws::Vector<NextStepsHistory>& GetNextStepsHistory() const { return m_nextStepsHistory; }
250 inline bool NextStepsHistoryHasBeenSet() const { return m_nextStepsHistoryHasBeenSet; }
251 template <typename NextStepsHistoryT = Aws::Vector<NextStepsHistory>>
252 void SetNextStepsHistory(NextStepsHistoryT&& value) {
253 m_nextStepsHistoryHasBeenSet = true;
254 m_nextStepsHistory = std::forward<NextStepsHistoryT>(value);
255 }
256 template <typename NextStepsHistoryT = Aws::Vector<NextStepsHistory>>
257 LifeCycle& WithNextStepsHistory(NextStepsHistoryT&& value) {
258 SetNextStepsHistory(std::forward<NextStepsHistoryT>(value));
259 return *this;
260 }
261 template <typename NextStepsHistoryT = NextStepsHistory>
262 LifeCycle& AddNextStepsHistory(NextStepsHistoryT&& value) {
263 m_nextStepsHistoryHasBeenSet = true;
264 m_nextStepsHistory.emplace_back(std::forward<NextStepsHistoryT>(value));
265 return *this;
266 }
268 private:
269 Stage m_stage{Stage::NOT_SET};
270
272
273 Aws::String m_nextSteps;
274
275 Aws::String m_targetCloseDate;
276
277 ReviewStatus m_reviewStatus{ReviewStatus::NOT_SET};
278
279 Aws::String m_reviewComments;
280
281 Aws::String m_reviewStatusReason;
282
283 Aws::Vector<NextStepsHistory> m_nextStepsHistory;
284 bool m_stageHasBeenSet = false;
285 bool m_closedLostReasonHasBeenSet = false;
286 bool m_nextStepsHasBeenSet = false;
287 bool m_targetCloseDateHasBeenSet = false;
288 bool m_reviewStatusHasBeenSet = false;
289 bool m_reviewCommentsHasBeenSet = false;
290 bool m_reviewStatusReasonHasBeenSet = false;
291 bool m_nextStepsHistoryHasBeenSet = false;
292};
293
294} // namespace Model
295} // namespace PartnerCentralSelling
296} // namespace Aws
AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const
ClosedLostReason GetClosedLostReason() const
Definition LifeCycle.h:106
LifeCycle & WithNextStepsHistory(NextStepsHistoryT &&value)
Definition LifeCycle.h:257
void SetNextStepsHistory(NextStepsHistoryT &&value)
Definition LifeCycle.h:252
LifeCycle & WithReviewComments(ReviewCommentsT &&value)
Definition LifeCycle.h:216
AWS_PARTNERCENTRALSELLING_API LifeCycle(Aws::Utils::Json::JsonView jsonValue)
void SetTargetCloseDate(TargetCloseDateT &&value)
Definition LifeCycle.h:149
LifeCycle & WithReviewStatusReason(ReviewStatusReasonT &&value)
Definition LifeCycle.h:238
const Aws::String & GetReviewStatusReason() const
Definition LifeCycle.h:230
void SetReviewStatusReason(ReviewStatusReasonT &&value)
Definition LifeCycle.h:233
LifeCycle & WithClosedLostReason(ClosedLostReason value)
Definition LifeCycle.h:112
LifeCycle & WithNextSteps(NextStepsT &&value)
Definition LifeCycle.h:132
void SetReviewComments(ReviewCommentsT &&value)
Definition LifeCycle.h:211
void SetClosedLostReason(ClosedLostReason value)
Definition LifeCycle.h:108
const Aws::String & GetReviewComments() const
Definition LifeCycle.h:208
const Aws::Vector< NextStepsHistory > & GetNextStepsHistory() const
Definition LifeCycle.h:249
AWS_PARTNERCENTRALSELLING_API LifeCycle & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetTargetCloseDate() const
Definition LifeCycle.h:146
AWS_PARTNERCENTRALSELLING_API LifeCycle()=default
LifeCycle & WithReviewStatus(ReviewStatus value)
Definition LifeCycle.h:195
LifeCycle & AddNextStepsHistory(NextStepsHistoryT &&value)
Definition LifeCycle.h:262
const Aws::String & GetNextSteps() const
Definition LifeCycle.h:124
void SetReviewStatus(ReviewStatus value)
Definition LifeCycle.h:191
LifeCycle & WithTargetCloseDate(TargetCloseDateT &&value)
Definition LifeCycle.h:154
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue