_propDict)) { if (is_a($this->_propDict["roles"], "\Beta\Microsoft\Graph\Model\PermissionsDefinitionAzureRole") || is_null($this->_propDict["roles"])) { return $this->_propDict["roles"]; } else { $this->_propDict["roles"] = new PermissionsDefinitionAzureRole($this->_propDict["roles"]); return $this->_propDict["roles"]; } } return null; } /** * Sets the roles * * @param PermissionsDefinitionAzureRole $val The value to assign to the roles * * @return AzureRolePermissionsDefinitionAction The AzureRolePermissionsDefinitionAction */ public function setRoles($val) { $this->_propDict["roles"] = $val; return $this; } }