public RescoreRequest withDocuments(java.util.Collection<Document> documents) {
        setDocuments(documents);
        return this;
    }
<p>
The list of documents for Amazon Kendra Intelligent Ranking to rescore or rank on.
</p>

@param documents
       The list of documents for Amazon Kendra Intelligent Ranking to rescore or rank on.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-kendraranking/src/main/java/com/amazonaws/services/kendraranking/model/RescoreRequest.java