/* * Copyright 2018-2023 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.apigatewayv2.model; import java.io.Serializable; import javax.annotation.Generated; @Generated("com.amazonaws:aws-java-sdk-code-generator") public class GetDeploymentResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable { /** *

* Specifies whether a deployment was automatically released. *

*/ private Boolean autoDeployed; /** *

* The date and time when the Deployment resource was created. *

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

* The identifier for the deployment. *

*/ private String deploymentId; /** *

* The status of the deployment: PENDING, FAILED, or SUCCEEDED. *

*/ private String deploymentStatus; /** *

* May contain additional feedback on the status of an API deployment. *

*/ private String deploymentStatusMessage; /** *

* The description for the deployment. *

*/ private String description; /** *

* Specifies whether a deployment was automatically released. *

* * @param autoDeployed * Specifies whether a deployment was automatically released. */ public void setAutoDeployed(Boolean autoDeployed) { this.autoDeployed = autoDeployed; } /** *

* Specifies whether a deployment was automatically released. *

* * @return Specifies whether a deployment was automatically released. */ public Boolean getAutoDeployed() { return this.autoDeployed; } /** *

* Specifies whether a deployment was automatically released. *

* * @param autoDeployed * Specifies whether a deployment was automatically released. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDeploymentResult withAutoDeployed(Boolean autoDeployed) { setAutoDeployed(autoDeployed); return this; } /** *

* Specifies whether a deployment was automatically released. *

* * @return Specifies whether a deployment was automatically released. */ public Boolean isAutoDeployed() { return this.autoDeployed; } /** *

* The date and time when the Deployment resource was created. *

* * @param createdDate * The date and time when the Deployment resource was created. */ public void setCreatedDate(java.util.Date createdDate) { this.createdDate = createdDate; } /** *

* The date and time when the Deployment resource was created. *

* * @return The date and time when the Deployment resource was created. */ public java.util.Date getCreatedDate() { return this.createdDate; } /** *

* The date and time when the Deployment resource was created. *

* * @param createdDate * The date and time when the Deployment resource was created. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDeploymentResult withCreatedDate(java.util.Date createdDate) { setCreatedDate(createdDate); return this; } /** *

* The identifier for the deployment. *

* * @param deploymentId * The identifier for the deployment. */ public void setDeploymentId(String deploymentId) { this.deploymentId = deploymentId; } /** *

* The identifier for the deployment. *

* * @return The identifier for the deployment. */ public String getDeploymentId() { return this.deploymentId; } /** *

* The identifier for the deployment. *

* * @param deploymentId * The identifier for the deployment. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDeploymentResult withDeploymentId(String deploymentId) { setDeploymentId(deploymentId); return this; } /** *

* The status of the deployment: PENDING, FAILED, or SUCCEEDED. *

* * @param deploymentStatus * The status of the deployment: PENDING, FAILED, or SUCCEEDED. * @see DeploymentStatus */ public void setDeploymentStatus(String deploymentStatus) { this.deploymentStatus = deploymentStatus; } /** *

* The status of the deployment: PENDING, FAILED, or SUCCEEDED. *

* * @return The status of the deployment: PENDING, FAILED, or SUCCEEDED. * @see DeploymentStatus */ public String getDeploymentStatus() { return this.deploymentStatus; } /** *

* The status of the deployment: PENDING, FAILED, or SUCCEEDED. *

* * @param deploymentStatus * The status of the deployment: PENDING, FAILED, or SUCCEEDED. * @return Returns a reference to this object so that method calls can be chained together. * @see DeploymentStatus */ public GetDeploymentResult withDeploymentStatus(String deploymentStatus) { setDeploymentStatus(deploymentStatus); return this; } /** *

* The status of the deployment: PENDING, FAILED, or SUCCEEDED. *

* * @param deploymentStatus * The status of the deployment: PENDING, FAILED, or SUCCEEDED. * @return Returns a reference to this object so that method calls can be chained together. * @see DeploymentStatus */ public GetDeploymentResult withDeploymentStatus(DeploymentStatus deploymentStatus) { this.deploymentStatus = deploymentStatus.toString(); return this; } /** *

* May contain additional feedback on the status of an API deployment. *

* * @param deploymentStatusMessage * May contain additional feedback on the status of an API deployment. */ public void setDeploymentStatusMessage(String deploymentStatusMessage) { this.deploymentStatusMessage = deploymentStatusMessage; } /** *

* May contain additional feedback on the status of an API deployment. *

* * @return May contain additional feedback on the status of an API deployment. */ public String getDeploymentStatusMessage() { return this.deploymentStatusMessage; } /** *

* May contain additional feedback on the status of an API deployment. *

* * @param deploymentStatusMessage * May contain additional feedback on the status of an API deployment. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDeploymentResult withDeploymentStatusMessage(String deploymentStatusMessage) { setDeploymentStatusMessage(deploymentStatusMessage); return this; } /** *

* The description for the deployment. *

* * @param description * The description for the deployment. */ public void setDescription(String description) { this.description = description; } /** *

* The description for the deployment. *

* * @return The description for the deployment. */ public String getDescription() { return this.description; } /** *

* The description for the deployment. *

* * @param description * The description for the deployment. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDeploymentResult withDescription(String description) { setDescription(description); 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 (getAutoDeployed() != null) sb.append("AutoDeployed: ").append(getAutoDeployed()).append(","); if (getCreatedDate() != null) sb.append("CreatedDate: ").append(getCreatedDate()).append(","); if (getDeploymentId() != null) sb.append("DeploymentId: ").append(getDeploymentId()).append(","); if (getDeploymentStatus() != null) sb.append("DeploymentStatus: ").append(getDeploymentStatus()).append(","); if (getDeploymentStatusMessage() != null) sb.append("DeploymentStatusMessage: ").append(getDeploymentStatusMessage()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetDeploymentResult == false) return false; GetDeploymentResult other = (GetDeploymentResult) obj; if (other.getAutoDeployed() == null ^ this.getAutoDeployed() == null) return false; if (other.getAutoDeployed() != null && other.getAutoDeployed().equals(this.getAutoDeployed()) == false) return false; if (other.getCreatedDate() == null ^ this.getCreatedDate() == null) return false; if (other.getCreatedDate() != null && other.getCreatedDate().equals(this.getCreatedDate()) == false) return false; if (other.getDeploymentId() == null ^ this.getDeploymentId() == null) return false; if (other.getDeploymentId() != null && other.getDeploymentId().equals(this.getDeploymentId()) == false) return false; if (other.getDeploymentStatus() == null ^ this.getDeploymentStatus() == null) return false; if (other.getDeploymentStatus() != null && other.getDeploymentStatus().equals(this.getDeploymentStatus()) == false) return false; if (other.getDeploymentStatusMessage() == null ^ this.getDeploymentStatusMessage() == null) return false; if (other.getDeploymentStatusMessage() != null && other.getDeploymentStatusMessage().equals(this.getDeploymentStatusMessage()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAutoDeployed() == null) ? 0 : getAutoDeployed().hashCode()); hashCode = prime * hashCode + ((getCreatedDate() == null) ? 0 : getCreatedDate().hashCode()); hashCode = prime * hashCode + ((getDeploymentId() == null) ? 0 : getDeploymentId().hashCode()); hashCode = prime * hashCode + ((getDeploymentStatus() == null) ? 0 : getDeploymentStatus().hashCode()); hashCode = prime * hashCode + ((getDeploymentStatusMessage() == null) ? 0 : getDeploymentStatusMessage().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); return hashCode; } @Override public GetDeploymentResult clone() { try { return (GetDeploymentResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }