public ListAvailableResourceMetricsRequest withMetricTypes(String... metricTypes) {
        if (this.metricTypes == null) {
            setMetricTypes(new java.util.ArrayList<String>(metricTypes.length));
        }
        for (String ele : metricTypes) {
            this.metricTypes.add(ele);
        }
        return this;
    }
<p>
The types of metrics to return in the response. Valid values in the array include the following:
</p>
<ul>
<li>
<p>
<code>os</code> (OS counter metrics) - All engines
</p>
</li>
<li>
<p>
<code>db</code> (DB load metrics) - All engines except for Amazon DocumentDB
</p>
</li>
<li>
<p>
<code>db.sql.stats</code> (per-SQL metrics) - All engines except for Amazon DocumentDB
</p>
</li>
<li>
<p>
<code>db.sql_tokenized.stats</code> (per-SQL digest metrics) - All engines except for Amazon DocumentDB
</p>
</li>
</ul>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setMetricTypes(java.util.Collection)} or {@link #withMetricTypes(java.util.Collection)} if you want to
override the existing values.
</p>

@param metricTypes
       The types of metrics to return in the response. Valid values in the array include the following:</p>
       <ul>
       <li>
       <p>
       <code>os</code> (OS counter metrics) - All engines
       </p>
       </li>
       <li>
       <p>
       <code>db</code> (DB load metrics) - All engines except for Amazon DocumentDB
       </p>
       </li>
       <li>
       <p>
       <code>db.sql.stats</code> (per-SQL metrics) - All engines except for Amazon DocumentDB
       </p>
       </li>
       <li>
       <p>
       <code>db.sql_tokenized.stats</code> (per-SQL digest metrics) - All engines except for Amazon DocumentDB
       </p>
       </li>
@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/ListAvailableResourceMetricsRequest.java