public ListEndpointsResult withEndpoints(java.util.Collection<EndpointSummary> endpoints) {
        setEndpoints(endpoints);
        return this;
    }
<p>
An array or endpoint objects.
</p>

@param endpoints
       An array or endpoint objects.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-sagemaker/src/main/java/com/amazonaws/services/sagemaker/model/ListEndpointsResult.java