@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; }
public RdsDbInstance unmarshall(JsonUnmarshallerContext context) throws Exception { RdsDbInstance rdsDbInstance = new RdsDbInstance(); if (context.testExpression("RdsDbInstanceArn", targetDepth)) { context.nextToken(); rdsDbInstance.setRdsDbInstanceArn(context.getUnmarshaller(String.class).unmarshall(context)); rdsDbInstance.setDbInstanceIdentifier(context.getUnmarshaller(String.class).unmarshall(context)); rdsDbInstance.setDbUser(context.getUnmarshaller(String.class).unmarshall(context)); rdsDbInstance.setDbPassword(context.getUnmarshaller(String.class).unmarshall(context)); rdsDbInstance.setRegion(context.getUnmarshaller(String.class).unmarshall(context)); rdsDbInstance.setAddress(context.getUnmarshaller(String.class).unmarshall(context)); rdsDbInstance.setEngine(context.getUnmarshaller(String.class).unmarshall(context)); rdsDbInstance.setStackId(context.getUnmarshaller(String.class).unmarshall(context)); rdsDbInstance.setMissingOnRds(context.getUnmarshaller(Boolean.class).unmarshall(context));
public RdsDbInstance unmarshall(JsonUnmarshallerContext context) throws Exception { RdsDbInstance rdsDbInstance = new RdsDbInstance(); if (context.testExpression("RdsDbInstanceArn", targetDepth)) { context.nextToken(); rdsDbInstance.setRdsDbInstanceArn(context.getUnmarshaller(String.class).unmarshall(context)); rdsDbInstance.setDbInstanceIdentifier(context.getUnmarshaller(String.class).unmarshall(context)); rdsDbInstance.setDbUser(context.getUnmarshaller(String.class).unmarshall(context)); rdsDbInstance.setDbPassword(context.getUnmarshaller(String.class).unmarshall(context)); rdsDbInstance.setRegion(context.getUnmarshaller(String.class).unmarshall(context)); rdsDbInstance.setAddress(context.getUnmarshaller(String.class).unmarshall(context)); rdsDbInstance.setEngine(context.getUnmarshaller(String.class).unmarshall(context)); rdsDbInstance.setStackId(context.getUnmarshaller(String.class).unmarshall(context)); rdsDbInstance.setMissingOnRds(context.getUnmarshaller(Boolean.class).unmarshall(context));
return false; RdsDbInstance other = (RdsDbInstance) obj; if (other.getRdsDbInstanceArn() == null ^ this.getRdsDbInstanceArn() == null) return false; if (other.getRdsDbInstanceArn() != null && other.getRdsDbInstanceArn().equals(this.getRdsDbInstanceArn()) == false) return false; if (other.getDbInstanceIdentifier() == null ^ this.getDbInstanceIdentifier() == null) return false; if (other.getDbInstanceIdentifier() != null && other.getDbInstanceIdentifier().equals(this.getDbInstanceIdentifier()) == false) return false; if (other.getDbUser() == null ^ this.getDbUser() == null) return false; if (other.getDbUser() != null && other.getDbUser().equals(this.getDbUser()) == false) return false; if (other.getDbPassword() == null ^ this.getDbPassword() == null) return false; if (other.getDbPassword() != null && other.getDbPassword().equals(this.getDbPassword()) == false) return false; if (other.getRegion() == null ^ this.getRegion() == null) return false; 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) return false; if (other.getEngine() != null && other.getEngine().equals(this.getEngine()) == false)
StringBuilder sb = new StringBuilder(); sb.append("{"); if (getRdsDbInstanceArn() != null) sb.append("RdsDbInstanceArn: ").append(getRdsDbInstanceArn()).append(","); if (getDbInstanceIdentifier() != null) sb.append("DbInstanceIdentifier: ").append(getDbInstanceIdentifier()).append(","); if (getDbUser() != null) sb.append("DbUser: ").append(getDbUser()).append(","); if (getDbPassword() != null) sb.append("DbPassword: ").append(getDbPassword()).append(","); 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(","); if (getStackId() != null) sb.append("StackId: ").append(getStackId()).append(","); if (getMissingOnRds() != null) sb.append("MissingOnRds: ").append(getMissingOnRds()); sb.append("}"); return sb.toString();
/** * 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); } }
@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; }
return false; RdsDbInstance other = (RdsDbInstance) obj; if (other.getRdsDbInstanceArn() == null ^ this.getRdsDbInstanceArn() == null) return false; if (other.getRdsDbInstanceArn() != null && other.getRdsDbInstanceArn().equals(this.getRdsDbInstanceArn()) == false) return false; if (other.getDbInstanceIdentifier() == null ^ this.getDbInstanceIdentifier() == null) return false; if (other.getDbInstanceIdentifier() != null && other.getDbInstanceIdentifier().equals(this.getDbInstanceIdentifier()) == false) return false; if (other.getDbUser() == null ^ this.getDbUser() == null) return false; if (other.getDbUser() != null && other.getDbUser().equals(this.getDbUser()) == false) return false; if (other.getDbPassword() == null ^ this.getDbPassword() == null) return false; if (other.getDbPassword() != null && other.getDbPassword().equals(this.getDbPassword()) == false) return false; if (other.getRegion() == null ^ this.getRegion() == null) return false; 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) return false; if (other.getEngine() != null && other.getEngine().equals(this.getEngine()) == false)
StringBuilder sb = new StringBuilder(); sb.append("{"); if (getRdsDbInstanceArn() != null) sb.append("RdsDbInstanceArn: ").append(getRdsDbInstanceArn()).append(","); if (getDbInstanceIdentifier() != null) sb.append("DbInstanceIdentifier: ").append(getDbInstanceIdentifier()).append(","); if (getDbUser() != null) sb.append("DbUser: ").append(getDbUser()).append(","); if (getDbPassword() != null) sb.append("DbPassword: ").append(getDbPassword()).append(","); 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(","); if (getStackId() != null) sb.append("StackId: ").append(getStackId()).append(","); if (getMissingOnRds() != null) sb.append("MissingOnRds: ").append(getMissingOnRds()); sb.append("}"); return sb.toString();
/** * 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); } }