/** * <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 DescribeClustersResult withMarker(String marker) { setMarker(marker); return this; }
public DescribeClustersResult unmarshall(StaxUnmarshallerContext context) throws Exception { DescribeClustersResult describeClustersResult = new DescribeClustersResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 2; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return describeClustersResult; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("Marker", targetDepth)) { describeClustersResult.setMarker(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Clusters", targetDepth)) { describeClustersResult.withClusters(new ArrayList<Cluster>()); continue; } if (context.testExpression("Clusters/Cluster", targetDepth)) { describeClustersResult.withClusters(ClusterStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return describeClustersResult; } } } }
/** * <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 DescribeClustersResult withMarker(String marker) { setMarker(marker); return this; }
public DescribeClustersResult unmarshall(StaxUnmarshallerContext context) throws Exception { DescribeClustersResult describeClustersResult = new DescribeClustersResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 2; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return describeClustersResult; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("Marker", targetDepth)) { describeClustersResult.setMarker(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Clusters", targetDepth)) { describeClustersResult.withClusters(new ArrayList<Cluster>()); continue; } if (context.testExpression("Clusters/Cluster", targetDepth)) { describeClustersResult.withClusters(ClusterStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return describeClustersResult; } } } }