public GetResourceMetricsRequest withMetricQueries(java.util.Collection<MetricQuery> metricQueries) {
        setMetricQueries(metricQueries);
        return this;
    }
<p>
An array of one or more queries to perform. Each query must specify a Performance Insights metric and specify an
aggregate function, and you can provide filtering criteria. You must append the aggregate function to the metric.
For example, to find the average for the metric <code>db.load</code> you must use <code>db.load.avg</code>. Valid
values for aggregate functions include <code>.avg</code>, <code>.min</code>, <code>.max</code>, and
<code>.sum</code>.
</p>

@param metricQueries
       An array of one or more queries to perform. Each query must specify a Performance Insights metric and
       specify an aggregate function, and you can provide filtering criteria. You must append the aggregate
       function to the metric. For example, to find the average for the metric <code>db.load</code> you must use
       <code>db.load.avg</code>. Valid values for aggregate functions include <code>.avg</code>,
       <code>.min</code>, <code>.max</code>, and <code>.sum</code>.
@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/GetResourceMetricsRequest.java