_propDict)) { if (is_a($this->_propDict["accidentalDeletionPrevention"], "\Microsoft\Graph\Model\OnPremisesAccidentalDeletionPrevention") || is_null($this->_propDict["accidentalDeletionPrevention"])) { return $this->_propDict["accidentalDeletionPrevention"]; } else { $this->_propDict["accidentalDeletionPrevention"] = new OnPremisesAccidentalDeletionPrevention($this->_propDict["accidentalDeletionPrevention"]); return $this->_propDict["accidentalDeletionPrevention"]; } } return null; } /** * Sets the accidentalDeletionPrevention * Contains the accidental deletion prevention configuration for a tenant. * * @param OnPremisesAccidentalDeletionPrevention $val The value to assign to the accidentalDeletionPrevention * * @return OnPremisesDirectorySynchronizationConfiguration The OnPremisesDirectorySynchronizationConfiguration */ public function setAccidentalDeletionPrevention($val) { $this->_propDict["accidentalDeletionPrevention"] = $val; return $this; } }