@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getIPAddress() == null) ? 0 : getIPAddress().hashCode()); hashCode = prime * hashCode + ((getPort() == null) ? 0 : getPort().hashCode()); hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode()); hashCode = prime * hashCode + ((getResourcePath() == null) ? 0 : getResourcePath().hashCode()); hashCode = prime * hashCode + ((getFullyQualifiedDomainName() == null) ? 0 : getFullyQualifiedDomainName().hashCode()); hashCode = prime * hashCode + ((getSearchString() == null) ? 0 : getSearchString().hashCode()); hashCode = prime * hashCode + ((getRequestInterval() == null) ? 0 : getRequestInterval().hashCode()); hashCode = prime * hashCode + ((getFailureThreshold() == null) ? 0 : getFailureThreshold().hashCode()); hashCode = prime * hashCode + ((getMeasureLatency() == null) ? 0 : getMeasureLatency().hashCode()); hashCode = prime * hashCode + ((getInverted() == null) ? 0 : getInverted().hashCode()); hashCode = prime * hashCode + ((getDisabled() == null) ? 0 : getDisabled().hashCode()); hashCode = prime * hashCode + ((getHealthThreshold() == null) ? 0 : getHealthThreshold().hashCode()); hashCode = prime * hashCode + ((getChildHealthChecks() == null) ? 0 : getChildHealthChecks().hashCode()); hashCode = prime * hashCode + ((getEnableSNI() == null) ? 0 : getEnableSNI().hashCode()); hashCode = prime * hashCode + ((getRegions() == null) ? 0 : getRegions().hashCode()); hashCode = prime * hashCode + ((getAlarmIdentifier() == null) ? 0 : getAlarmIdentifier().hashCode()); hashCode = prime * hashCode + ((getInsufficientDataHealthStatus() == null) ? 0 : getInsufficientDataHealthStatus().hashCode()); return hashCode; }
public HealthCheckConfig unmarshall(StaxUnmarshallerContext context) throws Exception { HealthCheckConfig healthCheckConfig = new HealthCheckConfig(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; healthCheckConfig.setIPAddress(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; healthCheckConfig.setPort(IntegerStaxUnmarshaller.getInstance().unmarshall(context)); continue; healthCheckConfig.setType(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; healthCheckConfig.setResourcePath(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; healthCheckConfig.setFullyQualifiedDomainName(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; healthCheckConfig.setSearchString(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; healthCheckConfig.setRequestInterval(IntegerStaxUnmarshaller.getInstance().unmarshall(context)); continue; healthCheckConfig.setFailureThreshold(IntegerStaxUnmarshaller.getInstance().unmarshall(context)); continue; healthCheckConfig.setMeasureLatency(BooleanStaxUnmarshaller.getInstance().unmarshall(context));
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateHealthCheckRequest == false) return false; CreateHealthCheckRequest other = (CreateHealthCheckRequest) obj; if (other.getCallerReference() == null ^ this.getCallerReference() == null) return false; if (other.getCallerReference() != null && other.getCallerReference().equals(this.getCallerReference()) == false) return false; if (other.getHealthCheckConfig() == null ^ this.getHealthCheckConfig() == null) return false; if (other.getHealthCheckConfig() != null && other.getHealthCheckConfig().equals(this.getHealthCheckConfig()) == false) return false; return true; }
if (other.getHealthCheckConfig() == null ^ this.getHealthCheckConfig() == null) return false; if (other.getHealthCheckConfig() != null && other.getHealthCheckConfig().equals(this.getHealthCheckConfig()) == false) return false; if (other.getHealthCheckVersion() == null ^ this.getHealthCheckVersion() == null)
return false; HealthCheckConfig other = (HealthCheckConfig) obj; if (other.getIPAddress() == null ^ this.getIPAddress() == null) return false; if (other.getIPAddress() != null && other.getIPAddress().equals(this.getIPAddress()) == false) return false; if (other.getPort() == null ^ this.getPort() == null) return false; if (other.getPort() != null && other.getPort().equals(this.getPort()) == false) return false; if (other.getType() == null ^ this.getType() == null) return false; if (other.getType() != null && other.getType().equals(this.getType()) == false) return false; if (other.getResourcePath() == null ^ this.getResourcePath() == null) return false; if (other.getResourcePath() != null && other.getResourcePath().equals(this.getResourcePath()) == false) return false; if (other.getFullyQualifiedDomainName() == null ^ this.getFullyQualifiedDomainName() == null) return false; if (other.getFullyQualifiedDomainName() != null && other.getFullyQualifiedDomainName().equals(this.getFullyQualifiedDomainName()) == false) return false; if (other.getSearchString() == null ^ this.getSearchString() == null) return false; if (other.getSearchString() != null && other.getSearchString().equals(this.getSearchString()) == false) return false; if (other.getRequestInterval() == null ^ this.getRequestInterval() == null) return false; if (other.getRequestInterval() != null && other.getRequestInterval().equals(this.getRequestInterval()) == false)
StringBuilder sb = new StringBuilder(); sb.append("{"); if (getIPAddress() != null) sb.append("IPAddress: ").append(getIPAddress()).append(","); if (getPort() != null) sb.append("Port: ").append(getPort()).append(","); if (getType() != null) sb.append("Type: ").append(getType()).append(","); if (getResourcePath() != null) sb.append("ResourcePath: ").append(getResourcePath()).append(","); if (getFullyQualifiedDomainName() != null) sb.append("FullyQualifiedDomainName: ").append(getFullyQualifiedDomainName()).append(","); if (getSearchString() != null) sb.append("SearchString: ").append(getSearchString()).append(","); if (getRequestInterval() != null) sb.append("RequestInterval: ").append(getRequestInterval()).append(","); if (getFailureThreshold() != null) sb.append("FailureThreshold: ").append(getFailureThreshold()).append(","); if (getMeasureLatency() != null) sb.append("MeasureLatency: ").append(getMeasureLatency()).append(","); if (getInverted() != null) sb.append("Inverted: ").append(getInverted()).append(","); if (getDisabled() != null) sb.append("Disabled: ").append(getDisabled()).append(","); if (getHealthThreshold() != null) sb.append("HealthThreshold: ").append(getHealthThreshold()).append(","); if (getChildHealthChecks() != null) sb.append("ChildHealthChecks: ").append(getChildHealthChecks()).append(","); if (getEnableSNI() != null)
if (healthCheckConfig.getIPAddress() != null) { xmlWriter.startElement("IPAddress").value(healthCheckConfig.getIPAddress()).endElement(); if (healthCheckConfig.getPort() != null) { xmlWriter.startElement("Port").value(healthCheckConfig.getPort()).endElement(); if (healthCheckConfig.getType() != null) { xmlWriter.startElement("Type").value(healthCheckConfig.getType()).endElement(); if (healthCheckConfig.getResourcePath() != null) { xmlWriter.startElement("ResourcePath").value(healthCheckConfig.getResourcePath()).endElement(); if (healthCheckConfig.getFullyQualifiedDomainName() != null) { xmlWriter.startElement("FullyQualifiedDomainName").value(healthCheckConfig.getFullyQualifiedDomainName()).endElement(); if (healthCheckConfig.getSearchString() != null) { xmlWriter.startElement("SearchString").value(healthCheckConfig.getSearchString()).endElement(); if (healthCheckConfig.getRequestInterval() != null) { xmlWriter.startElement("RequestInterval").value(healthCheckConfig.getRequestInterval()).endElement(); if (healthCheckConfig.getFailureThreshold() != null) { xmlWriter.startElement("FailureThreshold").value(healthCheckConfig.getFailureThreshold()).endElement(); if (healthCheckConfig.getMeasureLatency() != null) { xmlWriter.startElement("MeasureLatency").value(healthCheckConfig.getMeasureLatency()).endElement(); if (healthCheckConfig.getInverted() != null) { xmlWriter.startElement("Inverted").value(healthCheckConfig.getInverted()).endElement();