You'll want a valve that's certified to meet NSF 61 standards, preferably stainless steel. Anything else, especially if it's non-certified brass, has a significant chance of lead and/or other hazardous contamination that you won't want leaching into your drinking water.
I recently replaced the solenoid on my Miele dishwasher with one of the US Solid electrically actuated ball valves (stainless steel, NSF 61 certified), and it's working fine. Total overkill for this application, but US Solid claims the mean-time between failure is something like 100,000 actuations, so hopefully I'll never have to touch it again. In contrast,the Miele solenoids fail about every 4-5 years, and replacing them with the same part is a total pain the neck. Besides, the Miele part would have cost 5x as much! Go figure.