Alternative for "setProperty"?

What would I use instead of set/getPorperty if I had more than one value for example when I’d like to set the lineStyle which has thickness and color?

Ta.

Tom