public BehaviorCriteria withConsecutiveDatapointsToClear(Integer consecutiveDatapointsToClear) {
        setConsecutiveDatapointsToClear(consecutiveDatapointsToClear);
        return this;
    }
<p>
If an alarm has occurred and the offending device is no longer in violation of the behavior for the specified
number of consecutive datapoints, the alarm is cleared. If not specified, the default is 1.
</p>

@param consecutiveDatapointsToClear
       If an alarm has occurred and the offending device is no longer in violation of the behavior for the
       specified number of consecutive datapoints, the alarm is cleared. If not specified, the default is 1.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-iot/src/main/java/com/amazonaws/services/iot/model/BehaviorCriteria.java