_propDict)) { return $this->_propDict["applyHoldToSource"]; } else { return null; } } /** * Sets the applyHoldToSource * Indicates if hold is applied to noncustodial data source (such as mailbox or site). * * @param bool $val The applyHoldToSource * * @return NoncustodialDataSource */ public function setApplyHoldToSource($val) { $this->_propDict["applyHoldToSource"] = boolval($val); return $this; } /** * Gets the dataSource * User source or SharePoint site data source as noncustodial data source. * * @return DataSource|null The dataSource */ public function getDataSource() { if (array_key_exists("dataSource", $this->_propDict)) { if (is_a($this->_propDict["dataSource"], "\Beta\Microsoft\Graph\Ediscovery\Model\DataSource") || is_null($this->_propDict["dataSource"])) { return $this->_propDict["dataSource"]; } else { $this->_propDict["dataSource"] = new DataSource($this->_propDict["dataSource"]); return $this->_propDict["dataSource"]; } } return null; } /** * Sets the dataSource * User source or SharePoint site data source as noncustodial data source. * * @param DataSource $val The dataSource * * @return NoncustodialDataSource */ public function setDataSource($val) { $this->_propDict["dataSource"] = $val; return $this; } }