public DescribeEndpointsResult withEndpoints(java.util.Collection<Endpoint> endpoints) {
        setEndpoints(endpoints);
        return this;
    }
<p>
An <code>Endpoints</code> object is returned when a <code>DescribeEndpoints</code> request is made.
</p>

@param endpoints
       An <code>Endpoints</code> object is returned when a <code>DescribeEndpoints</code> request is made.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-timestreamwrite/src/main/java/com/amazonaws/services/timestreamwrite/model/DescribeEndpointsResult.java