public GetResourceMetricsResult withMetricList(MetricKeyDataPoints... metricList) {
        if (this.metricList == null) {
            setMetricList(new java.util.ArrayList<MetricKeyDataPoints>(metricList.length));
        }
        for (MetricKeyDataPoints ele : metricList) {
            this.metricList.add(ele);
        }
        return this;
    }
public GetResourceMetricsResult withMetricList ( MetricKeyDataPoints ... metricList ) { if ( this . metricList == null ) { setMetricList ( new java . util . ArrayList < MetricKeyDataPoints > ( metricList . length ) ) ; } for ( MetricKeyDataPoints ele : metricList ) { this . metricList . add ( ele ) ; } return this ; }
<p>
An array of metric results,, where each array element contains all of the data points for a particular dimension.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setMetricList(java.util.Collection)} or {@link #withMetricList(java.util.Collection)} if you want to
override the existing values.
</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.