AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
PipelineExecutionSummary.h
1
6#pragma once
7#include <aws/codepipeline/CodePipeline_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/codepipeline/model/PipelineExecutionStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/codepipeline/model/ExecutionTrigger.h>
13#include <aws/codepipeline/model/StopExecutionTrigger.h>
14#include <aws/codepipeline/model/ExecutionMode.h>
15#include <aws/codepipeline/model/ExecutionType.h>
16#include <aws/codepipeline/model/PipelineRollbackMetadata.h>
17#include <aws/codepipeline/model/SourceRevision.h>
18#include <utility>
19
20namespace Aws
21{
22namespace Utils
23{
24namespace Json
25{
26 class JsonValue;
27 class JsonView;
28} // namespace Json
29} // namespace Utils
30namespace CodePipeline
31{
32namespace Model
33{
34
41 {
42 public:
43 AWS_CODEPIPELINE_API PipelineExecutionSummary() = default;
46 AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
53 inline const Aws::String& GetPipelineExecutionId() const { return m_pipelineExecutionId; }
54 inline bool PipelineExecutionIdHasBeenSet() const { return m_pipelineExecutionIdHasBeenSet; }
55 template<typename PipelineExecutionIdT = Aws::String>
56 void SetPipelineExecutionId(PipelineExecutionIdT&& value) { m_pipelineExecutionIdHasBeenSet = true; m_pipelineExecutionId = std::forward<PipelineExecutionIdT>(value); }
57 template<typename PipelineExecutionIdT = Aws::String>
58 PipelineExecutionSummary& WithPipelineExecutionId(PipelineExecutionIdT&& value) { SetPipelineExecutionId(std::forward<PipelineExecutionIdT>(value)); return *this;}
60
62
81 inline PipelineExecutionStatus GetStatus() const { return m_status; }
82 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
83 inline void SetStatus(PipelineExecutionStatus value) { m_statusHasBeenSet = true; m_status = value; }
86
88
91 inline const Aws::String& GetStatusSummary() const { return m_statusSummary; }
92 inline bool StatusSummaryHasBeenSet() const { return m_statusSummaryHasBeenSet; }
93 template<typename StatusSummaryT = Aws::String>
94 void SetStatusSummary(StatusSummaryT&& value) { m_statusSummaryHasBeenSet = true; m_statusSummary = std::forward<StatusSummaryT>(value); }
95 template<typename StatusSummaryT = Aws::String>
96 PipelineExecutionSummary& WithStatusSummary(StatusSummaryT&& value) { SetStatusSummary(std::forward<StatusSummaryT>(value)); return *this;}
98
100
103 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
104 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
105 template<typename StartTimeT = Aws::Utils::DateTime>
106 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
107 template<typename StartTimeT = Aws::Utils::DateTime>
108 PipelineExecutionSummary& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
110
112
116 inline const Aws::Utils::DateTime& GetLastUpdateTime() const { return m_lastUpdateTime; }
117 inline bool LastUpdateTimeHasBeenSet() const { return m_lastUpdateTimeHasBeenSet; }
118 template<typename LastUpdateTimeT = Aws::Utils::DateTime>
119 void SetLastUpdateTime(LastUpdateTimeT&& value) { m_lastUpdateTimeHasBeenSet = true; m_lastUpdateTime = std::forward<LastUpdateTimeT>(value); }
120 template<typename LastUpdateTimeT = Aws::Utils::DateTime>
121 PipelineExecutionSummary& WithLastUpdateTime(LastUpdateTimeT&& value) { SetLastUpdateTime(std::forward<LastUpdateTimeT>(value)); return *this;}
123
125
129 inline const Aws::Vector<SourceRevision>& GetSourceRevisions() const { return m_sourceRevisions; }
130 inline bool SourceRevisionsHasBeenSet() const { return m_sourceRevisionsHasBeenSet; }
131 template<typename SourceRevisionsT = Aws::Vector<SourceRevision>>
132 void SetSourceRevisions(SourceRevisionsT&& value) { m_sourceRevisionsHasBeenSet = true; m_sourceRevisions = std::forward<SourceRevisionsT>(value); }
133 template<typename SourceRevisionsT = Aws::Vector<SourceRevision>>
134 PipelineExecutionSummary& WithSourceRevisions(SourceRevisionsT&& value) { SetSourceRevisions(std::forward<SourceRevisionsT>(value)); return *this;}
135 template<typename SourceRevisionsT = SourceRevision>
136 PipelineExecutionSummary& AddSourceRevisions(SourceRevisionsT&& value) { m_sourceRevisionsHasBeenSet = true; m_sourceRevisions.emplace_back(std::forward<SourceRevisionsT>(value)); return *this; }
138
140
144 inline const ExecutionTrigger& GetTrigger() const { return m_trigger; }
145 inline bool TriggerHasBeenSet() const { return m_triggerHasBeenSet; }
146 template<typename TriggerT = ExecutionTrigger>
147 void SetTrigger(TriggerT&& value) { m_triggerHasBeenSet = true; m_trigger = std::forward<TriggerT>(value); }
148 template<typename TriggerT = ExecutionTrigger>
149 PipelineExecutionSummary& WithTrigger(TriggerT&& value) { SetTrigger(std::forward<TriggerT>(value)); return *this;}
151
153
156 inline const StopExecutionTrigger& GetStopTrigger() const { return m_stopTrigger; }
157 inline bool StopTriggerHasBeenSet() const { return m_stopTriggerHasBeenSet; }
158 template<typename StopTriggerT = StopExecutionTrigger>
159 void SetStopTrigger(StopTriggerT&& value) { m_stopTriggerHasBeenSet = true; m_stopTrigger = std::forward<StopTriggerT>(value); }
160 template<typename StopTriggerT = StopExecutionTrigger>
161 PipelineExecutionSummary& WithStopTrigger(StopTriggerT&& value) { SetStopTrigger(std::forward<StopTriggerT>(value)); return *this;}
163
165
169 inline ExecutionMode GetExecutionMode() const { return m_executionMode; }
170 inline bool ExecutionModeHasBeenSet() const { return m_executionModeHasBeenSet; }
171 inline void SetExecutionMode(ExecutionMode value) { m_executionModeHasBeenSet = true; m_executionMode = value; }
174
176
179 inline ExecutionType GetExecutionType() const { return m_executionType; }
180 inline bool ExecutionTypeHasBeenSet() const { return m_executionTypeHasBeenSet; }
181 inline void SetExecutionType(ExecutionType value) { m_executionTypeHasBeenSet = true; m_executionType = value; }
184
186
189 inline const PipelineRollbackMetadata& GetRollbackMetadata() const { return m_rollbackMetadata; }
190 inline bool RollbackMetadataHasBeenSet() const { return m_rollbackMetadataHasBeenSet; }
191 template<typename RollbackMetadataT = PipelineRollbackMetadata>
192 void SetRollbackMetadata(RollbackMetadataT&& value) { m_rollbackMetadataHasBeenSet = true; m_rollbackMetadata = std::forward<RollbackMetadataT>(value); }
193 template<typename RollbackMetadataT = PipelineRollbackMetadata>
194 PipelineExecutionSummary& WithRollbackMetadata(RollbackMetadataT&& value) { SetRollbackMetadata(std::forward<RollbackMetadataT>(value)); return *this;}
196 private:
197
198 Aws::String m_pipelineExecutionId;
199 bool m_pipelineExecutionIdHasBeenSet = false;
200
202 bool m_statusHasBeenSet = false;
203
204 Aws::String m_statusSummary;
205 bool m_statusSummaryHasBeenSet = false;
206
207 Aws::Utils::DateTime m_startTime{};
208 bool m_startTimeHasBeenSet = false;
209
210 Aws::Utils::DateTime m_lastUpdateTime{};
211 bool m_lastUpdateTimeHasBeenSet = false;
212
213 Aws::Vector<SourceRevision> m_sourceRevisions;
214 bool m_sourceRevisionsHasBeenSet = false;
215
216 ExecutionTrigger m_trigger;
217 bool m_triggerHasBeenSet = false;
218
219 StopExecutionTrigger m_stopTrigger;
220 bool m_stopTriggerHasBeenSet = false;
221
222 ExecutionMode m_executionMode{ExecutionMode::NOT_SET};
223 bool m_executionModeHasBeenSet = false;
224
225 ExecutionType m_executionType{ExecutionType::NOT_SET};
226 bool m_executionTypeHasBeenSet = false;
227
228 PipelineRollbackMetadata m_rollbackMetadata;
229 bool m_rollbackMetadataHasBeenSet = false;
230 };
231
232} // namespace Model
233} // namespace CodePipeline
234} // 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