/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.codepipeline.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Represents information about an execution of a pipeline. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class PipelineExecution implements Serializable, Cloneable, StructuredPojo { /** ** The name of the pipeline with the specified pipeline execution. *
*/ private String pipelineName; /** ** The version number of the pipeline with the specified pipeline execution. *
*/ private Integer pipelineVersion; /** ** The ID of the pipeline execution. *
*/ private String pipelineExecutionId; /** ** 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. *
** A summary that contains a description of the pipeline execution status. *
*/ private String statusSummary; /** *
* A list of ArtifactRevision
objects included in a pipeline execution.
*
* The name of the pipeline with the specified pipeline execution. *
* * @param pipelineName * The name of the pipeline with the specified pipeline execution. */ public void setPipelineName(String pipelineName) { this.pipelineName = pipelineName; } /** ** The name of the pipeline with the specified pipeline execution. *
* * @return The name of the pipeline with the specified pipeline execution. */ public String getPipelineName() { return this.pipelineName; } /** ** The name of the pipeline with the specified pipeline execution. *
* * @param pipelineName * The name of the pipeline with the specified pipeline execution. * @return Returns a reference to this object so that method calls can be chained together. */ public PipelineExecution withPipelineName(String pipelineName) { setPipelineName(pipelineName); return this; } /** ** The version number of the pipeline with the specified pipeline execution. *
* * @param pipelineVersion * The version number of the pipeline with the specified pipeline execution. */ public void setPipelineVersion(Integer pipelineVersion) { this.pipelineVersion = pipelineVersion; } /** ** The version number of the pipeline with the specified pipeline execution. *
* * @return The version number of the pipeline with the specified pipeline execution. */ public Integer getPipelineVersion() { return this.pipelineVersion; } /** ** The version number of the pipeline with the specified pipeline execution. *
* * @param pipelineVersion * The version number of the pipeline with the specified pipeline execution. * @return Returns a reference to this object so that method calls can be chained together. */ public PipelineExecution withPipelineVersion(Integer pipelineVersion) { setPipelineVersion(pipelineVersion); return this; } /** ** The ID of the pipeline execution. *
* * @param pipelineExecutionId * The ID of the pipeline execution. */ public void setPipelineExecutionId(String pipelineExecutionId) { this.pipelineExecutionId = pipelineExecutionId; } /** ** The ID of the pipeline execution. *
* * @return The ID of the pipeline execution. */ public String getPipelineExecutionId() { return this.pipelineExecutionId; } /** ** The ID of the pipeline execution. *
* * @param pipelineExecutionId * The ID of the pipeline execution. * @return Returns a reference to this object so that method calls can be chained together. */ public PipelineExecution withPipelineExecutionId(String pipelineExecutionId) { setPipelineExecutionId(pipelineExecutionId); 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. *
** 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. *
** 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. *
** 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. *
** 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. *
** 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. *
** 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. *
** 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. *
** 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. *
** 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. *
** A summary that contains a description of the pipeline execution status. *
* * @param statusSummary * A summary that contains a description of the pipeline execution status. */ public void setStatusSummary(String statusSummary) { this.statusSummary = statusSummary; } /** ** A summary that contains a description of the pipeline execution status. *
* * @return A summary that contains a description of the pipeline execution status. */ public String getStatusSummary() { return this.statusSummary; } /** ** A summary that contains a description of the pipeline execution status. *
* * @param statusSummary * A summary that contains a description of the pipeline execution status. * @return Returns a reference to this object so that method calls can be chained together. */ public PipelineExecution withStatusSummary(String statusSummary) { setStatusSummary(statusSummary); return this; } /** *
* A list of ArtifactRevision
objects included in a pipeline execution.
*
ArtifactRevision
objects included in a pipeline execution.
*/
public java.util.List
* A list of ArtifactRevision
objects included in a pipeline execution.
*
ArtifactRevision
objects included in a pipeline execution.
*/
public void setArtifactRevisions(java.util.Collection
* A list of ArtifactRevision
objects included in a pipeline execution.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setArtifactRevisions(java.util.Collection)} or {@link #withArtifactRevisions(java.util.Collection)} if * you want to override the existing values. *
* * @param artifactRevisions * A list ofArtifactRevision
objects included in a pipeline execution.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public PipelineExecution withArtifactRevisions(ArtifactRevision... artifactRevisions) {
if (this.artifactRevisions == null) {
setArtifactRevisions(new java.util.ArrayList
* A list of ArtifactRevision
objects included in a pipeline execution.
*
ArtifactRevision
objects included in a pipeline execution.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public PipelineExecution withArtifactRevisions(java.util.Collection