AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
PipelineExecutionSummary.h
1
6#pragma once
7#include <aws/codepipeline/CodePipeline_EXPORTS.h>
8#include <aws/codepipeline/model/ExecutionMode.h>
9#include <aws/codepipeline/model/ExecutionTrigger.h>
10#include <aws/codepipeline/model/ExecutionType.h>
11#include <aws/codepipeline/model/PipelineExecutionStatus.h>
12#include <aws/codepipeline/model/PipelineRollbackMetadata.h>
13#include <aws/codepipeline/model/SourceRevision.h>
14#include <aws/codepipeline/model/StopExecutionTrigger.h>
15#include <aws/core/utils/DateTime.h>
16#include <aws/core/utils/memory/stl/AWSString.h>
17#include <aws/core/utils/memory/stl/AWSVector.h>
18
19#include <utility>
20
21namespace Aws {
22namespace Utils {
23namespace Json {
24class JsonValue;
25class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace CodePipeline {
29namespace Model {
30
37 public:
38 AWS_CODEPIPELINE_API PipelineExecutionSummary() = default;
41 AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
47 inline const Aws::String& GetPipelineExecutionId() const { return m_pipelineExecutionId; }
48 inline bool PipelineExecutionIdHasBeenSet() const { return m_pipelineExecutionIdHasBeenSet; }
49 template <typename PipelineExecutionIdT = Aws::String>
50 void SetPipelineExecutionId(PipelineExecutionIdT&& value) {
51 m_pipelineExecutionIdHasBeenSet = true;
52 m_pipelineExecutionId = std::forward<PipelineExecutionIdT>(value);
53 }
54 template <typename PipelineExecutionIdT = Aws::String>
55 PipelineExecutionSummary& WithPipelineExecutionId(PipelineExecutionIdT&& value) {
56 SetPipelineExecutionId(std::forward<PipelineExecutionIdT>(value));
57 return *this;
58 }
60
62
81 inline PipelineExecutionStatus GetStatus() const { return m_status; }
82 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
84 m_statusHasBeenSet = true;
85 m_status = value;
86 }
88 SetStatus(value);
89 return *this;
90 }
92
94
97 inline const Aws::String& GetStatusSummary() const { return m_statusSummary; }
98 inline bool StatusSummaryHasBeenSet() const { return m_statusSummaryHasBeenSet; }
99 template <typename StatusSummaryT = Aws::String>
100 void SetStatusSummary(StatusSummaryT&& value) {
101 m_statusSummaryHasBeenSet = true;
102 m_statusSummary = std::forward<StatusSummaryT>(value);
103 }
104 template <typename StatusSummaryT = Aws::String>
106 SetStatusSummary(std::forward<StatusSummaryT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
116 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
117 template <typename StartTimeT = Aws::Utils::DateTime>
118 void SetStartTime(StartTimeT&& value) {
119 m_startTimeHasBeenSet = true;
120 m_startTime = std::forward<StartTimeT>(value);
121 }
122 template <typename StartTimeT = Aws::Utils::DateTime>
124 SetStartTime(std::forward<StartTimeT>(value));
125 return *this;
126 }
128
130
134 inline const Aws::Utils::DateTime& GetLastUpdateTime() const { return m_lastUpdateTime; }
135 inline bool LastUpdateTimeHasBeenSet() const { return m_lastUpdateTimeHasBeenSet; }
136 template <typename LastUpdateTimeT = Aws::Utils::DateTime>
137 void SetLastUpdateTime(LastUpdateTimeT&& value) {
138 m_lastUpdateTimeHasBeenSet = true;
139 m_lastUpdateTime = std::forward<LastUpdateTimeT>(value);
140 }
141 template <typename LastUpdateTimeT = Aws::Utils::DateTime>
143 SetLastUpdateTime(std::forward<LastUpdateTimeT>(value));
144 return *this;
145 }
147
149
153 inline const Aws::Vector<SourceRevision>& GetSourceRevisions() const { return m_sourceRevisions; }
154 inline bool SourceRevisionsHasBeenSet() const { return m_sourceRevisionsHasBeenSet; }
155 template <typename SourceRevisionsT = Aws::Vector<SourceRevision>>
156 void SetSourceRevisions(SourceRevisionsT&& value) {
157 m_sourceRevisionsHasBeenSet = true;
158 m_sourceRevisions = std::forward<SourceRevisionsT>(value);
159 }
160 template <typename SourceRevisionsT = Aws::Vector<SourceRevision>>
162 SetSourceRevisions(std::forward<SourceRevisionsT>(value));
163 return *this;
164 }
165 template <typename SourceRevisionsT = SourceRevision>
166 PipelineExecutionSummary& AddSourceRevisions(SourceRevisionsT&& value) {
167 m_sourceRevisionsHasBeenSet = true;
168 m_sourceRevisions.emplace_back(std::forward<SourceRevisionsT>(value));
169 return *this;
170 }
172
174
178 inline const ExecutionTrigger& GetTrigger() const { return m_trigger; }
179 inline bool TriggerHasBeenSet() const { return m_triggerHasBeenSet; }
180 template <typename TriggerT = ExecutionTrigger>
181 void SetTrigger(TriggerT&& value) {
182 m_triggerHasBeenSet = true;
183 m_trigger = std::forward<TriggerT>(value);
184 }
185 template <typename TriggerT = ExecutionTrigger>
187 SetTrigger(std::forward<TriggerT>(value));
188 return *this;
189 }
191
193
196 inline const StopExecutionTrigger& GetStopTrigger() const { return m_stopTrigger; }
197 inline bool StopTriggerHasBeenSet() const { return m_stopTriggerHasBeenSet; }
198 template <typename StopTriggerT = StopExecutionTrigger>
199 void SetStopTrigger(StopTriggerT&& value) {
200 m_stopTriggerHasBeenSet = true;
201 m_stopTrigger = std::forward<StopTriggerT>(value);
202 }
203 template <typename StopTriggerT = StopExecutionTrigger>
205 SetStopTrigger(std::forward<StopTriggerT>(value));
206 return *this;
207 }
209
211
215 inline ExecutionMode GetExecutionMode() const { return m_executionMode; }
216 inline bool ExecutionModeHasBeenSet() const { return m_executionModeHasBeenSet; }
217 inline void SetExecutionMode(ExecutionMode value) {
218 m_executionModeHasBeenSet = true;
219 m_executionMode = value;
220 }
222 SetExecutionMode(value);
223 return *this;
224 }
226
228
231 inline ExecutionType GetExecutionType() const { return m_executionType; }
232 inline bool ExecutionTypeHasBeenSet() const { return m_executionTypeHasBeenSet; }
233 inline void SetExecutionType(ExecutionType value) {
234 m_executionTypeHasBeenSet = true;
235 m_executionType = value;
236 }
238 SetExecutionType(value);
239 return *this;
240 }
242
244
247 inline const PipelineRollbackMetadata& GetRollbackMetadata() const { return m_rollbackMetadata; }
248 inline bool RollbackMetadataHasBeenSet() const { return m_rollbackMetadataHasBeenSet; }
249 template <typename RollbackMetadataT = PipelineRollbackMetadata>
250 void SetRollbackMetadata(RollbackMetadataT&& value) {
251 m_rollbackMetadataHasBeenSet = true;
252 m_rollbackMetadata = std::forward<RollbackMetadataT>(value);
253 }
254 template <typename RollbackMetadataT = PipelineRollbackMetadata>
255 PipelineExecutionSummary& WithRollbackMetadata(RollbackMetadataT&& value) {
256 SetRollbackMetadata(std::forward<RollbackMetadataT>(value));
257 return *this;
258 }
260 private:
261 Aws::String m_pipelineExecutionId;
262
264
265 Aws::String m_statusSummary;
266
267 Aws::Utils::DateTime m_startTime{};
268
269 Aws::Utils::DateTime m_lastUpdateTime{};
270
271 Aws::Vector<SourceRevision> m_sourceRevisions;
272
273 ExecutionTrigger m_trigger;
274
275 StopExecutionTrigger m_stopTrigger;
276
277 ExecutionMode m_executionMode{ExecutionMode::NOT_SET};
278
279 ExecutionType m_executionType{ExecutionType::NOT_SET};
280
281 PipelineRollbackMetadata m_rollbackMetadata;
282 bool m_pipelineExecutionIdHasBeenSet = false;
283 bool m_statusHasBeenSet = false;
284 bool m_statusSummaryHasBeenSet = false;
285 bool m_startTimeHasBeenSet = false;
286 bool m_lastUpdateTimeHasBeenSet = false;
287 bool m_sourceRevisionsHasBeenSet = false;
288 bool m_triggerHasBeenSet = false;
289 bool m_stopTriggerHasBeenSet = false;
290 bool m_executionModeHasBeenSet = false;
291 bool m_executionTypeHasBeenSet = false;
292 bool m_rollbackMetadataHasBeenSet = false;
293};
294
295} // namespace Model
296} // namespace CodePipeline
297} // namespace Aws
AWS_CODEPIPELINE_API PipelineExecutionSummary()=default
PipelineExecutionSummary & WithStatusSummary(StatusSummaryT &&value)
AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const
PipelineExecutionSummary & WithStopTrigger(StopTriggerT &&value)
PipelineExecutionSummary & WithExecutionMode(ExecutionMode value)
AWS_CODEPIPELINE_API PipelineExecutionSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
PipelineExecutionSummary & WithTrigger(TriggerT &&value)
PipelineExecutionSummary & WithSourceRevisions(SourceRevisionsT &&value)
PipelineExecutionSummary & WithExecutionType(ExecutionType value)
PipelineExecutionSummary & WithStartTime(StartTimeT &&value)
PipelineExecutionSummary & AddSourceRevisions(SourceRevisionsT &&value)
PipelineExecutionSummary & WithPipelineExecutionId(PipelineExecutionIdT &&value)
const Aws::Vector< SourceRevision > & GetSourceRevisions() const
PipelineExecutionSummary & WithLastUpdateTime(LastUpdateTimeT &&value)
PipelineExecutionSummary & WithRollbackMetadata(RollbackMetadataT &&value)
PipelineExecutionSummary & WithStatus(PipelineExecutionStatus value)
const PipelineRollbackMetadata & GetRollbackMetadata() const
AWS_CODEPIPELINE_API PipelineExecutionSummary(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue