public BatchGetMetricDataRequest withQueries(BatchGetMetricDataQuery... queries) {
        if (this.queries == null) {
            setQueries(new java.util.ArrayList<BatchGetMetricDataQuery>(queries.length));
        }
        for (BatchGetMetricDataQuery ele : queries) {
            this.queries.add(ele);
        }
        return this;
    }
<p>
A list of queries for metrics to be retrieved.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setQueries(java.util.Collection)} or {@link #withQueries(java.util.Collection)} if you want to override
the existing values.
</p>

@param queries
       A list of queries for metrics to be retrieved.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-sesv2/src/main/java/com/amazonaws/services/simpleemailv2/model/BatchGetMetricDataRequest.java