public MetricKeyDataPoints withDataPoints(java.util.Collection<DataPoint> dataPoints) {
        setDataPoints(dataPoints);
        return this;
    }
<p>
An array of timestamp-value pairs, representing measurements over a period of time.
</p>

@param dataPoints
       An array of timestamp-value pairs, representing measurements over a period of time.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-pi/src/main/java/com/amazonaws/services/pi/model/MetricKeyDataPoints.java