/** * <p> * If the output exceeds 1 MB in size, a string that identifies the next page of stacks. If no additional page * exists, this value is null. * </p> * * @param nextToken * If the output exceeds 1 MB in size, a string that identifies the next page of stacks. If no additional * page exists, this value is null. * @return Returns a reference to this object so that method calls can be chained together. */ public ListStacksResult withNextToken(String nextToken) { setNextToken(nextToken); return this; }
public ListStacksResult unmarshall(StaxUnmarshallerContext context) throws Exception { ListStacksResult listStacksResult = new ListStacksResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 2; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return listStacksResult; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("StackSummaries", targetDepth)) { listStacksResult.withStackSummaries(new ArrayList<StackSummary>()); continue; } if (context.testExpression("StackSummaries/member", targetDepth)) { listStacksResult.withStackSummaries(StackSummaryStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("NextToken", targetDepth)) { listStacksResult.setNextToken(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return listStacksResult; } } } }
/** * <p> * If the output exceeds 1 MB in size, a string that identifies the next page of stacks. If no additional page * exists, this value is null. * </p> * * @param nextToken * If the output exceeds 1 MB in size, a string that identifies the next page of stacks. If no additional * page exists, this value is null. * @return Returns a reference to this object so that method calls can be chained together. */ public ListStacksResult withNextToken(String nextToken) { setNextToken(nextToken); return this; }
public ListStacksResult unmarshall(StaxUnmarshallerContext context) throws Exception { ListStacksResult listStacksResult = new ListStacksResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 2; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return listStacksResult; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("StackSummaries", targetDepth)) { listStacksResult.withStackSummaries(new ArrayList<StackSummary>()); continue; } if (context.testExpression("StackSummaries/member", targetDepth)) { listStacksResult.withStackSummaries(StackSummaryStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("NextToken", targetDepth)) { listStacksResult.setNextToken(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return listStacksResult; } } } }