public void setThreshold(java.util.Collection<ThresholdV2> threshold) {
        if (threshold == null) {
            this.threshold = null;
            return;
        }

        this.threshold = new java.util.ArrayList<ThresholdV2>(threshold);
    }
<p>
Contains information about the threshold for service level metrics.
</p>

@param threshold
       Contains information about the threshold for service level metrics.
aws-java-sdk-connect/src/main/java/com/amazonaws/services/connect/model/MetricV2.java