How to edit post process settings in an actor in c++

Hi all,
Thanks for your help in advance.
I have an actor with a post process volume in it, and another actor has a reference of it, set by spawning the actor with the post process volume and setting the reference from that. How could I set the settings of the post process volume in c++? You can do it in blueprints by ref->post process component → set settings, but is there a way to do it in c++?
Thanks again for your time and help!