public ServiceDependency withMetricReferences(java.util.Collection<MetricReference> metricReferences) {
        setMetricReferences(metricReferences);
        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>

@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