Have it both ways

To do two things, to have two things.

“You can`t have it both ways. You must choose one or the other.”