public void setEndpoints(java.util.Collection<EndpointSummary> endpoints) {
        if (endpoints == null) {
            this.endpoints = null;
            return;
        }

        this.endpoints = new java.util.ArrayList<EndpointSummary>(endpoints);
    }
<p>
An array or endpoint objects.
</p>

@param endpoints
       An array or endpoint objects.
aws-java-sdk-sagemaker/src/main/java/com/amazonaws/services/sagemaker/model/ListEndpointsResult.java