/** * <p> * The <code>ListVocabularies</code> operation returns a page of vocabularies at a time. The maximum size of the * page is set by the <code>MaxResults</code> parameter. If there are more jobs in the list than the page size, * Amazon Transcribe returns the <code>NextPage</code> token. Include the token in the next request to the * <code>ListVocabularies</code> operation to return in the next page of jobs. * </p> * * @param nextToken * The <code>ListVocabularies</code> operation returns a page of vocabularies at a time. The maximum size of * the page is set by the <code>MaxResults</code> parameter. If there are more jobs in the list than the page * size, Amazon Transcribe returns the <code>NextPage</code> token. Include the token in the next request to * the <code>ListVocabularies</code> operation to return in the next page of jobs. * @return Returns a reference to this object so that method calls can be chained together. */ public ListVocabulariesResult withNextToken(String nextToken) { setNextToken(nextToken); return this; }
listVocabulariesResult.setNextToken(context.getUnmarshaller(String.class).unmarshall(context));
public ListVocabulariesResult unmarshall(JsonUnmarshallerContext context) throws Exception { ListVocabulariesResult listVocabulariesResult = new ListVocabulariesResult(); AwsJsonReader reader = context.getReader(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("Status")) { listVocabulariesResult.setStatus(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("NextToken")) { listVocabulariesResult.setNextToken(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("Vocabularies")) { listVocabulariesResult.setVocabularies(new ListUnmarshaller<VocabularyInfo>( VocabularyInfoJsonUnmarshaller.getInstance() ) .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return listVocabulariesResult; }