According to The Mark, the following works:
set_building_health [settlement] [building line] [health]

Note that the building line possibly refers to the complex name rather than the individual building name.

Many thanks to him.