/** * <p> * If the response is truncated, Amazon Rekognition returns this token that you can use in the subsequent request to * retrieve the next set of faces. * </p> * * @param nextToken * If the response is truncated, Amazon Rekognition returns this token that you can use in the subsequent * request to retrieve the next set of faces. * @return Returns a reference to this object so that method calls can be chained together. */ public ListFacesResult withNextToken(String nextToken) { setNextToken(nextToken); return this; }
listFacesResult.setNextToken(context.getUnmarshaller(String.class).unmarshall(context));
public ListFacesResult unmarshall(JsonUnmarshallerContext context) throws Exception { ListFacesResult listFacesResult = new ListFacesResult(); AwsJsonReader reader = context.getReader(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("Faces")) { listFacesResult.setFaces(new ListUnmarshaller<Face>(FaceJsonUnmarshaller .getInstance() ) .unmarshall(context)); } else if (name.equals("NextToken")) { listFacesResult.setNextToken(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("FaceModelVersion")) { listFacesResult.setFaceModelVersion(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return listFacesResult; }