A magnetic confinement versus rotation classification of massive-star magnetospheres