build

Builds the ScanOptions instance.

Throws

if no scanners have been added or if formats is empty.