public RescoreRequest withDocuments(Document... documents) {
        if (this.documents == null) {
            setDocuments(new java.util.ArrayList<Document>(documents.length));
        }
        for (Document ele : documents) {
            this.documents.add(ele);
        }
        return this;
    }
<p>
The list of documents for Amazon Kendra Intelligent Ranking to rescore or rank on.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setDocuments(java.util.Collection)} or {@link #withDocuments(java.util.Collection)} if you want to
override the existing values.
</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