@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getApplicationName() == null) ? 0 : getApplicationName().hashCode()); hashCode = prime * hashCode + ((getTerminateEnvByForce() == null) ? 0 : getTerminateEnvByForce().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DeleteApplicationRequest == false) return false; DeleteApplicationRequest other = (DeleteApplicationRequest) obj; if (other.getApplicationName() == null ^ this.getApplicationName() == null) return false; if (other.getApplicationName() != null && other.getApplicationName().equals(this.getApplicationName()) == false) return false; if (other.getTerminateEnvByForce() == null ^ this.getTerminateEnvByForce() == null) return false; if (other.getTerminateEnvByForce() != null && other.getTerminateEnvByForce().equals(this.getTerminateEnvByForce()) == false) return false; return true; }
/** * 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 (getApplicationName() != null) sb.append("ApplicationName: ").append(getApplicationName()).append(","); if (getTerminateEnvByForce() != null) sb.append("TerminateEnvByForce: ").append(getTerminateEnvByForce()); sb.append("}"); return sb.toString(); }
public Request<DeleteApplicationRequest> marshall(DeleteApplicationRequest deleteApplicationRequest) { if (deleteApplicationRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } Request<DeleteApplicationRequest> request = new DefaultRequest<DeleteApplicationRequest>(deleteApplicationRequest, "AWSElasticBeanstalk"); request.addParameter("Action", "DeleteApplication"); request.addParameter("Version", "2010-12-01"); request.setHttpMethod(HttpMethodName.POST); if (deleteApplicationRequest.getApplicationName() != null) { request.addParameter("ApplicationName", StringUtils.fromString(deleteApplicationRequest.getApplicationName())); } if (deleteApplicationRequest.getTerminateEnvByForce() != null) { request.addParameter("TerminateEnvByForce", StringUtils.fromBoolean(deleteApplicationRequest.getTerminateEnvByForce())); } return request; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getApplicationName() == null) ? 0 : getApplicationName().hashCode()); hashCode = prime * hashCode + ((getTerminateEnvByForce() == null) ? 0 : getTerminateEnvByForce().hashCode()); return hashCode; }
/** * 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 (getApplicationName() != null) sb.append("ApplicationName: ").append(getApplicationName()).append(","); if (getTerminateEnvByForce() != null) sb.append("TerminateEnvByForce: ").append(getTerminateEnvByForce()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DeleteApplicationRequest == false) return false; DeleteApplicationRequest other = (DeleteApplicationRequest) obj; if (other.getApplicationName() == null ^ this.getApplicationName() == null) return false; if (other.getApplicationName() != null && other.getApplicationName().equals(this.getApplicationName()) == false) return false; if (other.getTerminateEnvByForce() == null ^ this.getTerminateEnvByForce() == null) return false; if (other.getTerminateEnvByForce() != null && other.getTerminateEnvByForce().equals(this.getTerminateEnvByForce()) == false) return false; return true; }
public Request<DeleteApplicationRequest> marshall(DeleteApplicationRequest deleteApplicationRequest) { if (deleteApplicationRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } Request<DeleteApplicationRequest> request = new DefaultRequest<DeleteApplicationRequest>(deleteApplicationRequest, "AWSElasticBeanstalk"); request.addParameter("Action", "DeleteApplication"); request.addParameter("Version", "2010-12-01"); request.setHttpMethod(HttpMethodName.POST); if (deleteApplicationRequest.getApplicationName() != null) { request.addParameter("ApplicationName", StringUtils.fromString(deleteApplicationRequest.getApplicationName())); } if (deleteApplicationRequest.getTerminateEnvByForce() != null) { request.addParameter("TerminateEnvByForce", StringUtils.fromBoolean(deleteApplicationRequest.getTerminateEnvByForce())); } return request; }