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

Represents information about an execution of a pipeline.

See * Also:

AWS * API Reference

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

The name of the pipeline with the specified pipeline execution.

*/ inline const Aws::String& GetPipelineName() const{ return m_pipelineName; } /** *

The name of the pipeline with the specified pipeline execution.

*/ inline bool PipelineNameHasBeenSet() const { return m_pipelineNameHasBeenSet; } /** *

The name of the pipeline with the specified pipeline execution.

*/ inline void SetPipelineName(const Aws::String& value) { m_pipelineNameHasBeenSet = true; m_pipelineName = value; } /** *

The name of the pipeline with the specified pipeline execution.

*/ inline void SetPipelineName(Aws::String&& value) { m_pipelineNameHasBeenSet = true; m_pipelineName = std::move(value); } /** *

The name of the pipeline with the specified pipeline execution.

*/ inline void SetPipelineName(const char* value) { m_pipelineNameHasBeenSet = true; m_pipelineName.assign(value); } /** *

The name of the pipeline with the specified pipeline execution.

*/ inline PipelineExecution& WithPipelineName(const Aws::String& value) { SetPipelineName(value); return *this;} /** *

The name of the pipeline with the specified pipeline execution.

*/ inline PipelineExecution& WithPipelineName(Aws::String&& value) { SetPipelineName(std::move(value)); return *this;} /** *

The name of the pipeline with the specified pipeline execution.

*/ inline PipelineExecution& WithPipelineName(const char* value) { SetPipelineName(value); return *this;} /** *

The version number of the pipeline with the specified pipeline execution.

*/ inline int GetPipelineVersion() const{ return m_pipelineVersion; } /** *

The version number of the pipeline with the specified pipeline execution.

*/ inline bool PipelineVersionHasBeenSet() const { return m_pipelineVersionHasBeenSet; } /** *

The version number of the pipeline with the specified pipeline execution.

*/ inline void SetPipelineVersion(int value) { m_pipelineVersionHasBeenSet = true; m_pipelineVersion = value; } /** *

The version number of the pipeline with the specified pipeline execution.

*/ inline PipelineExecution& WithPipelineVersion(int value) { SetPipelineVersion(value); return *this;} /** *

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 PipelineExecution& WithPipelineExecutionId(const Aws::String& value) { SetPipelineExecutionId(value); return *this;} /** *

The ID of the pipeline execution.

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

The ID of the pipeline execution.

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

The status of the pipeline execution.

  • Cancelled: The * pipeline’s definition was updated before the pipeline execution could be * completed.

  • 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.

  • Cancelled: The * pipeline’s definition was updated before the pipeline execution could be * completed.

  • 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.

  • Cancelled: The * pipeline’s definition was updated before the pipeline execution could be * completed.

  • 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.

  • Cancelled: The * pipeline’s definition was updated before the pipeline execution could be * completed.

  • 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.

  • Cancelled: The * pipeline’s definition was updated before the pipeline execution could be * completed.

  • 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 PipelineExecution& WithStatus(const PipelineExecutionStatus& value) { SetStatus(value); return *this;} /** *

The status of the pipeline execution.

  • Cancelled: The * pipeline’s definition was updated before the pipeline execution could be * completed.

  • 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 PipelineExecution& WithStatus(PipelineExecutionStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

A summary that contains a description of the pipeline execution status.

*/ inline const Aws::String& GetStatusSummary() const{ return m_statusSummary; } /** *

A summary that contains a description of the pipeline execution status.

*/ inline bool StatusSummaryHasBeenSet() const { return m_statusSummaryHasBeenSet; } /** *

A summary that contains a description of the pipeline execution status.

*/ inline void SetStatusSummary(const Aws::String& value) { m_statusSummaryHasBeenSet = true; m_statusSummary = value; } /** *

A summary that contains a description of the pipeline execution status.

*/ inline void SetStatusSummary(Aws::String&& value) { m_statusSummaryHasBeenSet = true; m_statusSummary = std::move(value); } /** *

A summary that contains a description of the pipeline execution status.

*/ inline void SetStatusSummary(const char* value) { m_statusSummaryHasBeenSet = true; m_statusSummary.assign(value); } /** *

A summary that contains a description of the pipeline execution status.

*/ inline PipelineExecution& WithStatusSummary(const Aws::String& value) { SetStatusSummary(value); return *this;} /** *

A summary that contains a description of the pipeline execution status.

*/ inline PipelineExecution& WithStatusSummary(Aws::String&& value) { SetStatusSummary(std::move(value)); return *this;} /** *

A summary that contains a description of the pipeline execution status.

*/ inline PipelineExecution& WithStatusSummary(const char* value) { SetStatusSummary(value); return *this;} /** *

A list of ArtifactRevision objects included in a pipeline * execution.

*/ inline const Aws::Vector& GetArtifactRevisions() const{ return m_artifactRevisions; } /** *

A list of ArtifactRevision objects included in a pipeline * execution.

*/ inline bool ArtifactRevisionsHasBeenSet() const { return m_artifactRevisionsHasBeenSet; } /** *

A list of ArtifactRevision objects included in a pipeline * execution.

*/ inline void SetArtifactRevisions(const Aws::Vector& value) { m_artifactRevisionsHasBeenSet = true; m_artifactRevisions = value; } /** *

A list of ArtifactRevision objects included in a pipeline * execution.

*/ inline void SetArtifactRevisions(Aws::Vector&& value) { m_artifactRevisionsHasBeenSet = true; m_artifactRevisions = std::move(value); } /** *

A list of ArtifactRevision objects included in a pipeline * execution.

*/ inline PipelineExecution& WithArtifactRevisions(const Aws::Vector& value) { SetArtifactRevisions(value); return *this;} /** *

A list of ArtifactRevision objects included in a pipeline * execution.

*/ inline PipelineExecution& WithArtifactRevisions(Aws::Vector&& value) { SetArtifactRevisions(std::move(value)); return *this;} /** *

A list of ArtifactRevision objects included in a pipeline * execution.

*/ inline PipelineExecution& AddArtifactRevisions(const ArtifactRevision& value) { m_artifactRevisionsHasBeenSet = true; m_artifactRevisions.push_back(value); return *this; } /** *

A list of ArtifactRevision objects included in a pipeline * execution.

*/ inline PipelineExecution& AddArtifactRevisions(ArtifactRevision&& value) { m_artifactRevisionsHasBeenSet = true; m_artifactRevisions.push_back(std::move(value)); return *this; } private: Aws::String m_pipelineName; bool m_pipelineNameHasBeenSet = false; int m_pipelineVersion; bool m_pipelineVersionHasBeenSet = false; Aws::String m_pipelineExecutionId; bool m_pipelineExecutionIdHasBeenSet = false; PipelineExecutionStatus m_status; bool m_statusHasBeenSet = false; Aws::String m_statusSummary; bool m_statusSummaryHasBeenSet = false; Aws::Vector m_artifactRevisions; bool m_artifactRevisionsHasBeenSet = false; }; } // namespace Model } // namespace CodePipeline } // namespace Aws