/** * <p> * A value that indicates the starting point for the next set of response records in a subsequent request. If a * value is returned in a response, you can retrieve the next set of records by providing this returned marker value * in the <code>Marker</code> parameter and retrying the command. If the <code>Marker</code> field is empty, all * response records have been retrieved for the request. * </p> * * @param marker * A value that indicates the starting point for the next set of response records in a subsequent request. If * a value is returned in a response, you can retrieve the next set of records by providing this returned * marker value in the <code>Marker</code> parameter and retrying the command. If the <code>Marker</code> * field is empty, all response records have been retrieved for the request. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeTagsResult withMarker(String marker) { setMarker(marker); return this; }
public DescribeTagsResult unmarshall(StaxUnmarshallerContext context) throws Exception { DescribeTagsResult describeTagsResult = new DescribeTagsResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 2; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return describeTagsResult; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("TaggedResources", targetDepth)) { describeTagsResult.withTaggedResources(new ArrayList<TaggedResource>()); continue; } if (context.testExpression("TaggedResources/TaggedResource", targetDepth)) { describeTagsResult.withTaggedResources(TaggedResourceStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Marker", targetDepth)) { describeTagsResult.setMarker(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return describeTagsResult; } } } }
/** * <p> * A value that indicates the starting point for the next set of response records in a subsequent request. If a * value is returned in a response, you can retrieve the next set of records by providing this returned marker value * in the <code>Marker</code> parameter and retrying the command. If the <code>Marker</code> field is empty, all * response records have been retrieved for the request. * </p> * * @param marker * A value that indicates the starting point for the next set of response records in a subsequent request. If * a value is returned in a response, you can retrieve the next set of records by providing this returned * marker value in the <code>Marker</code> parameter and retrying the command. If the <code>Marker</code> * field is empty, all response records have been retrieved for the request. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeTagsResult withMarker(String marker) { setMarker(marker); return this; }
public DescribeTagsResult unmarshall(StaxUnmarshallerContext context) throws Exception { DescribeTagsResult describeTagsResult = new DescribeTagsResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 2; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return describeTagsResult; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("TaggedResources", targetDepth)) { describeTagsResult.withTaggedResources(new ArrayList<TaggedResource>()); continue; } if (context.testExpression("TaggedResources/TaggedResource", targetDepth)) { describeTagsResult.withTaggedResources(TaggedResourceStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Marker", targetDepth)) { describeTagsResult.setMarker(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return describeTagsResult; } } } }