All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.codepipeline.model.ActionExecutionDetail Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS CodePipeline module holds the client classes that are used for communicating with AWS CodePipeline

There is a newer version: 1.12.772
Show newest version
/*
 * Copyright 2015-2020 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;

/**
 * 

* Returns information about an execution of an action, including the action execution ID, and the name, version, and * timing of the action. *

* * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ActionExecutionDetail implements Serializable, Cloneable, StructuredPojo { /** *

* The pipeline execution ID for the action execution. *

*/ private String pipelineExecutionId; /** *

* The action execution ID. *

*/ private String actionExecutionId; /** *

* The version of the pipeline where the action was run. *

*/ private Integer pipelineVersion; /** *

* The name of the stage that contains the action. *

*/ private String stageName; /** *

* The name of the action. *

*/ private String actionName; /** *

* The start time of the action execution. *

*/ private java.util.Date startTime; /** *

* The last update time of the action execution. *

*/ private java.util.Date lastUpdateTime; /** *

* The status of the action execution. Status categories are InProgress, Succeeded, and * Failed. *

*/ private String status; /** *

* Input details for the action execution, such as role ARN, Region, and input artifacts. *

*/ private ActionExecutionInput input; /** *

* Output details for the action execution, such as the action execution result. *

*/ private ActionExecutionOutput output; /** *

* The pipeline execution ID for the action execution. *

* * @param pipelineExecutionId * The pipeline execution ID for the action execution. */ public void setPipelineExecutionId(String pipelineExecutionId) { this.pipelineExecutionId = pipelineExecutionId; } /** *

* The pipeline execution ID for the action execution. *

* * @return The pipeline execution ID for the action execution. */ public String getPipelineExecutionId() { return this.pipelineExecutionId; } /** *

* The pipeline execution ID for the action execution. *

* * @param pipelineExecutionId * The pipeline execution ID for the action execution. * @return Returns a reference to this object so that method calls can be chained together. */ public ActionExecutionDetail withPipelineExecutionId(String pipelineExecutionId) { setPipelineExecutionId(pipelineExecutionId); return this; } /** *

* The action execution ID. *

* * @param actionExecutionId * The action execution ID. */ public void setActionExecutionId(String actionExecutionId) { this.actionExecutionId = actionExecutionId; } /** *

* The action execution ID. *

* * @return The action execution ID. */ public String getActionExecutionId() { return this.actionExecutionId; } /** *

* The action execution ID. *

* * @param actionExecutionId * The action execution ID. * @return Returns a reference to this object so that method calls can be chained together. */ public ActionExecutionDetail withActionExecutionId(String actionExecutionId) { setActionExecutionId(actionExecutionId); return this; } /** *

* The version of the pipeline where the action was run. *

* * @param pipelineVersion * The version of the pipeline where the action was run. */ public void setPipelineVersion(Integer pipelineVersion) { this.pipelineVersion = pipelineVersion; } /** *

* The version of the pipeline where the action was run. *

* * @return The version of the pipeline where the action was run. */ public Integer getPipelineVersion() { return this.pipelineVersion; } /** *

* The version of the pipeline where the action was run. *

* * @param pipelineVersion * The version of the pipeline where the action was run. * @return Returns a reference to this object so that method calls can be chained together. */ public ActionExecutionDetail withPipelineVersion(Integer pipelineVersion) { setPipelineVersion(pipelineVersion); return this; } /** *

* The name of the stage that contains the action. *

* * @param stageName * The name of the stage that contains the action. */ public void setStageName(String stageName) { this.stageName = stageName; } /** *

* The name of the stage that contains the action. *

* * @return The name of the stage that contains the action. */ public String getStageName() { return this.stageName; } /** *

* The name of the stage that contains the action. *

* * @param stageName * The name of the stage that contains the action. * @return Returns a reference to this object so that method calls can be chained together. */ public ActionExecutionDetail withStageName(String stageName) { setStageName(stageName); return this; } /** *

* The name of the action. *

* * @param actionName * The name of the action. */ public void setActionName(String actionName) { this.actionName = actionName; } /** *

* The name of the action. *

* * @return The name of the action. */ public String getActionName() { return this.actionName; } /** *

* The name of the action. *

* * @param actionName * The name of the action. * @return Returns a reference to this object so that method calls can be chained together. */ public ActionExecutionDetail withActionName(String actionName) { setActionName(actionName); return this; } /** *

* The start time of the action execution. *

* * @param startTime * The start time of the action execution. */ public void setStartTime(java.util.Date startTime) { this.startTime = startTime; } /** *

* The start time of the action execution. *

* * @return The start time of the action execution. */ public java.util.Date getStartTime() { return this.startTime; } /** *

* The start time of the action execution. *

* * @param startTime * The start time of the action execution. * @return Returns a reference to this object so that method calls can be chained together. */ public ActionExecutionDetail withStartTime(java.util.Date startTime) { setStartTime(startTime); return this; } /** *

* The last update time of the action execution. *

* * @param lastUpdateTime * The last update time of the action execution. */ public void setLastUpdateTime(java.util.Date lastUpdateTime) { this.lastUpdateTime = lastUpdateTime; } /** *

* The last update time of the action execution. *

* * @return The last update time of the action execution. */ public java.util.Date getLastUpdateTime() { return this.lastUpdateTime; } /** *

* The last update time of the action execution. *

* * @param lastUpdateTime * The last update time of the action execution. * @return Returns a reference to this object so that method calls can be chained together. */ public ActionExecutionDetail withLastUpdateTime(java.util.Date lastUpdateTime) { setLastUpdateTime(lastUpdateTime); return this; } /** *

* The status of the action execution. Status categories are InProgress, Succeeded, and * Failed. *

* * @param status * The status of the action execution. Status categories are InProgress, Succeeded, * and Failed. * @see ActionExecutionStatus */ public void setStatus(String status) { this.status = status; } /** *

* The status of the action execution. Status categories are InProgress, Succeeded, and * Failed. *

* * @return The status of the action execution. Status categories are InProgress, Succeeded * , and Failed. * @see ActionExecutionStatus */ public String getStatus() { return this.status; } /** *

* The status of the action execution. Status categories are InProgress, Succeeded, and * Failed. *

* * @param status * The status of the action execution. Status categories are InProgress, Succeeded, * and Failed. * @return Returns a reference to this object so that method calls can be chained together. * @see ActionExecutionStatus */ public ActionExecutionDetail withStatus(String status) { setStatus(status); return this; } /** *

* The status of the action execution. Status categories are InProgress, Succeeded, and * Failed. *

* * @param status * The status of the action execution. Status categories are InProgress, Succeeded, * and Failed. * @return Returns a reference to this object so that method calls can be chained together. * @see ActionExecutionStatus */ public ActionExecutionDetail withStatus(ActionExecutionStatus status) { this.status = status.toString(); return this; } /** *

* Input details for the action execution, such as role ARN, Region, and input artifacts. *

* * @param input * Input details for the action execution, such as role ARN, Region, and input artifacts. */ public void setInput(ActionExecutionInput input) { this.input = input; } /** *

* Input details for the action execution, such as role ARN, Region, and input artifacts. *

* * @return Input details for the action execution, such as role ARN, Region, and input artifacts. */ public ActionExecutionInput getInput() { return this.input; } /** *

* Input details for the action execution, such as role ARN, Region, and input artifacts. *

* * @param input * Input details for the action execution, such as role ARN, Region, and input artifacts. * @return Returns a reference to this object so that method calls can be chained together. */ public ActionExecutionDetail withInput(ActionExecutionInput input) { setInput(input); return this; } /** *

* Output details for the action execution, such as the action execution result. *

* * @param output * Output details for the action execution, such as the action execution result. */ public void setOutput(ActionExecutionOutput output) { this.output = output; } /** *

* Output details for the action execution, such as the action execution result. *

* * @return Output details for the action execution, such as the action execution result. */ public ActionExecutionOutput getOutput() { return this.output; } /** *

* Output details for the action execution, such as the action execution result. *

* * @param output * Output details for the action execution, such as the action execution result. * @return Returns a reference to this object so that method calls can be chained together. */ public ActionExecutionDetail withOutput(ActionExecutionOutput output) { setOutput(output); 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 (getActionExecutionId() != null) sb.append("ActionExecutionId: ").append(getActionExecutionId()).append(","); if (getPipelineVersion() != null) sb.append("PipelineVersion: ").append(getPipelineVersion()).append(","); if (getStageName() != null) sb.append("StageName: ").append(getStageName()).append(","); if (getActionName() != null) sb.append("ActionName: ").append(getActionName()).append(","); if (getStartTime() != null) sb.append("StartTime: ").append(getStartTime()).append(","); if (getLastUpdateTime() != null) sb.append("LastUpdateTime: ").append(getLastUpdateTime()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getInput() != null) sb.append("Input: ").append(getInput()).append(","); if (getOutput() != null) sb.append("Output: ").append(getOutput()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ActionExecutionDetail == false) return false; ActionExecutionDetail other = (ActionExecutionDetail) obj; if (other.getPipelineExecutionId() == null ^ this.getPipelineExecutionId() == null) return false; if (other.getPipelineExecutionId() != null && other.getPipelineExecutionId().equals(this.getPipelineExecutionId()) == false) return false; if (other.getActionExecutionId() == null ^ this.getActionExecutionId() == null) return false; if (other.getActionExecutionId() != null && other.getActionExecutionId().equals(this.getActionExecutionId()) == 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.getStageName() == null ^ this.getStageName() == null) return false; if (other.getStageName() != null && other.getStageName().equals(this.getStageName()) == false) return false; if (other.getActionName() == null ^ this.getActionName() == null) return false; if (other.getActionName() != null && other.getActionName().equals(this.getActionName()) == 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.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getInput() == null ^ this.getInput() == null) return false; if (other.getInput() != null && other.getInput().equals(this.getInput()) == false) return false; if (other.getOutput() == null ^ this.getOutput() == null) return false; if (other.getOutput() != null && other.getOutput().equals(this.getOutput()) == 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 + ((getActionExecutionId() == null) ? 0 : getActionExecutionId().hashCode()); hashCode = prime * hashCode + ((getPipelineVersion() == null) ? 0 : getPipelineVersion().hashCode()); hashCode = prime * hashCode + ((getStageName() == null) ? 0 : getStageName().hashCode()); hashCode = prime * hashCode + ((getActionName() == null) ? 0 : getActionName().hashCode()); hashCode = prime * hashCode + ((getStartTime() == null) ? 0 : getStartTime().hashCode()); hashCode = prime * hashCode + ((getLastUpdateTime() == null) ? 0 : getLastUpdateTime().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getInput() == null) ? 0 : getInput().hashCode()); hashCode = prime * hashCode + ((getOutput() == null) ? 0 : getOutput().hashCode()); return hashCode; } @Override public ActionExecutionDetail clone() { try { return (ActionExecutionDetail) 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.ActionExecutionDetailMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy