/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CodePipeline { namespace Model { /** *

Summary information about a pipeline execution.

See Also:

AWS * API Reference

*/ class PipelineExecutionSummary { public: AWS_CODEPIPELINE_API PipelineExecutionSummary(); AWS_CODEPIPELINE_API PipelineExecutionSummary(Aws::Utils::Json::JsonView jsonValue); AWS_CODEPIPELINE_API PipelineExecutionSummary& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The ID of the pipeline execution.

*/ inline const Aws::String& GetPipelineExecutionId() const{ return m_pipelineExecutionId; } /** *

The ID of the pipeline execution.

*/ inline bool PipelineExecutionIdHasBeenSet() const { return m_pipelineExecutionIdHasBeenSet; } /** *

The ID of the pipeline execution.

*/ inline void SetPipelineExecutionId(const Aws::String& value) { m_pipelineExecutionIdHasBeenSet = true; m_pipelineExecutionId = value; } /** *

The ID of the pipeline execution.

*/ inline void SetPipelineExecutionId(Aws::String&& value) { m_pipelineExecutionIdHasBeenSet = true; m_pipelineExecutionId = std::move(value); } /** *

The ID of the pipeline execution.

*/ inline void SetPipelineExecutionId(const char* value) { m_pipelineExecutionIdHasBeenSet = true; m_pipelineExecutionId.assign(value); } /** *

The ID of the pipeline execution.

*/ inline PipelineExecutionSummary& WithPipelineExecutionId(const Aws::String& value) { SetPipelineExecutionId(value); return *this;} /** *

The ID of the pipeline execution.

*/ inline PipelineExecutionSummary& WithPipelineExecutionId(Aws::String&& value) { SetPipelineExecutionId(std::move(value)); return *this;} /** *

The ID of the pipeline execution.

*/ inline PipelineExecutionSummary& WithPipelineExecutionId(const char* value) { SetPipelineExecutionId(value); return *this;} /** *

The status of the pipeline execution.

  • InProgress: The * pipeline execution is currently running.

  • Stopped: The pipeline * execution was manually stopped. For more information, see Stopped * Executions.

  • Stopping: The pipeline execution received a * request to be manually stopped. Depending on the selected stop mode, the * execution is either completing or abandoning in-progress actions. For more * information, see Stopped * Executions.

  • Succeeded: The pipeline execution was * completed successfully.

  • Superseded: While this pipeline * execution was waiting for the next stage to be completed, a newer pipeline * execution advanced and continued through the pipeline instead. For more * information, see Superseded * Executions.

  • Failed: The pipeline execution was not * completed successfully.

*/ inline const PipelineExecutionStatus& GetStatus() const{ return m_status; } /** *

The status of the pipeline execution.

  • InProgress: The * pipeline execution is currently running.

  • Stopped: The pipeline * execution was manually stopped. For more information, see Stopped * Executions.

  • Stopping: The pipeline execution received a * request to be manually stopped. Depending on the selected stop mode, the * execution is either completing or abandoning in-progress actions. For more * information, see Stopped * Executions.

  • Succeeded: The pipeline execution was * completed successfully.

  • Superseded: While this pipeline * execution was waiting for the next stage to be completed, a newer pipeline * execution advanced and continued through the pipeline instead. For more * information, see Superseded * Executions.

  • Failed: The pipeline execution was not * completed successfully.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of the pipeline execution.

  • InProgress: The * pipeline execution is currently running.

  • Stopped: The pipeline * execution was manually stopped. For more information, see Stopped * Executions.

  • Stopping: The pipeline execution received a * request to be manually stopped. Depending on the selected stop mode, the * execution is either completing or abandoning in-progress actions. For more * information, see Stopped * Executions.

  • Succeeded: The pipeline execution was * completed successfully.

  • Superseded: While this pipeline * execution was waiting for the next stage to be completed, a newer pipeline * execution advanced and continued through the pipeline instead. For more * information, see Superseded * Executions.

  • Failed: The pipeline execution was not * completed successfully.

*/ inline void SetStatus(const PipelineExecutionStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status of the pipeline execution.

  • InProgress: The * pipeline execution is currently running.

  • Stopped: The pipeline * execution was manually stopped. For more information, see Stopped * Executions.

  • Stopping: The pipeline execution received a * request to be manually stopped. Depending on the selected stop mode, the * execution is either completing or abandoning in-progress actions. For more * information, see Stopped * Executions.

  • Succeeded: The pipeline execution was * completed successfully.

  • Superseded: While this pipeline * execution was waiting for the next stage to be completed, a newer pipeline * execution advanced and continued through the pipeline instead. For more * information, see Superseded * Executions.

  • Failed: The pipeline execution was not * completed successfully.

*/ inline void SetStatus(PipelineExecutionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The status of the pipeline execution.

  • InProgress: The * pipeline execution is currently running.

  • Stopped: The pipeline * execution was manually stopped. For more information, see Stopped * Executions.

  • Stopping: The pipeline execution received a * request to be manually stopped. Depending on the selected stop mode, the * execution is either completing or abandoning in-progress actions. For more * information, see Stopped * Executions.

  • Succeeded: The pipeline execution was * completed successfully.

  • Superseded: While this pipeline * execution was waiting for the next stage to be completed, a newer pipeline * execution advanced and continued through the pipeline instead. For more * information, see Superseded * Executions.

  • Failed: The pipeline execution was not * completed successfully.

*/ inline PipelineExecutionSummary& WithStatus(const PipelineExecutionStatus& value) { SetStatus(value); return *this;} /** *

The status of the pipeline execution.

  • InProgress: The * pipeline execution is currently running.

  • Stopped: The pipeline * execution was manually stopped. For more information, see Stopped * Executions.

  • Stopping: The pipeline execution received a * request to be manually stopped. Depending on the selected stop mode, the * execution is either completing or abandoning in-progress actions. For more * information, see Stopped * Executions.

  • Succeeded: The pipeline execution was * completed successfully.

  • Superseded: While this pipeline * execution was waiting for the next stage to be completed, a newer pipeline * execution advanced and continued through the pipeline instead. For more * information, see Superseded * Executions.

  • Failed: The pipeline execution was not * completed successfully.

*/ inline PipelineExecutionSummary& WithStatus(PipelineExecutionStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

The date and time when the pipeline execution began, in timestamp format.

*/ inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; } /** *

The date and time when the pipeline execution began, in timestamp format.

*/ inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; } /** *

The date and time when the pipeline execution began, in timestamp format.

*/ inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; } /** *

The date and time when the pipeline execution began, in timestamp format.

*/ inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); } /** *

The date and time when the pipeline execution began, in timestamp format.

*/ inline PipelineExecutionSummary& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;} /** *

The date and time when the pipeline execution began, in timestamp format.

*/ inline PipelineExecutionSummary& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;} /** *

The date and time of the last change to the pipeline execution, in timestamp * format.

*/ inline const Aws::Utils::DateTime& GetLastUpdateTime() const{ return m_lastUpdateTime; } /** *

The date and time of the last change to the pipeline execution, in timestamp * format.

*/ inline bool LastUpdateTimeHasBeenSet() const { return m_lastUpdateTimeHasBeenSet; } /** *

The date and time of the last change to the pipeline execution, in timestamp * format.

*/ inline void SetLastUpdateTime(const Aws::Utils::DateTime& value) { m_lastUpdateTimeHasBeenSet = true; m_lastUpdateTime = value; } /** *

The date and time of the last change to the pipeline execution, in timestamp * format.

*/ inline void SetLastUpdateTime(Aws::Utils::DateTime&& value) { m_lastUpdateTimeHasBeenSet = true; m_lastUpdateTime = std::move(value); } /** *

The date and time of the last change to the pipeline execution, in timestamp * format.

*/ inline PipelineExecutionSummary& WithLastUpdateTime(const Aws::Utils::DateTime& value) { SetLastUpdateTime(value); return *this;} /** *

The date and time of the last change to the pipeline execution, in timestamp * format.

*/ inline PipelineExecutionSummary& WithLastUpdateTime(Aws::Utils::DateTime&& value) { SetLastUpdateTime(std::move(value)); return *this;} /** *

A list of the source artifact revisions that initiated a pipeline * execution.

*/ inline const Aws::Vector& GetSourceRevisions() const{ return m_sourceRevisions; } /** *

A list of the source artifact revisions that initiated a pipeline * execution.

*/ inline bool SourceRevisionsHasBeenSet() const { return m_sourceRevisionsHasBeenSet; } /** *

A list of the source artifact revisions that initiated a pipeline * execution.

*/ inline void SetSourceRevisions(const Aws::Vector& value) { m_sourceRevisionsHasBeenSet = true; m_sourceRevisions = value; } /** *

A list of the source artifact revisions that initiated a pipeline * execution.

*/ inline void SetSourceRevisions(Aws::Vector&& value) { m_sourceRevisionsHasBeenSet = true; m_sourceRevisions = std::move(value); } /** *

A list of the source artifact revisions that initiated a pipeline * execution.

*/ inline PipelineExecutionSummary& WithSourceRevisions(const Aws::Vector& value) { SetSourceRevisions(value); return *this;} /** *

A list of the source artifact revisions that initiated a pipeline * execution.

*/ inline PipelineExecutionSummary& WithSourceRevisions(Aws::Vector&& value) { SetSourceRevisions(std::move(value)); return *this;} /** *

A list of the source artifact revisions that initiated a pipeline * execution.

*/ inline PipelineExecutionSummary& AddSourceRevisions(const SourceRevision& value) { m_sourceRevisionsHasBeenSet = true; m_sourceRevisions.push_back(value); return *this; } /** *

A list of the source artifact revisions that initiated a pipeline * execution.

*/ inline PipelineExecutionSummary& AddSourceRevisions(SourceRevision&& value) { m_sourceRevisionsHasBeenSet = true; m_sourceRevisions.push_back(std::move(value)); return *this; } /** *

The interaction or event that started a pipeline execution, such as automated * change detection or a StartPipelineExecution API call.

*/ inline const ExecutionTrigger& GetTrigger() const{ return m_trigger; } /** *

The interaction or event that started a pipeline execution, such as automated * change detection or a StartPipelineExecution API call.

*/ inline bool TriggerHasBeenSet() const { return m_triggerHasBeenSet; } /** *

The interaction or event that started a pipeline execution, such as automated * change detection or a StartPipelineExecution API call.

*/ inline void SetTrigger(const ExecutionTrigger& value) { m_triggerHasBeenSet = true; m_trigger = value; } /** *

The interaction or event that started a pipeline execution, such as automated * change detection or a StartPipelineExecution API call.

*/ inline void SetTrigger(ExecutionTrigger&& value) { m_triggerHasBeenSet = true; m_trigger = std::move(value); } /** *

The interaction or event that started a pipeline execution, such as automated * change detection or a StartPipelineExecution API call.

*/ inline PipelineExecutionSummary& WithTrigger(const ExecutionTrigger& value) { SetTrigger(value); return *this;} /** *

The interaction or event that started a pipeline execution, such as automated * change detection or a StartPipelineExecution API call.

*/ inline PipelineExecutionSummary& WithTrigger(ExecutionTrigger&& value) { SetTrigger(std::move(value)); return *this;} /** *

The interaction that stopped a pipeline execution.

*/ inline const StopExecutionTrigger& GetStopTrigger() const{ return m_stopTrigger; } /** *

The interaction that stopped a pipeline execution.

*/ inline bool StopTriggerHasBeenSet() const { return m_stopTriggerHasBeenSet; } /** *

The interaction that stopped a pipeline execution.

*/ inline void SetStopTrigger(const StopExecutionTrigger& value) { m_stopTriggerHasBeenSet = true; m_stopTrigger = value; } /** *

The interaction that stopped a pipeline execution.

*/ inline void SetStopTrigger(StopExecutionTrigger&& value) { m_stopTriggerHasBeenSet = true; m_stopTrigger = std::move(value); } /** *

The interaction that stopped a pipeline execution.

*/ inline PipelineExecutionSummary& WithStopTrigger(const StopExecutionTrigger& value) { SetStopTrigger(value); return *this;} /** *

The interaction that stopped a pipeline execution.

*/ inline PipelineExecutionSummary& WithStopTrigger(StopExecutionTrigger&& value) { SetStopTrigger(std::move(value)); return *this;} private: Aws::String m_pipelineExecutionId; bool m_pipelineExecutionIdHasBeenSet = false; PipelineExecutionStatus m_status; bool m_statusHasBeenSet = false; Aws::Utils::DateTime m_startTime; bool m_startTimeHasBeenSet = false; Aws::Utils::DateTime m_lastUpdateTime; bool m_lastUpdateTimeHasBeenSet = false; Aws::Vector m_sourceRevisions; bool m_sourceRevisionsHasBeenSet = false; ExecutionTrigger m_trigger; bool m_triggerHasBeenSet = false; StopExecutionTrigger m_stopTrigger; bool m_stopTriggerHasBeenSet = false; }; } // namespace Model } // namespace CodePipeline } // namespace Aws