if (getRegion() != null) sb.append("Region: ").append(getRegion()).append(","); if (getAddress() != null) sb.append("Address: ").append(getAddress()).append(","); if (getEngine() != null) sb.append("Engine: ").append(getEngine()).append(",");
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getRdsDbInstanceArn() == null) ? 0 : getRdsDbInstanceArn().hashCode()); hashCode = prime * hashCode + ((getDbInstanceIdentifier() == null) ? 0 : getDbInstanceIdentifier().hashCode()); hashCode = prime * hashCode + ((getDbUser() == null) ? 0 : getDbUser().hashCode()); hashCode = prime * hashCode + ((getDbPassword() == null) ? 0 : getDbPassword().hashCode()); hashCode = prime * hashCode + ((getRegion() == null) ? 0 : getRegion().hashCode()); hashCode = prime * hashCode + ((getAddress() == null) ? 0 : getAddress().hashCode()); hashCode = prime * hashCode + ((getEngine() == null) ? 0 : getEngine().hashCode()); hashCode = prime * hashCode + ((getStackId() == null) ? 0 : getStackId().hashCode()); hashCode = prime * hashCode + ((getMissingOnRds() == null) ? 0 : getMissingOnRds().hashCode()); return hashCode; }
if (other.getRegion() != null && other.getRegion().equals(this.getRegion()) == false) return false; if (other.getAddress() == null ^ this.getAddress() == null) return false; if (other.getAddress() != null && other.getAddress().equals(this.getAddress()) == false) return false; if (other.getEngine() == null ^ this.getEngine() == null)
/** * Marshall the given parameter object. */ public void marshall(RdsDbInstance rdsDbInstance, ProtocolMarshaller protocolMarshaller) { if (rdsDbInstance == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(rdsDbInstance.getRdsDbInstanceArn(), RDSDBINSTANCEARN_BINDING); protocolMarshaller.marshall(rdsDbInstance.getDbInstanceIdentifier(), DBINSTANCEIDENTIFIER_BINDING); protocolMarshaller.marshall(rdsDbInstance.getDbUser(), DBUSER_BINDING); protocolMarshaller.marshall(rdsDbInstance.getDbPassword(), DBPASSWORD_BINDING); protocolMarshaller.marshall(rdsDbInstance.getRegion(), REGION_BINDING); protocolMarshaller.marshall(rdsDbInstance.getAddress(), ADDRESS_BINDING); protocolMarshaller.marshall(rdsDbInstance.getEngine(), ENGINE_BINDING); protocolMarshaller.marshall(rdsDbInstance.getStackId(), STACKID_BINDING); protocolMarshaller.marshall(rdsDbInstance.getMissingOnRds(), MISSINGONRDS_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
if (getRegion() != null) sb.append("Region: ").append(getRegion()).append(","); if (getAddress() != null) sb.append("Address: ").append(getAddress()).append(","); if (getEngine() != null) sb.append("Engine: ").append(getEngine()).append(",");
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getRdsDbInstanceArn() == null) ? 0 : getRdsDbInstanceArn().hashCode()); hashCode = prime * hashCode + ((getDbInstanceIdentifier() == null) ? 0 : getDbInstanceIdentifier().hashCode()); hashCode = prime * hashCode + ((getDbUser() == null) ? 0 : getDbUser().hashCode()); hashCode = prime * hashCode + ((getDbPassword() == null) ? 0 : getDbPassword().hashCode()); hashCode = prime * hashCode + ((getRegion() == null) ? 0 : getRegion().hashCode()); hashCode = prime * hashCode + ((getAddress() == null) ? 0 : getAddress().hashCode()); hashCode = prime * hashCode + ((getEngine() == null) ? 0 : getEngine().hashCode()); hashCode = prime * hashCode + ((getStackId() == null) ? 0 : getStackId().hashCode()); hashCode = prime * hashCode + ((getMissingOnRds() == null) ? 0 : getMissingOnRds().hashCode()); return hashCode; }
if (other.getRegion() != null && other.getRegion().equals(this.getRegion()) == false) return false; if (other.getAddress() == null ^ this.getAddress() == null) return false; if (other.getAddress() != null && other.getAddress().equals(this.getAddress()) == false) return false; if (other.getEngine() == null ^ this.getEngine() == null)
/** * Marshall the given parameter object. */ public void marshall(RdsDbInstance rdsDbInstance, ProtocolMarshaller protocolMarshaller) { if (rdsDbInstance == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(rdsDbInstance.getRdsDbInstanceArn(), RDSDBINSTANCEARN_BINDING); protocolMarshaller.marshall(rdsDbInstance.getDbInstanceIdentifier(), DBINSTANCEIDENTIFIER_BINDING); protocolMarshaller.marshall(rdsDbInstance.getDbUser(), DBUSER_BINDING); protocolMarshaller.marshall(rdsDbInstance.getDbPassword(), DBPASSWORD_BINDING); protocolMarshaller.marshall(rdsDbInstance.getRegion(), REGION_BINDING); protocolMarshaller.marshall(rdsDbInstance.getAddress(), ADDRESS_BINDING); protocolMarshaller.marshall(rdsDbInstance.getEngine(), ENGINE_BINDING); protocolMarshaller.marshall(rdsDbInstance.getStackId(), STACKID_BINDING); protocolMarshaller.marshall(rdsDbInstance.getMissingOnRds(), MISSINGONRDS_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }