@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getHealthCheckObservations() == null) ? 0 : getHealthCheckObservations().hashCode()); return hashCode; }
/** * <p> * A list that contains one <code>HealthCheckObservation</code> element for each Amazon Route 53 health checker that * is reporting a status about the health check endpoint. * </p> * * @param healthCheckObservations * A list that contains one <code>HealthCheckObservation</code> element for each Amazon Route 53 health * checker that is reporting a status about the health check endpoint. * @return Returns a reference to this object so that method calls can be chained together. */ public GetHealthCheckStatusResult withHealthCheckObservations(java.util.Collection<HealthCheckObservation> healthCheckObservations) { setHealthCheckObservations(healthCheckObservations); return this; }
public GetHealthCheckStatusResult unmarshall(StaxUnmarshallerContext context) throws Exception { GetHealthCheckStatusResult getHealthCheckStatusResult = new GetHealthCheckStatusResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return getHealthCheckStatusResult; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("HealthCheckObservations", targetDepth)) { getHealthCheckStatusResult.withHealthCheckObservations(new ArrayList<HealthCheckObservation>()); continue; } if (context.testExpression("HealthCheckObservations/HealthCheckObservation", targetDepth)) { getHealthCheckStatusResult.withHealthCheckObservations(HealthCheckObservationStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return getHealthCheckStatusResult; } } } }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetHealthCheckStatusResult == false) return false; GetHealthCheckStatusResult other = (GetHealthCheckStatusResult) obj; if (other.getHealthCheckObservations() == null ^ this.getHealthCheckObservations() == null) return false; if (other.getHealthCheckObservations() != null && other.getHealthCheckObservations().equals(this.getHealthCheckObservations()) == false) return false; return true; }
/** * <p> * A list that contains one <code>HealthCheckObservation</code> element for each Amazon Route 53 health checker that * is reporting a status about the health check endpoint. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setHealthCheckObservations(java.util.Collection)} or * {@link #withHealthCheckObservations(java.util.Collection)} if you want to override the existing values. * </p> * * @param healthCheckObservations * A list that contains one <code>HealthCheckObservation</code> element for each Amazon Route 53 health * checker that is reporting a status about the health check endpoint. * @return Returns a reference to this object so that method calls can be chained together. */ public GetHealthCheckStatusResult withHealthCheckObservations(HealthCheckObservation... healthCheckObservations) { if (this.healthCheckObservations == null) { setHealthCheckObservations(new com.amazonaws.internal.SdkInternalList<HealthCheckObservation>(healthCheckObservations.length)); } for (HealthCheckObservation ele : healthCheckObservations) { this.healthCheckObservations.add(ele); } return this; }
/** * 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 (getHealthCheckObservations() != null) sb.append("HealthCheckObservations: ").append(getHealthCheckObservations()); sb.append("}"); return sb.toString(); }