/** * 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 AWS_CODEPIPELINE_API PipelineExecution { public: PipelineExecution(); PipelineExecution(Aws::Utils::Json::JsonView jsonValue); PipelineExecution& operator=(Aws::Utils::Json::JsonView jsonValue); 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.

  • 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 PipelineExecution& 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 PipelineExecution& WithStatus(PipelineExecutionStatus&& value) { SetStatus(std::move(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; int m_pipelineVersion; bool m_pipelineVersionHasBeenSet; Aws::String m_pipelineExecutionId; bool m_pipelineExecutionIdHasBeenSet; PipelineExecutionStatus m_status; bool m_statusHasBeenSet; Aws::Vector m_artifactRevisions; bool m_artifactRevisionsHasBeenSet; }; } // namespace Model } // namespace CodePipeline } // namespace Aws