/* * 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; /** *
* Summary information about a pipeline execution. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class PipelineExecutionSummary implements Serializable, Cloneable, StructuredPojo { /** ** The ID of the pipeline execution. *
*/ private String pipelineExecutionId; /** ** 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. *
** The date and time when the pipeline execution began, in timestamp format. *
*/ private java.util.Date startTime; /** ** The date and time of the last change to the pipeline execution, in timestamp format. *
*/ private java.util.Date lastUpdateTime; /** ** A list of the source artifact revisions that initiated a pipeline execution. *
*/ private java.util.List
* The interaction or event that started a pipeline execution, such as automated change detection or a
* StartPipelineExecution
API call.
*
* The interaction that stopped a pipeline execution. *
*/ private StopExecutionTrigger stopTrigger; /** ** 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 PipelineExecutionSummary withPipelineExecutionId(String pipelineExecutionId) { setPipelineExecutionId(pipelineExecutionId); 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. *
** 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. *
** 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. *
** 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. *
** 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. *
** 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. *
** 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. *
** 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. *
** 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. *
** 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 date and time when the pipeline execution began, in timestamp format. *
* * @param startTime * The date and time when the pipeline execution began, in timestamp format. */ public void setStartTime(java.util.Date startTime) { this.startTime = startTime; } /** ** The date and time when the pipeline execution began, in timestamp format. *
* * @return The date and time when the pipeline execution began, in timestamp format. */ public java.util.Date getStartTime() { return this.startTime; } /** ** The date and time when the pipeline execution began, in timestamp format. *
* * @param startTime * The date and time when the pipeline execution began, in timestamp format. * @return Returns a reference to this object so that method calls can be chained together. */ public PipelineExecutionSummary withStartTime(java.util.Date startTime) { setStartTime(startTime); return this; } /** ** The date and time of the last change to the pipeline execution, in timestamp format. *
* * @param lastUpdateTime * The date and time of the last change to the pipeline execution, in timestamp format. */ public void setLastUpdateTime(java.util.Date lastUpdateTime) { this.lastUpdateTime = lastUpdateTime; } /** ** The date and time of the last change to the pipeline execution, in timestamp format. *
* * @return The date and time of the last change to the pipeline execution, in timestamp format. */ public java.util.Date getLastUpdateTime() { return this.lastUpdateTime; } /** ** The date and time of the last change to the pipeline execution, in timestamp format. *
* * @param lastUpdateTime * The date and time of the last change to the pipeline execution, in timestamp format. * @return Returns a reference to this object so that method calls can be chained together. */ public PipelineExecutionSummary withLastUpdateTime(java.util.Date lastUpdateTime) { setLastUpdateTime(lastUpdateTime); return this; } /** ** A list of the source artifact revisions that initiated a pipeline execution. *
* * @return A list of the source artifact revisions that initiated a pipeline execution. */ public java.util.List* A list of the source artifact revisions that initiated a pipeline execution. *
* * @param sourceRevisions * A list of the source artifact revisions that initiated a pipeline execution. */ public void setSourceRevisions(java.util.Collection* A list of the source artifact revisions that initiated a pipeline execution. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setSourceRevisions(java.util.Collection)} or {@link #withSourceRevisions(java.util.Collection)} if you * want to override the existing values. *
* * @param sourceRevisions * A list of the source artifact revisions that initiated a pipeline execution. * @return Returns a reference to this object so that method calls can be chained together. */ public PipelineExecutionSummary withSourceRevisions(SourceRevision... sourceRevisions) { if (this.sourceRevisions == null) { setSourceRevisions(new java.util.ArrayList* A list of the source artifact revisions that initiated a pipeline execution. *
* * @param sourceRevisions * A list of the source artifact revisions that initiated a pipeline execution. * @return Returns a reference to this object so that method calls can be chained together. */ public PipelineExecutionSummary withSourceRevisions(java.util.Collection
* The interaction or event that started a pipeline execution, such as automated change detection or a
* StartPipelineExecution
API call.
*
StartPipelineExecution
API call.
*/
public void setTrigger(ExecutionTrigger trigger) {
this.trigger = trigger;
}
/**
*
* The interaction or event that started a pipeline execution, such as automated change detection or a
* StartPipelineExecution
API call.
*
StartPipelineExecution
API call.
*/
public ExecutionTrigger getTrigger() {
return this.trigger;
}
/**
*
* The interaction or event that started a pipeline execution, such as automated change detection or a
* StartPipelineExecution
API call.
*
StartPipelineExecution
API call.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public PipelineExecutionSummary withTrigger(ExecutionTrigger trigger) {
setTrigger(trigger);
return this;
}
/**
* * The interaction that stopped a pipeline execution. *
* * @param stopTrigger * The interaction that stopped a pipeline execution. */ public void setStopTrigger(StopExecutionTrigger stopTrigger) { this.stopTrigger = stopTrigger; } /** ** The interaction that stopped a pipeline execution. *
* * @return The interaction that stopped a pipeline execution. */ public StopExecutionTrigger getStopTrigger() { return this.stopTrigger; } /** ** The interaction that stopped a pipeline execution. *
* * @param stopTrigger * The interaction that stopped a pipeline execution. * @return Returns a reference to this object so that method calls can be chained together. */ public PipelineExecutionSummary withStopTrigger(StopExecutionTrigger stopTrigger) { setStopTrigger(stopTrigger); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getPipelineExecutionId() != null) sb.append("PipelineExecutionId: ").append(getPipelineExecutionId()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getStartTime() != null) sb.append("StartTime: ").append(getStartTime()).append(","); if (getLastUpdateTime() != null) sb.append("LastUpdateTime: ").append(getLastUpdateTime()).append(","); if (getSourceRevisions() != null) sb.append("SourceRevisions: ").append(getSourceRevisions()).append(","); if (getTrigger() != null) sb.append("Trigger: ").append(getTrigger()).append(","); if (getStopTrigger() != null) sb.append("StopTrigger: ").append(getStopTrigger()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof PipelineExecutionSummary == false) return false; PipelineExecutionSummary other = (PipelineExecutionSummary) obj; if (other.getPipelineExecutionId() == null ^ this.getPipelineExecutionId() == null) return false; if (other.getPipelineExecutionId() != null && other.getPipelineExecutionId().equals(this.getPipelineExecutionId()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getStartTime() == null ^ this.getStartTime() == null) return false; if (other.getStartTime() != null && other.getStartTime().equals(this.getStartTime()) == false) return false; if (other.getLastUpdateTime() == null ^ this.getLastUpdateTime() == null) return false; if (other.getLastUpdateTime() != null && other.getLastUpdateTime().equals(this.getLastUpdateTime()) == false) return false; if (other.getSourceRevisions() == null ^ this.getSourceRevisions() == null) return false; if (other.getSourceRevisions() != null && other.getSourceRevisions().equals(this.getSourceRevisions()) == false) return false; if (other.getTrigger() == null ^ this.getTrigger() == null) return false; if (other.getTrigger() != null && other.getTrigger().equals(this.getTrigger()) == false) return false; if (other.getStopTrigger() == null ^ this.getStopTrigger() == null) return false; if (other.getStopTrigger() != null && other.getStopTrigger().equals(this.getStopTrigger()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getPipelineExecutionId() == null) ? 0 : getPipelineExecutionId().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getStartTime() == null) ? 0 : getStartTime().hashCode()); hashCode = prime * hashCode + ((getLastUpdateTime() == null) ? 0 : getLastUpdateTime().hashCode()); hashCode = prime * hashCode + ((getSourceRevisions() == null) ? 0 : getSourceRevisions().hashCode()); hashCode = prime * hashCode + ((getTrigger() == null) ? 0 : getTrigger().hashCode()); hashCode = prime * hashCode + ((getStopTrigger() == null) ? 0 : getStopTrigger().hashCode()); return hashCode; } @Override public PipelineExecutionSummary clone() { try { return (PipelineExecutionSummary) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.codepipeline.model.transform.PipelineExecutionSummaryMarshaller.getInstance().marshall(this, protocolMarshaller); } }