public GetDocumentTextDetectionRequest withNextToken(String nextToken) {
        setNextToken(nextToken);
        return this;
    }
<p>
If the previous response was incomplete (because there are more blocks to retrieve), Amazon Textract returns a
pagination token in the response. You can use this pagination token to retrieve the next set of blocks.
</p>

@param nextToken
       If the previous response was incomplete (because there are more blocks to retrieve), Amazon Textract
       returns a pagination token in the response. You can use this pagination token to retrieve the next set of
       blocks.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-textract/src/main/java/com/amazonaws/services/textract/model/GetDocumentTextDetectionRequest.java