public GetInstanceMetricDataResult withMetricData(java.util.Collection<MetricDatapoint> metricData) {
        setMetricData(metricData);
        return this;
    }
<p>
An array of objects that describe the metric data returned.
</p>

@param metricData
       An array of objects that describe the metric data returned.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-lightsail/src/main/java/com/amazonaws/services/lightsail/model/GetInstanceMetricDataResult.java