public RetrieveResult withRetrievalResults(KnowledgeBaseRetrievalResult... retrievalResults) {
        if (this.retrievalResults == null) {
            setRetrievalResults(new java.util.ArrayList<KnowledgeBaseRetrievalResult>(retrievalResults.length));
        }
        for (KnowledgeBaseRetrievalResult ele : retrievalResults) {
            this.retrievalResults.add(ele);
        }
        return this;
    }
<p>
A list of results from querying the knowledge base.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setRetrievalResults(java.util.Collection)} or {@link #withRetrievalResults(java.util.Collection)} if you
want to override the existing values.
</p>

@param retrievalResults
       A list of results from querying the knowledge base.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-bedrockagentruntime/src/main/java/com/amazonaws/services/bedrockagentruntime/model/RetrieveResult.java