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 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.AmazonWebServiceRequest;

/**
 * 

* Represents the input of a PutApprovalResult action. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class PutApprovalResultRequest extends com.amazonaws.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. It 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. It 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. It 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. It 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. It 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. It 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. It 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. 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 (getStageName() != null) sb.append("StageName: ").append(getStageName()).append(","); if (getActionName() != null) sb.append("ActionName: ").append(getActionName()).append(","); if (getResult() != null) sb.append("Result: ").append(getResult()).append(","); if (getToken() != null) sb.append("Token: ").append(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 - 2024 Weber Informatics LLC | Privacy Policy