public ListFoundationModelsResult withModelSummaries(FoundationModelSummary... modelSummaries) {
        if (this.modelSummaries == null) {
            setModelSummaries(new java.util.ArrayList<FoundationModelSummary>(modelSummaries.length));
        }
        for (FoundationModelSummary ele : modelSummaries) {
            this.modelSummaries.add(ele);
        }
        return this;
    }
<p>
A list of Amazon Bedrock foundation models.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setModelSummaries(java.util.Collection)} or {@link #withModelSummaries(java.util.Collection)} if you want
to override the existing values.
</p>

@param modelSummaries
       A list of Amazon Bedrock foundation models.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-bedrock/src/main/java/com/amazonaws/services/bedrock/model/ListFoundationModelsResult.java