public void setMetricData(java.util.Collection<MetricDatapoint> metricData) {
        if (metricData == null) {
            this.metricData = null;
            return;
        }

        this.metricData = new java.util.ArrayList<MetricDatapoint>(metricData);
    }
<p>
An array of objects that describe the metric data returned.
</p>

@param metricData
       An array of objects that describe the metric data returned.
aws-java-sdk-lightsail/src/main/java/com/amazonaws/services/lightsail/model/GetContainerServiceMetricDataResult.java