Just like anything else, If you know how to take care of it it will last forever.
Just make sure you get a warranty. So far my Ducati customer service has been good for the minor things I had to take in to the shop for. Gear position sensor to be specific. I guess they are known for being bad. Other than that my 2019 Panigale V4s is a great daily rider.