_propDict)) { if (is_a($this->_propDict["mode"], "\Microsoft\Graph\Model\FilterMode") || is_null($this->_propDict["mode"])) { return $this->_propDict["mode"]; } else { $this->_propDict["mode"] = new FilterMode($this->_propDict["mode"]); return $this->_propDict["mode"]; } } return null; } /** * Sets the mode * Mode to use for the filter. Possible values are include or exclude. * * @param FilterMode $val The value to assign to the mode * * @return ConditionalAccessFilter The ConditionalAccessFilter */ public function setMode($val) { $this->_propDict["mode"] = $val; return $this; } /** * Gets the rule * Rule syntax is similar to that used for membership rules for groups in Microsoft Entra ID. For details, see rules with multiple expressions * * @return string|null The rule */ public function getRule() { if (array_key_exists("rule", $this->_propDict)) { return $this->_propDict["rule"]; } else { return null; } } /** * Sets the rule * Rule syntax is similar to that used for membership rules for groups in Microsoft Entra ID. For details, see rules with multiple expressions * * @param string $val The value of the rule * * @return ConditionalAccessFilter */ public function setRule($val) { $this->_propDict["rule"] = $val; return $this; } }