When she ceased to amuse Judy Trenor and her friends she would have to fall back on amusing Mrs. Peniston; whichever way she looked she saw only a future of servitude to the whims of others, never the possibility of asserting her own eager individuality.
There are no more uses of "whim" in the book.
Show samples from other sources
They flew to Paris on a whim.
This is the devilish thing about foreign affairs: they are foreign and will not always conform to our whim.