public CurrentMetricResult withCollections(CurrentMetricData... collections) {
        if (this.collections == null) {
            setCollections(new java.util.ArrayList<CurrentMetricData>(collections.length));
        }
        for (CurrentMetricData ele : collections) {
            this.collections.add(ele);
        }
        return this;
    }
<p>
The set of metrics.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setCollections(java.util.Collection)} or {@link #withCollections(java.util.Collection)} if you want to
override the existing values.
</p>

@param collections
       The set of metrics.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CurrentMetricResult.java