public MetricV2 withThreshold(java.util.Collection<ThresholdV2> threshold) {
        setThreshold(threshold);
        return this;
    }
<p>
Contains information about the threshold for service level metrics.
</p>

@param threshold
       Contains information about the threshold for service level 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/MetricV2.java