/** * <p> * If the output exceeds 1 MB in size, a string that identifies the next page of events. 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 events. 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 DescribeStackEventsResult withNextToken(String nextToken) { setNextToken(nextToken); return this; }
public DescribeStackEventsResult unmarshall(StaxUnmarshallerContext context) throws Exception { DescribeStackEventsResult describeStackEventsResult = new DescribeStackEventsResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 2; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return describeStackEventsResult; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("StackEvents", targetDepth)) { describeStackEventsResult.withStackEvents(new ArrayList<StackEvent>()); continue; } if (context.testExpression("StackEvents/member", targetDepth)) { describeStackEventsResult.withStackEvents(StackEventStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("NextToken", targetDepth)) { describeStackEventsResult.setNextToken(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return describeStackEventsResult; } } } }
/** * <p> * If the output exceeds 1 MB in size, a string that identifies the next page of events. 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 events. 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 DescribeStackEventsResult withNextToken(String nextToken) { setNextToken(nextToken); return this; }
public DescribeStackEventsResult unmarshall(StaxUnmarshallerContext context) throws Exception { DescribeStackEventsResult describeStackEventsResult = new DescribeStackEventsResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 2; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return describeStackEventsResult; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("StackEvents", targetDepth)) { describeStackEventsResult.withStackEvents(new ArrayList<StackEvent>()); continue; } if (context.testExpression("StackEvents/member", targetDepth)) { describeStackEventsResult.withStackEvents(StackEventStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("NextToken", targetDepth)) { describeStackEventsResult.setNextToken(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return describeStackEventsResult; } } } }