public void setThreshold(Double threshold) {
        this.threshold = threshold;
    }
<p>
The value against which the specified statistic is compared.
</p>
<p>
This parameter is required for alarms based on static thresholds, but should not be used for alarms based on
anomaly detection models.
</p>

@param threshold
       The value against which the specified statistic is compared.</p>
       <p>
       This parameter is required for alarms based on static thresholds, but should not be used for alarms based
       on anomaly detection models.
aws-java-sdk-cloudwatch/src/main/java/com/amazonaws/services/cloudwatch/model/PutMetricAlarmRequest.java