def by_windows_device_malware_state_id(self,windows_device_malware_state_id: str) -> WindowsDeviceMalwareStateItemRequestBuilder:
        """
        Provides operations to manage the detectedMalwareState property of the microsoft.graph.windowsProtectionState entity.
        param windows_device_malware_state_id: The unique identifier of windowsDeviceMalwareState
        Returns: WindowsDeviceMalwareStateItemRequestBuilder
        """
        if windows_device_malware_state_id is None:
            raise TypeError("windows_device_malware_state_id cannot be null.")
        from .item.windows_device_malware_state_item_request_builder import WindowsDeviceMalwareStateItemRequestBuilder

        url_tpl_params = get_path_parameters(self.path_parameters)
        url_tpl_params["windowsDeviceMalwareState%2Did"] = windows_device_malware_state_id
        return WindowsDeviceMalwareStateItemRequestBuilder(self.request_adapter, url_tpl_params)

        Provides operations to manage the detectedMalwareState property of the microsoft.graph.windowsProtectionState entity.
        param windows_device_malware_state_id: The unique identifier of windowsDeviceMalwareState
        Returns: WindowsDeviceMalwareStateItemRequestBuilder
        
msgraph/generated/device_management/managed_devices/item/windows_protection_state/detected_malware_state/detected_malware_state_request_builder.py