_propDict)) { return $this->_propDict["alertThreshold"]; } else { return null; } } /** * Sets the alertThreshold * Threshold value which triggers accidental deletion prevention. The threshold is either an absolute number of objects or a percentage number of objects. * * @param int $val The value of the alertThreshold * * @return OnPremisesAccidentalDeletionPrevention */ public function setAlertThreshold($val) { $this->_propDict["alertThreshold"] = $val; return $this; } /** * Gets the synchronizationPreventionType * The status of the accidental deletion prevention feature. The possible values are: disabled, enabledForCount, enabledForPercentage, unknownFutureValue. * * @return OnPremisesDirectorySynchronizationDeletionPreventionType|null The synchronizationPreventionType */ public function getSynchronizationPreventionType() { if (array_key_exists("synchronizationPreventionType", $this->_propDict)) { if (is_a($this->_propDict["synchronizationPreventionType"], "\Microsoft\Graph\Model\OnPremisesDirectorySynchronizationDeletionPreventionType") || is_null($this->_propDict["synchronizationPreventionType"])) { return $this->_propDict["synchronizationPreventionType"]; } else { $this->_propDict["synchronizationPreventionType"] = new OnPremisesDirectorySynchronizationDeletionPreventionType($this->_propDict["synchronizationPreventionType"]); return $this->_propDict["synchronizationPreventionType"]; } } return null; } /** * Sets the synchronizationPreventionType * The status of the accidental deletion prevention feature. The possible values are: disabled, enabledForCount, enabledForPercentage, unknownFutureValue. * * @param OnPremisesDirectorySynchronizationDeletionPreventionType $val The value to assign to the synchronizationPreventionType * * @return OnPremisesAccidentalDeletionPrevention The OnPremisesAccidentalDeletionPrevention */ public function setSynchronizationPreventionType($val) { $this->_propDict["synchronizationPreventionType"] = $val; return $this; } }