/** * <p> * The <code>ListTranscriptionJobs</code> operation returns a page of jobs 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>ListTranscriptionJobs</code> operation to return in the next page of jobs. * </p> * * @param nextToken * The <code>ListTranscriptionJobs</code> operation returns a page of jobs 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>ListTranscriptionJobs</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 ListTranscriptionJobsResult withNextToken(String nextToken) { setNextToken(nextToken); return this; }
listTranscriptionJobsResult.setNextToken(context.getUnmarshaller(String.class).unmarshall(context));
public ListTranscriptionJobsResult unmarshall(JsonUnmarshallerContext context) throws Exception { ListTranscriptionJobsResult listTranscriptionJobsResult = new ListTranscriptionJobsResult(); AwsJsonReader reader = context.getReader(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("Status")) { listTranscriptionJobsResult.setStatus(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("NextToken")) { listTranscriptionJobsResult.setNextToken(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("TranscriptionJobSummaries")) { listTranscriptionJobsResult .setTranscriptionJobSummaries(new ListUnmarshaller<TranscriptionJobSummary>( TranscriptionJobSummaryJsonUnmarshaller.getInstance() ) .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return listTranscriptionJobsResult; }