@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;
  }