setODataType("#microsoft.graph.protectGroup"); } /** * Gets the allowEmailFromGuestUsers * * @return bool|null The allowEmailFromGuestUsers */ public function getAllowEmailFromGuestUsers() { if (array_key_exists("allowEmailFromGuestUsers", $this->_propDict)) { return $this->_propDict["allowEmailFromGuestUsers"]; } else { return null; } } /** * Sets the allowEmailFromGuestUsers * * @param bool $val The value of the allowEmailFromGuestUsers * * @return ProtectGroup */ public function setAllowEmailFromGuestUsers($val) { $this->_propDict["allowEmailFromGuestUsers"] = $val; return $this; } /** * Gets the allowGuestUsers * * @return bool|null The allowGuestUsers */ public function getAllowGuestUsers() { if (array_key_exists("allowGuestUsers", $this->_propDict)) { return $this->_propDict["allowGuestUsers"]; } else { return null; } } /** * Sets the allowGuestUsers * * @param bool $val The value of the allowGuestUsers * * @return ProtectGroup */ public function setAllowGuestUsers($val) { $this->_propDict["allowGuestUsers"] = $val; return $this; } /** * Gets the privacy * * @return GroupPrivacy|null The privacy */ public function getPrivacy() { if (array_key_exists("privacy", $this->_propDict)) { if (is_a($this->_propDict["privacy"], "\Beta\Microsoft\Graph\Model\GroupPrivacy") || is_null($this->_propDict["privacy"])) { return $this->_propDict["privacy"]; } else { $this->_propDict["privacy"] = new GroupPrivacy($this->_propDict["privacy"]); return $this->_propDict["privacy"]; } } return null; } /** * Sets the privacy * * @param GroupPrivacy $val The value to assign to the privacy * * @return ProtectGroup The ProtectGroup */ public function setPrivacy($val) { $this->_propDict["privacy"] = $val; return $this; } }