Yes, this switch does require a 20A type power cord which is purchased locally. You can also connect to this switch via a 20A outdoor power inlet box which is determined by the type of connection you have on your generator.
20 Amp Power Inlet Boxes