Cook the pasta according to the instructions on the packet. Dice the cooked ham and drain the pineapple and collect the juice. Let the pasta cool down.
Mix the remaining ingredients into the cooled pasta and season with salt and pepper. Let it steep in the refrigerator and season if necessary.