@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDBInstanceIdentifier() == null) ? 0 : getDBInstanceIdentifier().hashCode()); hashCode = prime * hashCode + ((getForceFailover() == null) ? 0 : getForceFailover().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 (getDBInstanceIdentifier() != null) sb.append("DBInstanceIdentifier: ").append(getDBInstanceIdentifier()).append(","); if (getForceFailover() != null) sb.append("ForceFailover: ").append(getForceFailover()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof RebootDBInstanceRequest == false) return false; RebootDBInstanceRequest other = (RebootDBInstanceRequest) obj; if (other.getDBInstanceIdentifier() == null ^ this.getDBInstanceIdentifier() == null) return false; if (other.getDBInstanceIdentifier() != null && other.getDBInstanceIdentifier().equals(this.getDBInstanceIdentifier()) == false) return false; if (other.getForceFailover() == null ^ this.getForceFailover() == null) return false; if (other.getForceFailover() != null && other.getForceFailover().equals(this.getForceFailover()) == false) return false; return true; }
public Request<RebootDBInstanceRequest> marshall(RebootDBInstanceRequest rebootDBInstanceRequest) { if (rebootDBInstanceRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } Request<RebootDBInstanceRequest> request = new DefaultRequest<RebootDBInstanceRequest>(rebootDBInstanceRequest, "AmazonRDS"); request.addParameter("Action", "RebootDBInstance"); request.addParameter("Version", "2014-10-31"); request.setHttpMethod(HttpMethodName.POST); if (rebootDBInstanceRequest.getDBInstanceIdentifier() != null) { request.addParameter("DBInstanceIdentifier", StringUtils.fromString(rebootDBInstanceRequest.getDBInstanceIdentifier())); } if (rebootDBInstanceRequest.getForceFailover() != null) { request.addParameter("ForceFailover", StringUtils.fromBoolean(rebootDBInstanceRequest.getForceFailover())); } return request; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDBInstanceIdentifier() == null) ? 0 : getDBInstanceIdentifier().hashCode()); hashCode = prime * hashCode + ((getForceFailover() == null) ? 0 : getForceFailover().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof RebootDBInstanceRequest == false) return false; RebootDBInstanceRequest other = (RebootDBInstanceRequest) obj; if (other.getDBInstanceIdentifier() == null ^ this.getDBInstanceIdentifier() == null) return false; if (other.getDBInstanceIdentifier() != null && other.getDBInstanceIdentifier().equals(this.getDBInstanceIdentifier()) == false) return false; if (other.getForceFailover() == null ^ this.getForceFailover() == null) return false; if (other.getForceFailover() != null && other.getForceFailover().equals(this.getForceFailover()) == 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 (getDBInstanceIdentifier() != null) sb.append("DBInstanceIdentifier: ").append(getDBInstanceIdentifier()).append(","); if (getForceFailover() != null) sb.append("ForceFailover: ").append(getForceFailover()); sb.append("}"); return sb.toString(); }
public Request<RebootDBInstanceRequest> marshall(RebootDBInstanceRequest rebootDBInstanceRequest) { if (rebootDBInstanceRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } Request<RebootDBInstanceRequest> request = new DefaultRequest<RebootDBInstanceRequest>(rebootDBInstanceRequest, "AmazonRDS"); request.addParameter("Action", "RebootDBInstance"); request.addParameter("Version", "2014-10-31"); request.setHttpMethod(HttpMethodName.POST); if (rebootDBInstanceRequest.getDBInstanceIdentifier() != null) { request.addParameter("DBInstanceIdentifier", StringUtils.fromString(rebootDBInstanceRequest.getDBInstanceIdentifier())); } if (rebootDBInstanceRequest.getForceFailover() != null) { request.addParameter("ForceFailover", StringUtils.fromBoolean(rebootDBInstanceRequest.getForceFailover())); } return request; }