/** * <p> * A complex type that contains the response to the <code>UpdateHostedZoneComment</code> request. * </p> * * @param hostedZone * A complex type that contains the response to the <code>UpdateHostedZoneComment</code> request. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateHostedZoneCommentResult withHostedZone(HostedZone hostedZone) { setHostedZone(hostedZone); return this; }
public UpdateHostedZoneCommentResult unmarshall(StaxUnmarshallerContext context) throws Exception { UpdateHostedZoneCommentResult updateHostedZoneCommentResult = new UpdateHostedZoneCommentResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return updateHostedZoneCommentResult; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("HostedZone", targetDepth)) { updateHostedZoneCommentResult.setHostedZone(HostedZoneStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return updateHostedZoneCommentResult; } } } }