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

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

Go to download

The AWS SDK for Java with support for OSGi. The AWS SDK for Java provides Java APIs for building software on AWS' cost-effective, scalable, and reliable infrastructure products. The AWS Java SDK allows developers to code against APIs for all of Amazon's infrastructure web services (Amazon S3, Amazon EC2, Amazon SQS, Amazon Relational Database Service, Amazon AutoScaling, etc).

There is a newer version: 1.11.60
Show newest version
/*
 * 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 approval result action. *

*/ public class PutApprovalResultRequest extends AmazonWebServiceRequest implements Serializable, Cloneable { /** *

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

*/ private String pipelineName; /** *

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

*/ private String stageName; /** *

* The name of the action for which approval is requested. *

*/ private String actionName; /** *

* Represents information about the result of the approval request. *

*/ private ApprovalResult result; /** *

* The system-generated token used to identify a unique approval request. * The token for each open approval request can be obtained using the * GetPipelineState action and is used to validate that the approval * request corresponding to this token is still valid. *

*/ private String token; /** *

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

* * @param pipelineName * The name of the pipeline that contains the action. */ public void setPipelineName(String pipelineName) { this.pipelineName = pipelineName; } /** *

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

* * @return The name of the pipeline that contains the action. */ public String getPipelineName() { return this.pipelineName; } /** *

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

* * @param pipelineName * The name of the pipeline that contains the action. * @return Returns a reference to this object so that method calls can be * chained together. */ public PutApprovalResultRequest withPipelineName(String pipelineName) { setPipelineName(pipelineName); 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 PutApprovalResultRequest withStageName(String stageName) { setStageName(stageName); return this; } /** *

* The name of the action for which approval is requested. *

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

* The name of the action for which approval is requested. *

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

* The name of the action for which approval is requested. *

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

* Represents information about the result of the approval request. *

* * @param result * Represents information about the result of the approval request. */ public void setResult(ApprovalResult result) { this.result = result; } /** *

* Represents information about the result of the approval request. *

* * @return Represents information about the result of the approval request. */ public ApprovalResult getResult() { return this.result; } /** *

* Represents information about the result of the approval request. *

* * @param result * Represents information about the result of the approval request. * @return Returns a reference to this object so that method calls can be * chained together. */ public PutApprovalResultRequest withResult(ApprovalResult result) { setResult(result); return this; } /** *

* The system-generated token used to identify a unique approval request. * The token for each open approval request can be obtained using the * GetPipelineState action and is used to validate that the approval * request corresponding to this token is still valid. *

* * @param token * The system-generated token used to identify a unique approval * request. The token for each open approval request can be obtained * using the GetPipelineState action and is used to validate * that the approval request corresponding to this token is still * valid. */ public void setToken(String token) { this.token = token; } /** *

* The system-generated token used to identify a unique approval request. * The token for each open approval request can be obtained using the * GetPipelineState action and is used to validate that the approval * request corresponding to this token is still valid. *

* * @return The system-generated token used to identify a unique approval * request. The token for each open approval request can be obtained * using the GetPipelineState action and is used to validate * that the approval request corresponding to this token is still * valid. */ public String getToken() { return this.token; } /** *

* The system-generated token used to identify a unique approval request. * The token for each open approval request can be obtained using the * GetPipelineState action and is used to validate that the approval * request corresponding to this token is still valid. *

* * @param token * The system-generated token used to identify a unique approval * request. The token for each open approval request can be obtained * using the GetPipelineState action and is used to validate * that the approval request corresponding to this token is still * valid. * @return Returns a reference to this object so that method calls can be * chained together. */ public PutApprovalResultRequest withToken(String token) { setToken(token); 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 (getResult() != null) sb.append("Result: " + getResult() + ","); if (getToken() != null) sb.append("Token: " + getToken()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof PutApprovalResultRequest == false) return false; PutApprovalResultRequest other = (PutApprovalResultRequest) 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.getResult() == null ^ this.getResult() == null) return false; if (other.getResult() != null && other.getResult().equals(this.getResult()) == false) return false; if (other.getToken() == null ^ this.getToken() == null) return false; if (other.getToken() != null && other.getToken().equals(this.getToken()) == 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 + ((getResult() == null) ? 0 : getResult().hashCode()); hashCode = prime * hashCode + ((getToken() == null) ? 0 : getToken().hashCode()); return hashCode; } @Override public PutApprovalResultRequest clone() { return (PutApprovalResultRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy