/** * <p> * A complex type that contains information about one health check that is associated with the current AWS account. * </p> * * @param healthCheck * A complex type that contains information about one health check that is associated with the current AWS * account. * @return Returns a reference to this object so that method calls can be chained together. */ public GetHealthCheckResult withHealthCheck(HealthCheck healthCheck) { setHealthCheck(healthCheck); return this; }
public GetHealthCheckResult unmarshall(StaxUnmarshallerContext context) throws Exception { GetHealthCheckResult getHealthCheckResult = new GetHealthCheckResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return getHealthCheckResult; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("HealthCheck", targetDepth)) { getHealthCheckResult.setHealthCheck(HealthCheckStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return getHealthCheckResult; } } } }