public NotificationSettingDetail withThreshold(Integer threshold) {
        setThreshold(threshold);
        return this;
    }
<p>
The number of days before a notification event.
</p>

@param threshold
       The number of days before a notification event.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-iamrolesanywhere/src/main/java/com/amazonaws/services/iamrolesanywhere/model/NotificationSettingDetail.java