/** * <p> * The token to use when requesting the next set of items. If there are no additional items to return, the string is * empty. * </p> * * @param nextToken * The token to use when requesting the next set of items. If there are no additional items to return, the * string is empty. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeAutoScalingGroupsResult withNextToken(String nextToken) { setNextToken(nextToken); return this; }
public DescribeAutoScalingGroupsResult unmarshall(StaxUnmarshallerContext context) throws Exception { DescribeAutoScalingGroupsResult describeAutoScalingGroupsResult = new DescribeAutoScalingGroupsResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 2; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return describeAutoScalingGroupsResult; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("AutoScalingGroups", targetDepth)) { describeAutoScalingGroupsResult.withAutoScalingGroups(new ArrayList<AutoScalingGroup>()); continue; } if (context.testExpression("AutoScalingGroups/member", targetDepth)) { describeAutoScalingGroupsResult.withAutoScalingGroups(AutoScalingGroupStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("NextToken", targetDepth)) { describeAutoScalingGroupsResult.setNextToken(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return describeAutoScalingGroupsResult; } } } }
describeAutoScalingGroupsResult.setNextToken(StringStaxUnmarshaller .getInstance().unmarshall(context)); continue;