_propDict)) { return $this->_propDict["isEnabled"]; } else { return null; } } /** * Sets the isEnabled * Denotes whether the policy is enabled. * * @param bool $val The isEnabled * * @return AppManagementPolicy */ public function setIsEnabled($val) { $this->_propDict["isEnabled"] = boolval($val); return $this; } /** * Gets the restrictions * Restrictions that apply to an application or service principal object. * * @return AppManagementConfiguration|null The restrictions */ public function getRestrictions() { if (array_key_exists("restrictions", $this->_propDict)) { if (is_a($this->_propDict["restrictions"], "\Microsoft\Graph\Model\AppManagementConfiguration") || is_null($this->_propDict["restrictions"])) { return $this->_propDict["restrictions"]; } else { $this->_propDict["restrictions"] = new AppManagementConfiguration($this->_propDict["restrictions"]); return $this->_propDict["restrictions"]; } } return null; } /** * Sets the restrictions * Restrictions that apply to an application or service principal object. * * @param AppManagementConfiguration $val The restrictions * * @return AppManagementPolicy */ public function setRestrictions($val) { $this->_propDict["restrictions"] = $val; return $this; } /** * Gets the appliesTo * Collection of applications and service principals to which the policy is applied. * * @return array|null The appliesTo */ public function getAppliesTo() { if (array_key_exists("appliesTo", $this->_propDict)) { return $this->_propDict["appliesTo"]; } else { return null; } } /** * Sets the appliesTo * Collection of applications and service principals to which the policy is applied. * * @param DirectoryObject[] $val The appliesTo * * @return AppManagementPolicy */ public function setAppliesTo($val) { $this->_propDict["appliesTo"] = $val; return $this; } }