The two key choices here are between using a key rate technique or using a bucket shift technique that can both model non parallel changes in interest rates.
Key rate techniques use as the name suggests specific key rates to model interest rate changes. The bucket shift technique is more complex and can model a wider range of interest rate changes.
In relation to swaps, the bucket shift technique is superior due to this ability to factor in a wide range of interest rate changes.