public ListKnowledgeBasesResult withKnowledgeBaseSummaries(KnowledgeBaseSummary... knowledgeBaseSummaries) {
        if (this.knowledgeBaseSummaries == null) {
            setKnowledgeBaseSummaries(new java.util.ArrayList<KnowledgeBaseSummary>(knowledgeBaseSummaries.length));
        }
        for (KnowledgeBaseSummary ele : knowledgeBaseSummaries) {
            this.knowledgeBaseSummaries.add(ele);
        }
        return this;
    }
<p>
A list of objects, each of which contains information about a knowledge base.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setKnowledgeBaseSummaries(java.util.Collection)} or
{@link #withKnowledgeBaseSummaries(java.util.Collection)} if you want to override the existing values.
</p>

@param knowledgeBaseSummaries
       A list of objects, each of which contains information about a knowledge base.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-bedrockagent/src/main/java/com/amazonaws/services/bedrockagent/model/ListKnowledgeBasesResult.java