_propDict)) { return $this->_propDict["name"]; } else { return null; } } /** * Sets the name * Name of the device class which will be impacted by this rule. * * @param string $val The value of the name * * @return DeviceManagementExchangeDeviceClass */ public function setName($val) { $this->_propDict["name"] = $val; return $this; } /** * Gets the type * Type of device which is impacted by this rule e.g. Model, Family. Possible values are: family, model. * * @return DeviceManagementExchangeAccessRuleType|null The type */ public function getType() { if (array_key_exists("type", $this->_propDict)) { if (is_a($this->_propDict["type"], "\Beta\Microsoft\Graph\Model\DeviceManagementExchangeAccessRuleType") || is_null($this->_propDict["type"])) { return $this->_propDict["type"]; } else { $this->_propDict["type"] = new DeviceManagementExchangeAccessRuleType($this->_propDict["type"]); return $this->_propDict["type"]; } } return null; } /** * Sets the type * Type of device which is impacted by this rule e.g. Model, Family. Possible values are: family, model. * * @param DeviceManagementExchangeAccessRuleType $val The value to assign to the type * * @return DeviceManagementExchangeDeviceClass The DeviceManagementExchangeDeviceClass */ public function setType($val) { $this->_propDict["type"] = $val; return $this; } }