AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PipelineExecution.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/memory/stl/AWSVector.h>
11#include <aws/codepipeline/model/ExecutionTrigger.h>
12#include <aws/codepipeline/model/ExecutionMode.h>
13#include <aws/codepipeline/model/ExecutionType.h>
14#include <aws/codepipeline/model/PipelineRollbackMetadata.h>
15#include <aws/codepipeline/model/ArtifactRevision.h>
16#include <aws/codepipeline/model/ResolvedPipelineVariable.h>
17#include <utility>
18
19namespace Aws
20{
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26 class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace CodePipeline
30{
31namespace Model
32{
33
41 {
42 public:
43 AWS_CODEPIPELINE_API PipelineExecution();
44 AWS_CODEPIPELINE_API PipelineExecution(Aws::Utils::Json::JsonView jsonValue);
45 AWS_CODEPIPELINE_API PipelineExecution& operator=(Aws::Utils::Json::JsonView jsonValue);
46 AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
53 inline const Aws::String& GetPipelineName() const{ return m_pipelineName; }
54 inline bool PipelineNameHasBeenSet() const { return m_pipelineNameHasBeenSet; }
55 inline void SetPipelineName(const Aws::String& value) { m_pipelineNameHasBeenSet = true; m_pipelineName = value; }
56 inline void SetPipelineName(Aws::String&& value) { m_pipelineNameHasBeenSet = true; m_pipelineName = std::move(value); }
57 inline void SetPipelineName(const char* value) { m_pipelineNameHasBeenSet = true; m_pipelineName.assign(value); }
58 inline PipelineExecution& WithPipelineName(const Aws::String& value) { SetPipelineName(value); return *this;}
59 inline PipelineExecution& WithPipelineName(Aws::String&& value) { SetPipelineName(std::move(value)); return *this;}
60 inline PipelineExecution& WithPipelineName(const char* value) { SetPipelineName(value); return *this;}
62
64
67 inline int GetPipelineVersion() const{ return m_pipelineVersion; }
68 inline bool PipelineVersionHasBeenSet() const { return m_pipelineVersionHasBeenSet; }
69 inline void SetPipelineVersion(int value) { m_pipelineVersionHasBeenSet = true; m_pipelineVersion = value; }
70 inline PipelineExecution& WithPipelineVersion(int value) { SetPipelineVersion(value); return *this;}
72
74
77 inline const Aws::String& GetPipelineExecutionId() const{ return m_pipelineExecutionId; }
78 inline bool PipelineExecutionIdHasBeenSet() const { return m_pipelineExecutionIdHasBeenSet; }
79 inline void SetPipelineExecutionId(const Aws::String& value) { m_pipelineExecutionIdHasBeenSet = true; m_pipelineExecutionId = value; }
80 inline void SetPipelineExecutionId(Aws::String&& value) { m_pipelineExecutionIdHasBeenSet = true; m_pipelineExecutionId = std::move(value); }
81 inline void SetPipelineExecutionId(const char* value) { m_pipelineExecutionIdHasBeenSet = true; m_pipelineExecutionId.assign(value); }
82 inline PipelineExecution& WithPipelineExecutionId(const Aws::String& value) { SetPipelineExecutionId(value); return *this;}
83 inline PipelineExecution& WithPipelineExecutionId(Aws::String&& value) { SetPipelineExecutionId(std::move(value)); return *this;}
84 inline PipelineExecution& WithPipelineExecutionId(const char* value) { SetPipelineExecutionId(value); return *this;}
86
88
109 inline const PipelineExecutionStatus& GetStatus() const{ return m_status; }
110 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
111 inline void SetStatus(const PipelineExecutionStatus& value) { m_statusHasBeenSet = true; m_status = value; }
112 inline void SetStatus(PipelineExecutionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
113 inline PipelineExecution& WithStatus(const PipelineExecutionStatus& value) { SetStatus(value); return *this;}
114 inline PipelineExecution& WithStatus(PipelineExecutionStatus&& value) { SetStatus(std::move(value)); return *this;}
116
118
121 inline const Aws::String& GetStatusSummary() const{ return m_statusSummary; }
122 inline bool StatusSummaryHasBeenSet() const { return m_statusSummaryHasBeenSet; }
123 inline void SetStatusSummary(const Aws::String& value) { m_statusSummaryHasBeenSet = true; m_statusSummary = value; }
124 inline void SetStatusSummary(Aws::String&& value) { m_statusSummaryHasBeenSet = true; m_statusSummary = std::move(value); }
125 inline void SetStatusSummary(const char* value) { m_statusSummaryHasBeenSet = true; m_statusSummary.assign(value); }
126 inline PipelineExecution& WithStatusSummary(const Aws::String& value) { SetStatusSummary(value); return *this;}
127 inline PipelineExecution& WithStatusSummary(Aws::String&& value) { SetStatusSummary(std::move(value)); return *this;}
128 inline PipelineExecution& WithStatusSummary(const char* value) { SetStatusSummary(value); return *this;}
130
132
136 inline const Aws::Vector<ArtifactRevision>& GetArtifactRevisions() const{ return m_artifactRevisions; }
137 inline bool ArtifactRevisionsHasBeenSet() const { return m_artifactRevisionsHasBeenSet; }
138 inline void SetArtifactRevisions(const Aws::Vector<ArtifactRevision>& value) { m_artifactRevisionsHasBeenSet = true; m_artifactRevisions = value; }
139 inline void SetArtifactRevisions(Aws::Vector<ArtifactRevision>&& value) { m_artifactRevisionsHasBeenSet = true; m_artifactRevisions = std::move(value); }
142 inline PipelineExecution& AddArtifactRevisions(const ArtifactRevision& value) { m_artifactRevisionsHasBeenSet = true; m_artifactRevisions.push_back(value); return *this; }
143 inline PipelineExecution& AddArtifactRevisions(ArtifactRevision&& value) { m_artifactRevisionsHasBeenSet = true; m_artifactRevisions.push_back(std::move(value)); return *this; }
145
147
150 inline const Aws::Vector<ResolvedPipelineVariable>& GetVariables() const{ return m_variables; }
151 inline bool VariablesHasBeenSet() const { return m_variablesHasBeenSet; }
152 inline void SetVariables(const Aws::Vector<ResolvedPipelineVariable>& value) { m_variablesHasBeenSet = true; m_variables = value; }
153 inline void SetVariables(Aws::Vector<ResolvedPipelineVariable>&& value) { m_variablesHasBeenSet = true; m_variables = std::move(value); }
155 inline PipelineExecution& WithVariables(Aws::Vector<ResolvedPipelineVariable>&& value) { SetVariables(std::move(value)); return *this;}
156 inline PipelineExecution& AddVariables(const ResolvedPipelineVariable& value) { m_variablesHasBeenSet = true; m_variables.push_back(value); return *this; }
157 inline PipelineExecution& AddVariables(ResolvedPipelineVariable&& value) { m_variablesHasBeenSet = true; m_variables.push_back(std::move(value)); return *this; }
159
161
162 inline const ExecutionTrigger& GetTrigger() const{ return m_trigger; }
163 inline bool TriggerHasBeenSet() const { return m_triggerHasBeenSet; }
164 inline void SetTrigger(const ExecutionTrigger& value) { m_triggerHasBeenSet = true; m_trigger = value; }
165 inline void SetTrigger(ExecutionTrigger&& value) { m_triggerHasBeenSet = true; m_trigger = std::move(value); }
166 inline PipelineExecution& WithTrigger(const ExecutionTrigger& value) { SetTrigger(value); return *this;}
167 inline PipelineExecution& WithTrigger(ExecutionTrigger&& value) { SetTrigger(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 PipelineExecution& WithExecutionMode(const ExecutionMode& value) { SetExecutionMode(value); return *this;}
180 inline PipelineExecution& 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 PipelineExecution& WithExecutionType(const ExecutionType& value) { SetExecutionType(value); return *this;}
192 inline PipelineExecution& 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); }
204 inline PipelineExecution& WithRollbackMetadata(PipelineRollbackMetadata&& value) { SetRollbackMetadata(std::move(value)); return *this;}
206 private:
207
208 Aws::String m_pipelineName;
209 bool m_pipelineNameHasBeenSet = false;
210
211 int m_pipelineVersion;
212 bool m_pipelineVersionHasBeenSet = false;
213
214 Aws::String m_pipelineExecutionId;
215 bool m_pipelineExecutionIdHasBeenSet = false;
216
218 bool m_statusHasBeenSet = false;
219
220 Aws::String m_statusSummary;
221 bool m_statusSummaryHasBeenSet = false;
222
223 Aws::Vector<ArtifactRevision> m_artifactRevisions;
224 bool m_artifactRevisionsHasBeenSet = false;
225
227 bool m_variablesHasBeenSet = false;
228
229 ExecutionTrigger m_trigger;
230 bool m_triggerHasBeenSet = 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 SetExecutionMode(const ExecutionMode &value)
AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStatus(const PipelineExecutionStatus &value)
void SetRollbackMetadata(const PipelineRollbackMetadata &value)
const Aws::Vector< ResolvedPipelineVariable > & GetVariables() const
PipelineExecution & WithStatusSummary(const Aws::String &value)
void SetVariables(const Aws::Vector< ResolvedPipelineVariable > &value)
void SetExecutionType(const ExecutionType &value)
PipelineExecution & AddArtifactRevisions(ArtifactRevision &&value)
const Aws::Vector< ArtifactRevision > & GetArtifactRevisions() const
PipelineExecution & WithStatus(const PipelineExecutionStatus &value)
PipelineExecution & WithPipelineExecutionId(const Aws::String &value)
void SetTrigger(ExecutionTrigger &&value)
PipelineExecution & WithVariables(const Aws::Vector< ResolvedPipelineVariable > &value)
const PipelineRollbackMetadata & GetRollbackMetadata() const
PipelineExecution & WithPipelineExecutionId(const char *value)
void SetPipelineName(const Aws::String &value)
PipelineExecution & WithTrigger(ExecutionTrigger &&value)
PipelineExecution & WithPipelineName(const char *value)
const ExecutionType & GetExecutionType() const
const ExecutionTrigger & GetTrigger() const
PipelineExecution & WithArtifactRevisions(Aws::Vector< ArtifactRevision > &&value)
void SetArtifactRevisions(Aws::Vector< ArtifactRevision > &&value)
PipelineExecution & WithRollbackMetadata(const PipelineRollbackMetadata &value)
PipelineExecution & WithPipelineName(const Aws::String &value)
PipelineExecution & AddVariables(ResolvedPipelineVariable &&value)
PipelineExecution & WithPipelineName(Aws::String &&value)
const Aws::String & GetPipelineExecutionId() const
PipelineExecution & WithVariables(Aws::Vector< ResolvedPipelineVariable > &&value)
PipelineExecution & AddVariables(const ResolvedPipelineVariable &value)
PipelineExecution & WithExecutionMode(const ExecutionMode &value)
PipelineExecution & WithStatusSummary(const char *value)
PipelineExecution & WithPipelineExecutionId(Aws::String &&value)
PipelineExecution & WithExecutionMode(ExecutionMode &&value)
void SetRollbackMetadata(PipelineRollbackMetadata &&value)
const PipelineExecutionStatus & GetStatus() const
PipelineExecution & WithExecutionType(const ExecutionType &value)
void SetStatusSummary(const Aws::String &value)
void SetArtifactRevisions(const Aws::Vector< ArtifactRevision > &value)
PipelineExecution & WithStatusSummary(Aws::String &&value)
PipelineExecution & WithTrigger(const ExecutionTrigger &value)
AWS_CODEPIPELINE_API PipelineExecution & operator=(Aws::Utils::Json::JsonView jsonValue)
PipelineExecution & WithExecutionType(ExecutionType &&value)
void SetStatus(PipelineExecutionStatus &&value)
void SetVariables(Aws::Vector< ResolvedPipelineVariable > &&value)
PipelineExecution & AddArtifactRevisions(const ArtifactRevision &value)
void SetTrigger(const ExecutionTrigger &value)
void SetPipelineExecutionId(const Aws::String &value)
PipelineExecution & WithRollbackMetadata(PipelineRollbackMetadata &&value)
PipelineExecution & WithPipelineVersion(int value)
AWS_CODEPIPELINE_API PipelineExecution(Aws::Utils::Json::JsonView jsonValue)
const ExecutionMode & GetExecutionMode() const
PipelineExecution & WithArtifactRevisions(const Aws::Vector< ArtifactRevision > &value)
PipelineExecution & WithStatus(PipelineExecutionStatus &&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