@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode()); hashCode = prime * hashCode + ((getCallerReference() == null) ? 0 : getCallerReference().hashCode()); hashCode = prime * hashCode + ((getLinkedService() == null) ? 0 : getLinkedService().hashCode()); hashCode = prime * hashCode + ((getHealthCheckConfig() == null) ? 0 : getHealthCheckConfig().hashCode()); hashCode = prime * hashCode + ((getHealthCheckVersion() == null) ? 0 : getHealthCheckVersion().hashCode()); hashCode = prime * hashCode + ((getCloudWatchAlarmConfiguration() == null) ? 0 : getCloudWatchAlarmConfiguration().hashCode()); return hashCode; }
/** * <p> * A unique string that you specified when you created the health check. * </p> * * @param callerReference * A unique string that you specified when you created the health check. * @return Returns a reference to this object so that method calls can be chained together. */ public HealthCheck withCallerReference(String callerReference) { setCallerReference(callerReference); return this; }
public HealthCheck unmarshall(StaxUnmarshallerContext context) throws Exception { HealthCheck healthCheck = new HealthCheck(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; healthCheck.setId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; healthCheck.setCallerReference(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; healthCheck.setLinkedService(LinkedServiceStaxUnmarshaller.getInstance().unmarshall(context)); continue; healthCheck.setHealthCheckConfig(HealthCheckConfigStaxUnmarshaller.getInstance().unmarshall(context)); continue; healthCheck.setHealthCheckVersion(LongStaxUnmarshaller.getInstance().unmarshall(context)); continue; healthCheck.setCloudWatchAlarmConfiguration(CloudWatchAlarmConfigurationStaxUnmarshaller.getInstance().unmarshall(context)); continue;
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getHealthCheck() == null) ? 0 : getHealthCheck().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateHealthCheckResult == false) return false; UpdateHealthCheckResult other = (UpdateHealthCheckResult) obj; if (other.getHealthCheck() == null ^ this.getHealthCheck() == null) return false; if (other.getHealthCheck() != null && other.getHealthCheck().equals(this.getHealthCheck()) == false) return false; return true; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getHealthCheck() == null) ? 0 : getHealthCheck().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetHealthCheckResult == false) return false; GetHealthCheckResult other = (GetHealthCheckResult) obj; if (other.getHealthCheck() == null ^ this.getHealthCheck() == null) return false; if (other.getHealthCheck() != null && other.getHealthCheck().equals(this.getHealthCheck()) == false) return false; return true; }
return false; HealthCheck other = (HealthCheck) obj; if (other.getId() == null ^ this.getId() == null) return false; if (other.getId() != null && other.getId().equals(this.getId()) == false) return false; if (other.getCallerReference() == null ^ this.getCallerReference() == null) return false; if (other.getCallerReference() != null && other.getCallerReference().equals(this.getCallerReference()) == false) return false; if (other.getLinkedService() == null ^ this.getLinkedService() == null) return false; if (other.getLinkedService() != null && other.getLinkedService().equals(this.getLinkedService()) == false) return false; 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; if (other.getHealthCheckVersion() != null && other.getHealthCheckVersion().equals(this.getHealthCheckVersion()) == false) return false; if (other.getCloudWatchAlarmConfiguration() == null ^ this.getCloudWatchAlarmConfiguration() == null) return false; if (other.getCloudWatchAlarmConfiguration() != null && other.getCloudWatchAlarmConfiguration().equals(this.getCloudWatchAlarmConfiguration()) == false) return false; return true;
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getHealthCheck() == null) ? 0 : getHealthCheck().hashCode()); hashCode = prime * hashCode + ((getLocation() == null) ? 0 : getLocation().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateHealthCheckResult == false) return false; CreateHealthCheckResult other = (CreateHealthCheckResult) obj; if (other.getHealthCheck() == null ^ this.getHealthCheck() == null) return false; if (other.getHealthCheck() != null && other.getHealthCheck().equals(this.getHealthCheck()) == false) return false; if (other.getLocation() == null ^ this.getLocation() == null) return false; if (other.getLocation() != null && other.getLocation().equals(this.getLocation()) == 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 (getId() != null) sb.append("Id: ").append(getId()).append(","); if (getCallerReference() != null) sb.append("CallerReference: ").append(getCallerReference()).append(","); if (getLinkedService() != null) sb.append("LinkedService: ").append(getLinkedService()).append(","); if (getHealthCheckConfig() != null) sb.append("HealthCheckConfig: ").append(getHealthCheckConfig()).append(","); if (getHealthCheckVersion() != null) sb.append("HealthCheckVersion: ").append(getHealthCheckVersion()).append(","); if (getCloudWatchAlarmConfiguration() != null) sb.append("CloudWatchAlarmConfiguration: ").append(getCloudWatchAlarmConfiguration()); sb.append("}"); return sb.toString(); }