com.amazonaws.services.codepipeline.model.PipelineExecution Maven / Gradle / Ivy
Show all versions of aws-java-sdk-codepipeline Show documentation
/*
* Copyright 2019-2024 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.
*
*
*
*/
private String status;
/**
*
* A summary that contains a description of the pipeline execution status.
*
*/
private String statusSummary;
/**
*
* A list of ArtifactRevision
objects included in a pipeline execution.
*
*/
private java.util.List artifactRevisions;
/**
*
* A list of pipeline variables used for the pipeline execution.
*
*/
private java.util.List variables;
private ExecutionTrigger trigger;
/**
*
* The method that the pipeline will use to handle multiple executions. The default mode is SUPERSEDED.
*
*/
private String executionMode;
/**
*
* The type of the pipeline execution.
*
*/
private String executionType;
/**
*
* The metadata about the execution pertaining to stage rollback.
*
*/
private PipelineRollbackMetadata rollbackMetadata;
/**
*
* 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.
*
*
*
*
* @param 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.
*
*
* @see PipelineExecutionStatus
*/
public void setStatus(String status) {
this.status = 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.
*
*
*
*
* @return 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.
*
*
* @see PipelineExecutionStatus
*/
public String getStatus() {
return this.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.
*
*
*
*
* @param 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.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see PipelineExecutionStatus
*/
public PipelineExecution withStatus(String status) {
setStatus(status);
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.
*
*
*
*
* @param 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.
*
*
* @see PipelineExecutionStatus
*/
public void setStatus(PipelineExecutionStatus status) {
withStatus(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.
*
*
*
*
* @param 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.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see PipelineExecutionStatus
*/
public PipelineExecution withStatus(PipelineExecutionStatus status) {
this.status = status.toString();
return this;
}
/**
*
* 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.
*
*
* @return A list of ArtifactRevision
objects included in a pipeline execution.
*/
public java.util.List getArtifactRevisions() {
return artifactRevisions;
}
/**
*
* A list of ArtifactRevision
objects included in a pipeline execution.
*
*
* @param artifactRevisions
* A list of ArtifactRevision
objects included in a pipeline execution.
*/
public void setArtifactRevisions(java.util.Collection artifactRevisions) {
if (artifactRevisions == null) {
this.artifactRevisions = null;
return;
}
this.artifactRevisions = new java.util.ArrayList(artifactRevisions);
}
/**
*
* 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 of 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(ArtifactRevision... artifactRevisions) {
if (this.artifactRevisions == null) {
setArtifactRevisions(new java.util.ArrayList(artifactRevisions.length));
}
for (ArtifactRevision ele : artifactRevisions) {
this.artifactRevisions.add(ele);
}
return this;
}
/**
*
* A list of ArtifactRevision
objects included in a pipeline execution.
*
*
* @param artifactRevisions
* A list of 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 artifactRevisions) {
setArtifactRevisions(artifactRevisions);
return this;
}
/**
*
* A list of pipeline variables used for the pipeline execution.
*
*
* @return A list of pipeline variables used for the pipeline execution.
*/
public java.util.List getVariables() {
return variables;
}
/**
*
* A list of pipeline variables used for the pipeline execution.
*
*
* @param variables
* A list of pipeline variables used for the pipeline execution.
*/
public void setVariables(java.util.Collection variables) {
if (variables == null) {
this.variables = null;
return;
}
this.variables = new java.util.ArrayList(variables);
}
/**
*
* A list of pipeline variables used for the pipeline execution.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setVariables(java.util.Collection)} or {@link #withVariables(java.util.Collection)} if you want to
* override the existing values.
*
*
* @param variables
* A list of pipeline variables used for the pipeline execution.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public PipelineExecution withVariables(ResolvedPipelineVariable... variables) {
if (this.variables == null) {
setVariables(new java.util.ArrayList(variables.length));
}
for (ResolvedPipelineVariable ele : variables) {
this.variables.add(ele);
}
return this;
}
/**
*
* A list of pipeline variables used for the pipeline execution.
*
*
* @param variables
* A list of pipeline variables used for the pipeline execution.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public PipelineExecution withVariables(java.util.Collection variables) {
setVariables(variables);
return this;
}
/**
* @param trigger
*/
public void setTrigger(ExecutionTrigger trigger) {
this.trigger = trigger;
}
/**
* @return
*/
public ExecutionTrigger getTrigger() {
return this.trigger;
}
/**
* @param trigger
* @return Returns a reference to this object so that method calls can be chained together.
*/
public PipelineExecution withTrigger(ExecutionTrigger trigger) {
setTrigger(trigger);
return this;
}
/**
*
* The method that the pipeline will use to handle multiple executions. The default mode is SUPERSEDED.
*
*
* @param executionMode
* The method that the pipeline will use to handle multiple executions. The default mode is SUPERSEDED.
* @see ExecutionMode
*/
public void setExecutionMode(String executionMode) {
this.executionMode = executionMode;
}
/**
*
* The method that the pipeline will use to handle multiple executions. The default mode is SUPERSEDED.
*
*
* @return The method that the pipeline will use to handle multiple executions. The default mode is SUPERSEDED.
* @see ExecutionMode
*/
public String getExecutionMode() {
return this.executionMode;
}
/**
*
* The method that the pipeline will use to handle multiple executions. The default mode is SUPERSEDED.
*
*
* @param executionMode
* The method that the pipeline will use to handle multiple executions. The default mode is SUPERSEDED.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ExecutionMode
*/
public PipelineExecution withExecutionMode(String executionMode) {
setExecutionMode(executionMode);
return this;
}
/**
*
* The method that the pipeline will use to handle multiple executions. The default mode is SUPERSEDED.
*
*
* @param executionMode
* The method that the pipeline will use to handle multiple executions. The default mode is SUPERSEDED.
* @see ExecutionMode
*/
public void setExecutionMode(ExecutionMode executionMode) {
withExecutionMode(executionMode);
}
/**
*
* The method that the pipeline will use to handle multiple executions. The default mode is SUPERSEDED.
*
*
* @param executionMode
* The method that the pipeline will use to handle multiple executions. The default mode is SUPERSEDED.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ExecutionMode
*/
public PipelineExecution withExecutionMode(ExecutionMode executionMode) {
this.executionMode = executionMode.toString();
return this;
}
/**
*
* The type of the pipeline execution.
*
*
* @param executionType
* The type of the pipeline execution.
* @see ExecutionType
*/
public void setExecutionType(String executionType) {
this.executionType = executionType;
}
/**
*
* The type of the pipeline execution.
*
*
* @return The type of the pipeline execution.
* @see ExecutionType
*/
public String getExecutionType() {
return this.executionType;
}
/**
*
* The type of the pipeline execution.
*
*
* @param executionType
* The type of the pipeline execution.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ExecutionType
*/
public PipelineExecution withExecutionType(String executionType) {
setExecutionType(executionType);
return this;
}
/**
*
* The type of the pipeline execution.
*
*
* @param executionType
* The type of the pipeline execution.
* @see ExecutionType
*/
public void setExecutionType(ExecutionType executionType) {
withExecutionType(executionType);
}
/**
*
* The type of the pipeline execution.
*
*
* @param executionType
* The type of the pipeline execution.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ExecutionType
*/
public PipelineExecution withExecutionType(ExecutionType executionType) {
this.executionType = executionType.toString();
return this;
}
/**
*
* The metadata about the execution pertaining to stage rollback.
*
*
* @param rollbackMetadata
* The metadata about the execution pertaining to stage rollback.
*/
public void setRollbackMetadata(PipelineRollbackMetadata rollbackMetadata) {
this.rollbackMetadata = rollbackMetadata;
}
/**
*
* The metadata about the execution pertaining to stage rollback.
*
*
* @return The metadata about the execution pertaining to stage rollback.
*/
public PipelineRollbackMetadata getRollbackMetadata() {
return this.rollbackMetadata;
}
/**
*
* The metadata about the execution pertaining to stage rollback.
*
*
* @param rollbackMetadata
* The metadata about the execution pertaining to stage rollback.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public PipelineExecution withRollbackMetadata(PipelineRollbackMetadata rollbackMetadata) {
setRollbackMetadata(rollbackMetadata);
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 (getPipelineName() != null)
sb.append("PipelineName: ").append(getPipelineName()).append(",");
if (getPipelineVersion() != null)
sb.append("PipelineVersion: ").append(getPipelineVersion()).append(",");
if (getPipelineExecutionId() != null)
sb.append("PipelineExecutionId: ").append(getPipelineExecutionId()).append(",");
if (getStatus() != null)
sb.append("Status: ").append(getStatus()).append(",");
if (getStatusSummary() != null)
sb.append("StatusSummary: ").append(getStatusSummary()).append(",");
if (getArtifactRevisions() != null)
sb.append("ArtifactRevisions: ").append(getArtifactRevisions()).append(",");
if (getVariables() != null)
sb.append("Variables: ").append(getVariables()).append(",");
if (getTrigger() != null)
sb.append("Trigger: ").append(getTrigger()).append(",");
if (getExecutionMode() != null)
sb.append("ExecutionMode: ").append(getExecutionMode()).append(",");
if (getExecutionType() != null)
sb.append("ExecutionType: ").append(getExecutionType()).append(",");
if (getRollbackMetadata() != null)
sb.append("RollbackMetadata: ").append(getRollbackMetadata());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof PipelineExecution == false)
return false;
PipelineExecution other = (PipelineExecution) obj;
if (other.getPipelineName() == null ^ this.getPipelineName() == null)
return false;
if (other.getPipelineName() != null && other.getPipelineName().equals(this.getPipelineName()) == false)
return false;
if (other.getPipelineVersion() == null ^ this.getPipelineVersion() == null)
return false;
if (other.getPipelineVersion() != null && other.getPipelineVersion().equals(this.getPipelineVersion()) == false)
return false;
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.getStatusSummary() == null ^ this.getStatusSummary() == null)
return false;
if (other.getStatusSummary() != null && other.getStatusSummary().equals(this.getStatusSummary()) == false)
return false;
if (other.getArtifactRevisions() == null ^ this.getArtifactRevisions() == null)
return false;
if (other.getArtifactRevisions() != null && other.getArtifactRevisions().equals(this.getArtifactRevisions()) == false)
return false;
if (other.getVariables() == null ^ this.getVariables() == null)
return false;
if (other.getVariables() != null && other.getVariables().equals(this.getVariables()) == 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.getExecutionMode() == null ^ this.getExecutionMode() == null)
return false;
if (other.getExecutionMode() != null && other.getExecutionMode().equals(this.getExecutionMode()) == false)
return false;
if (other.getExecutionType() == null ^ this.getExecutionType() == null)
return false;
if (other.getExecutionType() != null && other.getExecutionType().equals(this.getExecutionType()) == false)
return false;
if (other.getRollbackMetadata() == null ^ this.getRollbackMetadata() == null)
return false;
if (other.getRollbackMetadata() != null && other.getRollbackMetadata().equals(this.getRollbackMetadata()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getPipelineName() == null) ? 0 : getPipelineName().hashCode());
hashCode = prime * hashCode + ((getPipelineVersion() == null) ? 0 : getPipelineVersion().hashCode());
hashCode = prime * hashCode + ((getPipelineExecutionId() == null) ? 0 : getPipelineExecutionId().hashCode());
hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode());
hashCode = prime * hashCode + ((getStatusSummary() == null) ? 0 : getStatusSummary().hashCode());
hashCode = prime * hashCode + ((getArtifactRevisions() == null) ? 0 : getArtifactRevisions().hashCode());
hashCode = prime * hashCode + ((getVariables() == null) ? 0 : getVariables().hashCode());
hashCode = prime * hashCode + ((getTrigger() == null) ? 0 : getTrigger().hashCode());
hashCode = prime * hashCode + ((getExecutionMode() == null) ? 0 : getExecutionMode().hashCode());
hashCode = prime * hashCode + ((getExecutionType() == null) ? 0 : getExecutionType().hashCode());
hashCode = prime * hashCode + ((getRollbackMetadata() == null) ? 0 : getRollbackMetadata().hashCode());
return hashCode;
}
@Override
public PipelineExecution clone() {
try {
return (PipelineExecution) 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.PipelineExecutionMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}