You can find this switch under different names: microswitch, limit switch, endstop, or KW11-3Z. I think it's best to print it with PLA. For mounting I used two M2 x 12 mm screws with nuts. Supports are not required. Good adhesion to the build plate is needed. Remember that you can always add some glue, but this is last resort.
The author marked this model as their own original creation.