code: public GetResourceMetricsRequest withMetricQueries(MetricQuery... metricQueries) {
          if (this.metricQueries == null) {
              setMetricQueries(new java.util.ArrayList<MetricQuery>(metricQueries.length));
          }
          for (MetricQuery ele : metricQueries) {
              this.metricQueries.add(ele);
          }
          return this;
      }
docs: <p>
  An array of one or more queries to perform. Each query must specify a Performance Insights metric, and can
  optionally specify aggregation and filtering criteria.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setMetricQueries(java.util.Collection)} or {@link #withMetricQueries(java.util.Collection)} if you want
  to override the existing values.
  </p>
  
  @param metricQueries
  An array of one or more queries to perform. Each query must specify a Performance Insights metric, and can
  optionally specify aggregation and filtering criteria.
  @return Returns a reference to this object so that method calls can be chained together.