/** * An opaque token indicating that there are more domains than the specified <code>MaxNumberOfDomains</code> still * available. * * @param nextToken * An opaque token indicating that there are more domains than the specified <code>MaxNumberOfDomains</code> * still available. * @return Returns a reference to this object so that method calls can be chained together. */ public ListDomainsResult withNextToken(String nextToken) { setNextToken(nextToken); return this; }
public ListDomainsResult unmarshall(StaxUnmarshallerContext context) throws Exception { ListDomainsResult listDomainsResult = new ListDomainsResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 2; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return listDomainsResult; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("DomainName", targetDepth)) { listDomainsResult.withDomainNames(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("NextToken", targetDepth)) { listDomainsResult.setNextToken(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return listDomainsResult; } } } }
/** * An opaque token indicating that there are more domains than the specified <code>MaxNumberOfDomains</code> still * available. * * @param nextToken * An opaque token indicating that there are more domains than the specified <code>MaxNumberOfDomains</code> * still available. * @return Returns a reference to this object so that method calls can be chained together. */ public ListDomainsResult withNextToken(String nextToken) { setNextToken(nextToken); return this; }
public ListDomainsResult unmarshall(StaxUnmarshallerContext context) throws Exception { ListDomainsResult listDomainsResult = new ListDomainsResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 2; while (true) { int xmlEvent = context.nextEvent(); if (xmlEvent == XmlPullParser.END_DOCUMENT) return listDomainsResult; if (xmlEvent == XmlPullParser.START_TAG) { if (context.testExpression("DomainName", targetDepth)) { listDomainsResult.getDomainNames().add(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("NextToken", targetDepth)) { listDomainsResult.setNextToken(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent == XmlPullParser.END_TAG) { if (context.getCurrentDepth() < originalDepth) { return listDomainsResult; } } } }
public ListDomainsResult unmarshall(StaxUnmarshallerContext context) throws Exception { ListDomainsResult listDomainsResult = new ListDomainsResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 2; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return listDomainsResult; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("DomainName", targetDepth)) { listDomainsResult.withDomainNames(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("NextToken", targetDepth)) { listDomainsResult.setNextToken(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return listDomainsResult; } } } }