Business Asset

I started a business in 2022.  I built a building on my property for 100% business use for my woodworking business.  Can I expense it all this year or do I need to depreciate over time?