public ServiceDependency withMetricReferences(MetricReference... metricReferences) {
        if (this.metricReferences == null) {
            setMetricReferences(new java.util.ArrayList<MetricReference>(metricReferences.length));
        }
        for (MetricReference ele : metricReferences) {
            this.metricReferences.add(ele);
        }
        return this;
    }
<p>
An array of structures that each contain information about one metric associated with this service dependency
that was discovered by Application Signals.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setMetricReferences(java.util.Collection)} or {@link #withMetricReferences(java.util.Collection)} if you
want to override the existing values.
</p>

@param metricReferences
       An array of structures that each contain information about one metric associated with this service
       dependency that was discovered by Application Signals.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-applicationsignals/src/main/java/com/amazonaws/services/applicationsignals/model/ServiceDependency.java