public ListFoundationModelsResult withModelSummaries(java.util.Collection<FoundationModelSummary> modelSummaries) {
        setModelSummaries(modelSummaries);
        return this;
    }
<p>
A list of Amazon Bedrock foundation models.
</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