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

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

/*
 * Copyright 2011-2016 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 com.amazonaws.AmazonWebServiceRequest;

/**
 * 

* Represents the input of a put action revision action. *

*/ public class PutActionRevisionRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *

* The name of the pipeline that will start processing the revision to the source. *

*/ private String pipelineName; /** *

* The name of the stage that contains the action that will act upon the revision. *

*/ private String stageName; /** *

* The name of the action that will process the revision. *

*/ private String actionName; private ActionRevision actionRevision; /** *

* The name of the pipeline that will start processing the revision to the source. *

* * @param pipelineName * The name of the pipeline that will start processing the revision to the source. */ public void setPipelineName(String pipelineName) { this.pipelineName = pipelineName; } /** *

* The name of the pipeline that will start processing the revision to the source. *

* * @return The name of the pipeline that will start processing the revision to the source. */ public String getPipelineName() { return this.pipelineName; } /** *

* The name of the pipeline that will start processing the revision to the source. *

* * @param pipelineName * The name of the pipeline that will start processing the revision to the source. * @return Returns a reference to this object so that method calls can be chained together. */ public PutActionRevisionRequest withPipelineName(String pipelineName) { setPipelineName(pipelineName); return this; } /** *

* The name of the stage that contains the action that will act upon the revision. *

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

* The name of the stage that contains the action that will act upon the revision. *

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

* The name of the stage that contains the action that will act upon the revision. *

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

* The name of the action that will process the revision. *

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

* The name of the action that will process the revision. *

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

* The name of the action that will process the revision. *

* * @param actionName * The name of the action that will process the revision. * @return Returns a reference to this object so that method calls can be chained together. */ public PutActionRevisionRequest withActionName(String actionName) { setActionName(actionName); return this; } /** * @param actionRevision */ public void setActionRevision(ActionRevision actionRevision) { this.actionRevision = actionRevision; } /** * @return */ public ActionRevision getActionRevision() { return this.actionRevision; } /** * @param actionRevision * @return Returns a reference to this object so that method calls can be chained together. */ public PutActionRevisionRequest withActionRevision(ActionRevision actionRevision) { setActionRevision(actionRevision); return this; } /** * Returns a string representation of this object; useful for testing and debugging. * * @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: " + getPipelineName() + ","); if (getStageName() != null) sb.append("StageName: " + getStageName() + ","); if (getActionName() != null) sb.append("ActionName: " + getActionName() + ","); if (getActionRevision() != null) sb.append("ActionRevision: " + getActionRevision()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof PutActionRevisionRequest == false) return false; PutActionRevisionRequest other = (PutActionRevisionRequest) obj; if (other.getPipelineName() == null ^ this.getPipelineName() == null) return false; if (other.getPipelineName() != null && other.getPipelineName().equals(this.getPipelineName()) == 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.getActionRevision() == null ^ this.getActionRevision() == null) return false; if (other.getActionRevision() != null && other.getActionRevision().equals(this.getActionRevision()) == 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 + ((getStageName() == null) ? 0 : getStageName().hashCode()); hashCode = prime * hashCode + ((getActionName() == null) ? 0 : getActionName().hashCode()); hashCode = prime * hashCode + ((getActionRevision() == null) ? 0 : getActionRevision().hashCode()); return hashCode; } @Override public PutActionRevisionRequest clone() { return (PutActionRevisionRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy