public GetResourceMetricsResult withMetricList(java.util.Collection<MetricKeyDataPoints> metricList) {
        setMetricList(metricList);
        return this;
    }
<p>
An array of metric results, where each array element contains all of the data points for a particular dimension.
</p>

@param metricList
       An array of metric results, where each array element contains all of the data points for a particular
       dimension.
@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/GetResourceMetricsResult.java