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

com.amazonaws.services.elasticbeanstalk.model.Deployment Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Elastic Beanstalk module holds the client classes that are used for communicating with AWS Elastic Beanstalk Service

There is a newer version: 1.12.780
Show newest version
/*
 * Copyright 2019-2024 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.elasticbeanstalk.model;

import java.io.Serializable;
import javax.annotation.Generated;

/**
 * 

* Information about an application version deployment. *

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

* The version label of the application version in the deployment. *

*/ private String versionLabel; /** *

* The ID of the deployment. This number increases by one each time that you deploy source code or change instance * configuration settings. *

*/ private Long deploymentId; /** *

* The status of the deployment: *

*
    *
  • *

    * In Progress : The deployment is in progress. *

    *
  • *
  • *

    * Deployed : The deployment succeeded. *

    *
  • *
  • *

    * Failed : The deployment failed. *

    *
  • *
*/ private String status; /** *

* For in-progress deployments, the time that the deployment started. *

*

* For completed deployments, the time that the deployment ended. *

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

* The version label of the application version in the deployment. *

* * @param versionLabel * The version label of the application version in the deployment. */ public void setVersionLabel(String versionLabel) { this.versionLabel = versionLabel; } /** *

* The version label of the application version in the deployment. *

* * @return The version label of the application version in the deployment. */ public String getVersionLabel() { return this.versionLabel; } /** *

* The version label of the application version in the deployment. *

* * @param versionLabel * The version label of the application version in the deployment. * @return Returns a reference to this object so that method calls can be chained together. */ public Deployment withVersionLabel(String versionLabel) { setVersionLabel(versionLabel); return this; } /** *

* The ID of the deployment. This number increases by one each time that you deploy source code or change instance * configuration settings. *

* * @param deploymentId * The ID of the deployment. This number increases by one each time that you deploy source code or change * instance configuration settings. */ public void setDeploymentId(Long deploymentId) { this.deploymentId = deploymentId; } /** *

* The ID of the deployment. This number increases by one each time that you deploy source code or change instance * configuration settings. *

* * @return The ID of the deployment. This number increases by one each time that you deploy source code or change * instance configuration settings. */ public Long getDeploymentId() { return this.deploymentId; } /** *

* The ID of the deployment. This number increases by one each time that you deploy source code or change instance * configuration settings. *

* * @param deploymentId * The ID of the deployment. This number increases by one each time that you deploy source code or change * instance configuration settings. * @return Returns a reference to this object so that method calls can be chained together. */ public Deployment withDeploymentId(Long deploymentId) { setDeploymentId(deploymentId); return this; } /** *

* The status of the deployment: *

*
    *
  • *

    * In Progress : The deployment is in progress. *

    *
  • *
  • *

    * Deployed : The deployment succeeded. *

    *
  • *
  • *

    * Failed : The deployment failed. *

    *
  • *
* * @param status * The status of the deployment:

*
    *
  • *

    * In Progress : The deployment is in progress. *

    *
  • *
  • *

    * Deployed : The deployment succeeded. *

    *
  • *
  • *

    * Failed : The deployment failed. *

    *
  • */ public void setStatus(String status) { this.status = status; } /** *

    * The status of the deployment: *

    *
      *
    • *

      * In Progress : The deployment is in progress. *

      *
    • *
    • *

      * Deployed : The deployment succeeded. *

      *
    • *
    • *

      * Failed : The deployment failed. *

      *
    • *
    * * @return The status of the deployment:

    *
      *
    • *

      * In Progress : The deployment is in progress. *

      *
    • *
    • *

      * Deployed : The deployment succeeded. *

      *
    • *
    • *

      * Failed : The deployment failed. *

      *
    • */ public String getStatus() { return this.status; } /** *

      * The status of the deployment: *

      *
        *
      • *

        * In Progress : The deployment is in progress. *

        *
      • *
      • *

        * Deployed : The deployment succeeded. *

        *
      • *
      • *

        * Failed : The deployment failed. *

        *
      • *
      * * @param status * The status of the deployment:

      *
        *
      • *

        * In Progress : The deployment is in progress. *

        *
      • *
      • *

        * Deployed : The deployment succeeded. *

        *
      • *
      • *

        * Failed : The deployment failed. *

        *
      • * @return Returns a reference to this object so that method calls can be chained together. */ public Deployment withStatus(String status) { setStatus(status); return this; } /** *

        * For in-progress deployments, the time that the deployment started. *

        *

        * For completed deployments, the time that the deployment ended. *

        * * @param deploymentTime * For in-progress deployments, the time that the deployment started.

        *

        * For completed deployments, the time that the deployment ended. */ public void setDeploymentTime(java.util.Date deploymentTime) { this.deploymentTime = deploymentTime; } /** *

        * For in-progress deployments, the time that the deployment started. *

        *

        * For completed deployments, the time that the deployment ended. *

        * * @return For in-progress deployments, the time that the deployment started.

        *

        * For completed deployments, the time that the deployment ended. */ public java.util.Date getDeploymentTime() { return this.deploymentTime; } /** *

        * For in-progress deployments, the time that the deployment started. *

        *

        * For completed deployments, the time that the deployment ended. *

        * * @param deploymentTime * For in-progress deployments, the time that the deployment started.

        *

        * For completed deployments, the time that the deployment ended. * @return Returns a reference to this object so that method calls can be chained together. */ public Deployment withDeploymentTime(java.util.Date deploymentTime) { setDeploymentTime(deploymentTime); 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 (getVersionLabel() != null) sb.append("VersionLabel: ").append(getVersionLabel()).append(","); if (getDeploymentId() != null) sb.append("DeploymentId: ").append(getDeploymentId()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getDeploymentTime() != null) sb.append("DeploymentTime: ").append(getDeploymentTime()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Deployment == false) return false; Deployment other = (Deployment) obj; if (other.getVersionLabel() == null ^ this.getVersionLabel() == null) return false; if (other.getVersionLabel() != null && other.getVersionLabel().equals(this.getVersionLabel()) == 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.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getDeploymentTime() == null ^ this.getDeploymentTime() == null) return false; if (other.getDeploymentTime() != null && other.getDeploymentTime().equals(this.getDeploymentTime()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getVersionLabel() == null) ? 0 : getVersionLabel().hashCode()); hashCode = prime * hashCode + ((getDeploymentId() == null) ? 0 : getDeploymentId().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getDeploymentTime() == null) ? 0 : getDeploymentTime().hashCode()); return hashCode; } @Override public Deployment clone() { try { return (Deployment) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy