Well, most consoles are designed to last from the manufacturers perspective, the real question is always whether or not it will once it hits the actual market and gains traction. It remains to be seen, it's still young, it had a great 2018, but we also need to remember when comparing to the 7th and 8th gen that Nintendo doesn't really have a dedicated handheld selling much at the moment. Without two parallel markets moving significant amounts of hardware, more load is put on the Switch's shoulders to carry overall sales.
I'm still not sure, I've said from before launch that I'm unsure of the longevity of the Switch due to its tablet-like design and marketing, as well as their insistence on holding back on, or even completely foregoing multimedia functionality, connectivity and app support and proper online infrastructures. I guess the most realistic answer is "we'll see", at least from where I'm sitting.