You can use either the Galaxy S10's Phone app or a visual voicemail service to set up a voicemail greeting on a Samsung Galaxy S10.
Using Google Voice, you can record multiple voicemail greetings, and even have your voicemails sent to your email. Here's how to set it up.