/** * <p> * The total number of public and private hosted zones that are associated with the current AWS account. * </p> * * @param hostedZoneCount * The total number of public and private hosted zones that are associated with the current AWS account. * @return Returns a reference to this object so that method calls can be chained together. */ public GetHostedZoneCountResult withHostedZoneCount(Long hostedZoneCount) { setHostedZoneCount(hostedZoneCount); return this; }
public GetHostedZoneCountResult unmarshall(StaxUnmarshallerContext context) throws Exception { GetHostedZoneCountResult getHostedZoneCountResult = new GetHostedZoneCountResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return getHostedZoneCountResult; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("HostedZoneCount", targetDepth)) { getHostedZoneCountResult.setHostedZoneCount(LongStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return getHostedZoneCountResult; } } } }