AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetPipelineExecutionId(const Aws::String& value) { m_pipelineExecutionIdHasBeenSet = true; m_pipelineExecutionId = value; }
56 inline void SetPipelineExecutionId(Aws::String&& value) { m_pipelineExecutionIdHasBeenSet = true; m_pipelineExecutionId = std::move(value); }
57 inline void SetPipelineExecutionId(const char* value) { m_pipelineExecutionIdHasBeenSet = true; m_pipelineExecutionId.assign(value); }
59 inline PipelineExecutionSummary& WithPipelineExecutionId(Aws::String&& value) { SetPipelineExecutionId(std::move(value)); return *this;}
60 inline PipelineExecutionSummary& WithPipelineExecutionId(const char* value) { SetPipelineExecutionId(value); return *this;}
62
64
83 inline const PipelineExecutionStatus& GetStatus() const{ return m_status; }
84 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
85 inline void SetStatus(const PipelineExecutionStatus& value) { m_statusHasBeenSet = true; m_status = value; }
86 inline void SetStatus(PipelineExecutionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
87 inline PipelineExecutionSummary& WithStatus(const PipelineExecutionStatus& value) { SetStatus(value); return *this;}
88 inline PipelineExecutionSummary& WithStatus(PipelineExecutionStatus&& value) { SetStatus(std::move(value)); return *this;}
90
92
95 inline const Aws::String& GetStatusSummary() const{ return m_statusSummary; }
96 inline bool StatusSummaryHasBeenSet() const { return m_statusSummaryHasBeenSet; }
97 inline void SetStatusSummary(const Aws::String& value) { m_statusSummaryHasBeenSet = true; m_statusSummary = value; }
98 inline void SetStatusSummary(Aws::String&& value) { m_statusSummaryHasBeenSet = true; m_statusSummary = std::move(value); }
99 inline void SetStatusSummary(const char* value) { m_statusSummaryHasBeenSet = true; m_statusSummary.assign(value); }
100 inline PipelineExecutionSummary& WithStatusSummary(const Aws::String& value) { SetStatusSummary(value); return *this;}
101 inline PipelineExecutionSummary& WithStatusSummary(Aws::String&& value) { SetStatusSummary(std::move(value)); return *this;}
102 inline PipelineExecutionSummary& WithStatusSummary(const char* value) { SetStatusSummary(value); return *this;}
104
106
109 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
110 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
111 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
112 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
113 inline PipelineExecutionSummary& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
114 inline PipelineExecutionSummary& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
116
118
122 inline const Aws::Utils::DateTime& GetLastUpdateTime() const{ return m_lastUpdateTime; }
123 inline bool LastUpdateTimeHasBeenSet() const { return m_lastUpdateTimeHasBeenSet; }
124 inline void SetLastUpdateTime(const Aws::Utils::DateTime& value) { m_lastUpdateTimeHasBeenSet = true; m_lastUpdateTime = value; }
125 inline void SetLastUpdateTime(Aws::Utils::DateTime&& value) { m_lastUpdateTimeHasBeenSet = true; m_lastUpdateTime = std::move(value); }
127 inline PipelineExecutionSummary& WithLastUpdateTime(Aws::Utils::DateTime&& value) { SetLastUpdateTime(std::move(value)); return *this;}
129
131
135 inline const Aws::Vector<SourceRevision>& GetSourceRevisions() const{ return m_sourceRevisions; }
136 inline bool SourceRevisionsHasBeenSet() const { return m_sourceRevisionsHasBeenSet; }
137 inline void SetSourceRevisions(const Aws::Vector<SourceRevision>& value) { m_sourceRevisionsHasBeenSet = true; m_sourceRevisions = value; }
138 inline void SetSourceRevisions(Aws::Vector<SourceRevision>&& value) { m_sourceRevisionsHasBeenSet = true; m_sourceRevisions = std::move(value); }
141 inline PipelineExecutionSummary& AddSourceRevisions(const SourceRevision& value) { m_sourceRevisionsHasBeenSet = true; m_sourceRevisions.push_back(value); return *this; }
142 inline PipelineExecutionSummary& AddSourceRevisions(SourceRevision&& value) { m_sourceRevisionsHasBeenSet = true; m_sourceRevisions.push_back(std::move(value)); return *this; }
144
146
150 inline const ExecutionTrigger& GetTrigger() const{ return m_trigger; }
151 inline bool TriggerHasBeenSet() const { return m_triggerHasBeenSet; }
152 inline void SetTrigger(const ExecutionTrigger& value) { m_triggerHasBeenSet = true; m_trigger = value; }
153 inline void SetTrigger(ExecutionTrigger&& value) { m_triggerHasBeenSet = true; m_trigger = std::move(value); }
154 inline PipelineExecutionSummary& WithTrigger(const ExecutionTrigger& value) { SetTrigger(value); return *this;}
155 inline PipelineExecutionSummary& WithTrigger(ExecutionTrigger&& value) { SetTrigger(std::move(value)); return *this;}
157
159
162 inline const StopExecutionTrigger& GetStopTrigger() const{ return m_stopTrigger; }
163 inline bool StopTriggerHasBeenSet() const { return m_stopTriggerHasBeenSet; }
164 inline void SetStopTrigger(const StopExecutionTrigger& value) { m_stopTriggerHasBeenSet = true; m_stopTrigger = value; }
165 inline void SetStopTrigger(StopExecutionTrigger&& value) { m_stopTriggerHasBeenSet = true; m_stopTrigger = std::move(value); }
167 inline PipelineExecutionSummary& WithStopTrigger(StopExecutionTrigger&& value) { SetStopTrigger(std::move(value)); return *this;}
169
171
175 inline const ExecutionMode& GetExecutionMode() const{ return m_executionMode; }
176 inline bool ExecutionModeHasBeenSet() const { return m_executionModeHasBeenSet; }
177 inline void SetExecutionMode(const ExecutionMode& value) { m_executionModeHasBeenSet = true; m_executionMode = value; }
178 inline void SetExecutionMode(ExecutionMode&& value) { m_executionModeHasBeenSet = true; m_executionMode = std::move(value); }
179 inline PipelineExecutionSummary& WithExecutionMode(const ExecutionMode& value) { SetExecutionMode(value); return *this;}
180 inline PipelineExecutionSummary& WithExecutionMode(ExecutionMode&& value) { SetExecutionMode(std::move(value)); return *this;}
182
184
187 inline const ExecutionType& GetExecutionType() const{ return m_executionType; }
188 inline bool ExecutionTypeHasBeenSet() const { return m_executionTypeHasBeenSet; }
189 inline void SetExecutionType(const ExecutionType& value) { m_executionTypeHasBeenSet = true; m_executionType = value; }
190 inline void SetExecutionType(ExecutionType&& value) { m_executionTypeHasBeenSet = true; m_executionType = std::move(value); }
191 inline PipelineExecutionSummary& WithExecutionType(const ExecutionType& value) { SetExecutionType(value); return *this;}
192 inline PipelineExecutionSummary& WithExecutionType(ExecutionType&& value) { SetExecutionType(std::move(value)); return *this;}
194
196
199 inline const PipelineRollbackMetadata& GetRollbackMetadata() const{ return m_rollbackMetadata; }
200 inline bool RollbackMetadataHasBeenSet() const { return m_rollbackMetadataHasBeenSet; }
201 inline void SetRollbackMetadata(const PipelineRollbackMetadata& value) { m_rollbackMetadataHasBeenSet = true; m_rollbackMetadata = value; }
202 inline void SetRollbackMetadata(PipelineRollbackMetadata&& value) { m_rollbackMetadataHasBeenSet = true; m_rollbackMetadata = std::move(value); }
206 private:
207
208 Aws::String m_pipelineExecutionId;
209 bool m_pipelineExecutionIdHasBeenSet = false;
210
212 bool m_statusHasBeenSet = false;
213
214 Aws::String m_statusSummary;
215 bool m_statusSummaryHasBeenSet = false;
216
217 Aws::Utils::DateTime m_startTime;
218 bool m_startTimeHasBeenSet = false;
219
220 Aws::Utils::DateTime m_lastUpdateTime;
221 bool m_lastUpdateTimeHasBeenSet = false;
222
223 Aws::Vector<SourceRevision> m_sourceRevisions;
224 bool m_sourceRevisionsHasBeenSet = false;
225
226 ExecutionTrigger m_trigger;
227 bool m_triggerHasBeenSet = false;
228
229 StopExecutionTrigger m_stopTrigger;
230 bool m_stopTriggerHasBeenSet = false;
231
232 ExecutionMode m_executionMode;
233 bool m_executionModeHasBeenSet = false;
234
235 ExecutionType m_executionType;
236 bool m_executionTypeHasBeenSet = false;
237
238 PipelineRollbackMetadata m_rollbackMetadata;
239 bool m_rollbackMetadataHasBeenSet = false;
240 };
241
242} // namespace Model
243} // namespace CodePipeline
244} // namespace Aws
void SetRollbackMetadata(PipelineRollbackMetadata &&value)
const PipelineExecutionStatus & GetStatus() const
PipelineExecutionSummary & AddSourceRevisions(const SourceRevision &value)
PipelineExecutionSummary & WithSourceRevisions(Aws::Vector< SourceRevision > &&value)
PipelineExecutionSummary & WithExecutionMode(const ExecutionMode &value)
PipelineExecutionSummary & WithPipelineExecutionId(const char *value)
PipelineExecutionSummary & WithPipelineExecutionId(const Aws::String &value)
PipelineExecutionSummary & WithLastUpdateTime(const Aws::Utils::DateTime &value)
PipelineExecutionSummary & WithStartTime(const Aws::Utils::DateTime &value)
AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const
PipelineExecutionSummary & WithTrigger(const ExecutionTrigger &value)
void SetStartTime(const Aws::Utils::DateTime &value)
void SetSourceRevisions(Aws::Vector< SourceRevision > &&value)
AWS_CODEPIPELINE_API PipelineExecutionSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
PipelineExecutionSummary & WithExecutionType(ExecutionType &&value)
void SetStopTrigger(const StopExecutionTrigger &value)
PipelineExecutionSummary & WithStatusSummary(Aws::String &&value)
PipelineExecutionSummary & WithExecutionType(const ExecutionType &value)
PipelineExecutionSummary & WithStatus(PipelineExecutionStatus &&value)
PipelineExecutionSummary & WithStopTrigger(const StopExecutionTrigger &value)
PipelineExecutionSummary & WithStartTime(Aws::Utils::DateTime &&value)
PipelineExecutionSummary & WithLastUpdateTime(Aws::Utils::DateTime &&value)
PipelineExecutionSummary & AddSourceRevisions(SourceRevision &&value)
PipelineExecutionSummary & WithRollbackMetadata(const PipelineRollbackMetadata &value)
PipelineExecutionSummary & WithStatusSummary(const char *value)
const Aws::Vector< SourceRevision > & GetSourceRevisions() const
PipelineExecutionSummary & WithTrigger(ExecutionTrigger &&value)
void SetStatus(const PipelineExecutionStatus &value)
PipelineExecutionSummary & WithStatusSummary(const Aws::String &value)
PipelineExecutionSummary & WithStopTrigger(StopExecutionTrigger &&value)
PipelineExecutionSummary & WithSourceRevisions(const Aws::Vector< SourceRevision > &value)
void SetSourceRevisions(const Aws::Vector< SourceRevision > &value)
PipelineExecutionSummary & WithStatus(const PipelineExecutionStatus &value)
PipelineExecutionSummary & WithExecutionMode(ExecutionMode &&value)
const PipelineRollbackMetadata & GetRollbackMetadata() const
PipelineExecutionSummary & WithPipelineExecutionId(Aws::String &&value)
AWS_CODEPIPELINE_API PipelineExecutionSummary(Aws::Utils::Json::JsonView jsonValue)
PipelineExecutionSummary & WithRollbackMetadata(PipelineRollbackMetadata &&value)
void SetLastUpdateTime(const Aws::Utils::DateTime &value)
void SetRollbackMetadata(const PipelineRollbackMetadata &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