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>
55 template<
typename PipelineNameT = Aws::String>
56 void SetPipelineName(PipelineNameT&& value) { m_pipelineNameHasBeenSet =
true; m_pipelineName = std::forward<PipelineNameT>(value); }
57 template<
typename PipelineNameT = Aws::String>
67 inline void SetPipelineVersion(
int value) { m_pipelineVersionHasBeenSet =
true; m_pipelineVersion = value; }
77 template<
typename PipelineExecutionIdT = Aws::String>
78 void SetPipelineExecutionId(PipelineExecutionIdT&& value) { m_pipelineExecutionIdHasBeenSet =
true; m_pipelineExecutionId = std::forward<PipelineExecutionIdT>(value); }
79 template<
typename PipelineExecutionIdT = Aws::String>
117 template<
typename StatusSummaryT = Aws::String>
118 void SetStatusSummary(StatusSummaryT&& value) { m_statusSummaryHasBeenSet =
true; m_statusSummary = std::forward<StatusSummaryT>(value); }
119 template<
typename StatusSummaryT = Aws::String>
130 template<
typename ArtifactRevisionsT = Aws::Vector<ArtifactRevision>>
131 void SetArtifactRevisions(ArtifactRevisionsT&& value) { m_artifactRevisionsHasBeenSet =
true; m_artifactRevisions = std::forward<ArtifactRevisionsT>(value); }
132 template<
typename ArtifactRevisionsT = Aws::Vector<ArtifactRevision>>
134 template<
typename ArtifactRevisionsT = ArtifactRevision>
135 PipelineExecution&
AddArtifactRevisions(ArtifactRevisionsT&& value) { m_artifactRevisionsHasBeenSet =
true; m_artifactRevisions.emplace_back(std::forward<ArtifactRevisionsT>(value));
return *
this; }
144 template<
typename VariablesT = Aws::Vector<ResolvedPipelineVariable>>
145 void SetVariables(VariablesT&& value) { m_variablesHasBeenSet =
true; m_variables = std::forward<VariablesT>(value); }
146 template<
typename VariablesT = Aws::Vector<ResolvedPipelineVariable>>
148 template<
typename VariablesT = ResolvedPipelineVariable>
149 PipelineExecution&
AddVariables(VariablesT&& value) { m_variablesHasBeenSet =
true; m_variables.emplace_back(std::forward<VariablesT>(value));
return *
this; }
156 template<
typename TriggerT = ExecutionTrigger>
157 void SetTrigger(TriggerT&& value) { m_triggerHasBeenSet =
true; m_trigger = std::forward<TriggerT>(value); }
158 template<
typename TriggerT = ExecutionTrigger>
189 template<
typename RollbackMetadataT = PipelineRollbackMetadata>
190 void SetRollbackMetadata(RollbackMetadataT&& value) { m_rollbackMetadataHasBeenSet =
true; m_rollbackMetadata = std::forward<RollbackMetadataT>(value); }
191 template<
typename RollbackMetadataT = PipelineRollbackMetadata>
197 bool m_pipelineNameHasBeenSet =
false;
199 int m_pipelineVersion{0};
200 bool m_pipelineVersionHasBeenSet =
false;
203 bool m_pipelineExecutionIdHasBeenSet =
false;
206 bool m_statusHasBeenSet =
false;
209 bool m_statusSummaryHasBeenSet =
false;
212 bool m_artifactRevisionsHasBeenSet =
false;
215 bool m_variablesHasBeenSet =
false;
217 ExecutionTrigger m_trigger;
218 bool m_triggerHasBeenSet =
false;
221 bool m_executionModeHasBeenSet =
false;
224 bool m_executionTypeHasBeenSet =
false;
226 PipelineRollbackMetadata m_rollbackMetadata;
227 bool m_rollbackMetadataHasBeenSet =
false;
void SetStatusSummary(StatusSummaryT &&value)
bool ArtifactRevisionsHasBeenSet() const
AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< ResolvedPipelineVariable > & GetVariables() const
PipelineExecution & WithRollbackMetadata(RollbackMetadataT &&value)
PipelineExecution & WithTrigger(TriggerT &&value)
PipelineExecution & WithExecutionMode(ExecutionMode value)
void SetRollbackMetadata(RollbackMetadataT &&value)
PipelineExecution & AddArtifactRevisions(ArtifactRevisionsT &&value)
const Aws::Vector< ArtifactRevision > & GetArtifactRevisions() const
bool PipelineNameHasBeenSet() const
bool StatusSummaryHasBeenSet() const
void SetPipelineName(PipelineNameT &&value)
PipelineExecution & WithStatusSummary(StatusSummaryT &&value)
void SetExecutionType(ExecutionType value)
PipelineExecution & WithStatus(PipelineExecutionStatus value)
const PipelineRollbackMetadata & GetRollbackMetadata() const
PipelineExecution & WithPipelineExecutionId(PipelineExecutionIdT &&value)
PipelineExecutionStatus GetStatus() const
const ExecutionTrigger & GetTrigger() const
bool VariablesHasBeenSet() const
PipelineExecution & WithVariables(VariablesT &&value)
bool StatusHasBeenSet() const
const Aws::String & GetPipelineExecutionId() const
bool RollbackMetadataHasBeenSet() const
void SetArtifactRevisions(ArtifactRevisionsT &&value)
const Aws::String & GetPipelineName() const
int GetPipelineVersion() const
void SetPipelineExecutionId(PipelineExecutionIdT &&value)
bool PipelineVersionHasBeenSet() const
ExecutionType GetExecutionType() const
bool PipelineExecutionIdHasBeenSet() const
AWS_CODEPIPELINE_API PipelineExecution()=default
void SetStatus(PipelineExecutionStatus value)
AWS_CODEPIPELINE_API PipelineExecution & operator=(Aws::Utils::Json::JsonView jsonValue)
bool ExecutionModeHasBeenSet() const
bool TriggerHasBeenSet() const
void SetTrigger(TriggerT &&value)
ExecutionMode GetExecutionMode() const
void SetPipelineVersion(int value)
const Aws::String & GetStatusSummary() const
void SetExecutionMode(ExecutionMode value)
PipelineExecution & WithPipelineName(PipelineNameT &&value)
PipelineExecution & WithExecutionType(ExecutionType value)
PipelineExecution & WithPipelineVersion(int value)
bool ExecutionTypeHasBeenSet() const
void SetVariables(VariablesT &&value)
PipelineExecution & WithArtifactRevisions(ArtifactRevisionsT &&value)
PipelineExecution & AddVariables(VariablesT &&value)
AWS_CODEPIPELINE_API PipelineExecution(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