@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAssociatePublicIpAddress() == null) ? 0 : getAssociatePublicIpAddress().hashCode()); hashCode = prime * hashCode + ((getBackupRetentionCount() == null) ? 0 : getBackupRetentionCount().hashCode()); hashCode = prime * hashCode + ((getServerName() == null) ? 0 : getServerName().hashCode()); hashCode = prime * hashCode + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode()); hashCode = prime * hashCode + ((getCloudFormationStackArn() == null) ? 0 : getCloudFormationStackArn().hashCode()); hashCode = prime * hashCode + ((getDisableAutomatedBackup() == null) ? 0 : getDisableAutomatedBackup().hashCode()); hashCode = prime * hashCode + ((getEndpoint() == null) ? 0 : getEndpoint().hashCode()); hashCode = prime * hashCode + ((getEngine() == null) ? 0 : getEngine().hashCode()); hashCode = prime * hashCode + ((getEngineModel() == null) ? 0 : getEngineModel().hashCode()); hashCode = prime * hashCode + ((getEngineAttributes() == null) ? 0 : getEngineAttributes().hashCode()); hashCode = prime * hashCode + ((getEngineVersion() == null) ? 0 : getEngineVersion().hashCode()); hashCode = prime * hashCode + ((getInstanceProfileArn() == null) ? 0 : getInstanceProfileArn().hashCode()); hashCode = prime * hashCode + ((getInstanceType() == null) ? 0 : getInstanceType().hashCode()); hashCode = prime * hashCode + ((getKeyPair() == null) ? 0 : getKeyPair().hashCode()); hashCode = prime * hashCode + ((getMaintenanceStatus() == null) ? 0 : getMaintenanceStatus().hashCode()); hashCode = prime * hashCode + ((getPreferredMaintenanceWindow() == null) ? 0 : getPreferredMaintenanceWindow().hashCode()); hashCode = prime * hashCode + ((getPreferredBackupWindow() == null) ? 0 : getPreferredBackupWindow().hashCode()); hashCode = prime * hashCode + ((getSecurityGroupIds() == null) ? 0 : getSecurityGroupIds().hashCode()); hashCode = prime * hashCode + ((getServiceRoleArn() == null) ? 0 : getServiceRoleArn().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getStatusReason() == null) ? 0 : getStatusReason().hashCode()); hashCode = prime * hashCode + ((getSubnetIds() == null) ? 0 : getSubnetIds().hashCode()); hashCode = prime * hashCode + ((getServerArn() == null) ? 0 : getServerArn().hashCode()); return hashCode; }
public Server unmarshall(JsonUnmarshallerContext context) throws Exception { Server server = new Server(); if (context.testExpression("AssociatePublicIpAddress", targetDepth)) { context.nextToken(); server.setAssociatePublicIpAddress(context.getUnmarshaller(Boolean.class).unmarshall(context)); server.setBackupRetentionCount(context.getUnmarshaller(Integer.class).unmarshall(context)); server.setServerName(context.getUnmarshaller(String.class).unmarshall(context)); server.setCreatedAt(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").unmarshall(context)); server.setCloudFormationStackArn(context.getUnmarshaller(String.class).unmarshall(context)); server.setDisableAutomatedBackup(context.getUnmarshaller(Boolean.class).unmarshall(context)); server.setEndpoint(context.getUnmarshaller(String.class).unmarshall(context)); server.setEngine(context.getUnmarshaller(String.class).unmarshall(context)); server.setEngineModel(context.getUnmarshaller(String.class).unmarshall(context)); server.setEngineAttributes(new ListUnmarshaller<EngineAttribute>(EngineAttributeJsonUnmarshaller.getInstance()).unmarshall(context)); server.setEngineVersion(context.getUnmarshaller(String.class).unmarshall(context)); server.setInstanceProfileArn(context.getUnmarshaller(String.class).unmarshall(context)); server.setInstanceType(context.getUnmarshaller(String.class).unmarshall(context));
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateServerResult == false) return false; UpdateServerResult other = (UpdateServerResult) obj; if (other.getServer() == null ^ this.getServer() == null) return false; if (other.getServer() != null && other.getServer().equals(this.getServer()) == false) return false; return true; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateServerResult == false) return false; CreateServerResult other = (CreateServerResult) obj; if (other.getServer() == null ^ this.getServer() == null) return false; if (other.getServer() != null && other.getServer().equals(this.getServer()) == false) return false; return true; }
return false; Server other = (Server) obj; if (other.getAssociatePublicIpAddress() == null ^ this.getAssociatePublicIpAddress() == null) return false; if (other.getAssociatePublicIpAddress() != null && other.getAssociatePublicIpAddress().equals(this.getAssociatePublicIpAddress()) == false) return false; if (other.getBackupRetentionCount() == null ^ this.getBackupRetentionCount() == null) return false; if (other.getBackupRetentionCount() != null && other.getBackupRetentionCount().equals(this.getBackupRetentionCount()) == false) return false; if (other.getServerName() == null ^ this.getServerName() == null) return false; if (other.getServerName() != null && other.getServerName().equals(this.getServerName()) == false) return false; if (other.getCreatedAt() == null ^ this.getCreatedAt() == null) return false; if (other.getCreatedAt() != null && other.getCreatedAt().equals(this.getCreatedAt()) == false) return false; if (other.getCloudFormationStackArn() == null ^ this.getCloudFormationStackArn() == null) return false; if (other.getCloudFormationStackArn() != null && other.getCloudFormationStackArn().equals(this.getCloudFormationStackArn()) == false) return false; if (other.getDisableAutomatedBackup() == null ^ this.getDisableAutomatedBackup() == null) return false; if (other.getDisableAutomatedBackup() != null && other.getDisableAutomatedBackup().equals(this.getDisableAutomatedBackup()) == false) return false; if (other.getEndpoint() == null ^ this.getEndpoint() == null) return false; if (other.getEndpoint() != null && other.getEndpoint().equals(this.getEndpoint()) == false)
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateServerEngineAttributesResult == false) return false; UpdateServerEngineAttributesResult other = (UpdateServerEngineAttributesResult) obj; if (other.getServer() == null ^ this.getServer() == null) return false; if (other.getServer() != null && other.getServer().equals(this.getServer()) == false) return false; return true; }
StringBuilder sb = new StringBuilder(); sb.append("{"); if (getAssociatePublicIpAddress() != null) sb.append("AssociatePublicIpAddress: ").append(getAssociatePublicIpAddress()).append(","); if (getBackupRetentionCount() != null) sb.append("BackupRetentionCount: ").append(getBackupRetentionCount()).append(","); if (getServerName() != null) sb.append("ServerName: ").append(getServerName()).append(","); if (getCreatedAt() != null) sb.append("CreatedAt: ").append(getCreatedAt()).append(","); if (getCloudFormationStackArn() != null) sb.append("CloudFormationStackArn: ").append(getCloudFormationStackArn()).append(","); if (getDisableAutomatedBackup() != null) sb.append("DisableAutomatedBackup: ").append(getDisableAutomatedBackup()).append(","); if (getEndpoint() != null) sb.append("Endpoint: ").append(getEndpoint()).append(","); if (getEngine() != null) sb.append("Engine: ").append(getEngine()).append(","); if (getEngineModel() != null) sb.append("EngineModel: ").append(getEngineModel()).append(","); if (getEngineAttributes() != null) sb.append("EngineAttributes: ").append(getEngineAttributes()).append(","); if (getEngineVersion() != null) sb.append("EngineVersion: ").append(getEngineVersion()).append(","); if (getInstanceProfileArn() != null) sb.append("InstanceProfileArn: ").append(getInstanceProfileArn()).append(","); if (getInstanceType() != null) sb.append("InstanceType: ").append(getInstanceType()).append(","); if (getKeyPair() != null)
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof StartMaintenanceResult == false) return false; StartMaintenanceResult other = (StartMaintenanceResult) obj; if (other.getServer() == null ^ this.getServer() == null) return false; if (other.getServer() != null && other.getServer().equals(this.getServer()) == false) return false; return true; }
protocolMarshaller.marshall(server.getAssociatePublicIpAddress(), ASSOCIATEPUBLICIPADDRESS_BINDING); protocolMarshaller.marshall(server.getBackupRetentionCount(), BACKUPRETENTIONCOUNT_BINDING); protocolMarshaller.marshall(server.getServerName(), SERVERNAME_BINDING); protocolMarshaller.marshall(server.getCreatedAt(), CREATEDAT_BINDING); protocolMarshaller.marshall(server.getCloudFormationStackArn(), CLOUDFORMATIONSTACKARN_BINDING); protocolMarshaller.marshall(server.getDisableAutomatedBackup(), DISABLEAUTOMATEDBACKUP_BINDING); protocolMarshaller.marshall(server.getEndpoint(), ENDPOINT_BINDING); protocolMarshaller.marshall(server.getEngine(), ENGINE_BINDING); protocolMarshaller.marshall(server.getEngineModel(), ENGINEMODEL_BINDING); protocolMarshaller.marshall(server.getEngineAttributes(), ENGINEATTRIBUTES_BINDING); protocolMarshaller.marshall(server.getEngineVersion(), ENGINEVERSION_BINDING); protocolMarshaller.marshall(server.getInstanceProfileArn(), INSTANCEPROFILEARN_BINDING); protocolMarshaller.marshall(server.getInstanceType(), INSTANCETYPE_BINDING); protocolMarshaller.marshall(server.getKeyPair(), KEYPAIR_BINDING); protocolMarshaller.marshall(server.getMaintenanceStatus(), MAINTENANCESTATUS_BINDING); protocolMarshaller.marshall(server.getPreferredMaintenanceWindow(), PREFERREDMAINTENANCEWINDOW_BINDING); protocolMarshaller.marshall(server.getPreferredBackupWindow(), PREFERREDBACKUPWINDOW_BINDING); protocolMarshaller.marshall(server.getSecurityGroupIds(), SECURITYGROUPIDS_BINDING); protocolMarshaller.marshall(server.getServiceRoleArn(), SERVICEROLEARN_BINDING); protocolMarshaller.marshall(server.getStatus(), STATUS_BINDING); protocolMarshaller.marshall(server.getStatusReason(), STATUSREASON_BINDING); protocolMarshaller.marshall(server.getSubnetIds(), SUBNETIDS_BINDING); protocolMarshaller.marshall(server.getServerArn(), SERVERARN_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);