OKAY. So let's try to get to the solution. The switch in this case appears to be Transfer Switch No. 3, p/n 84222-35070 aka ADD Inicator Switch A10 on the '99 EWD. That connector housing is p/n 90980-11250 if you want to buy a new one and you have usable wire treminals lying around. It is a gray two-wire plug, just to confirm.
So a little Googling reveals that this switch is used as back-up light switch on several other models and is in enough demand that a bunch of folks carry the whole pigtail. The pictures show these do match up to the pinout A10 diagram in my '99 paper EWD, page 204. Suppliers include:
Home >> Shop >> Connectors / Harnesses >> Yazaki >> 2 Way Connector Plug Pigtail for Toyota Transfer case, backup lights 90980-11250 (BUL & 4WD indicator)
Amazon.com
Walmart.com
Here is the end-on shot of the first pigtail above. Clearly a good match to the male switch above:
Note again that what Toyota sells under this p/n is just the housing, no wires, and the MSRP is $12.15. You would then need two repair wires, if you can't junk source them. They are pretty common. But I can look up the p/n for them if your heart is set on new OEM replacement. I just can't do it on this computer. The housing looks like this:
Hope this helps...
__________________
'99 4Runner SR5 5spd 3.4L V6 4WD(U.S), original '99 Talls in front, OME 906s in back, Hella fogs, Trekmaster shocks in front, Billy in back, no running boards, FIAMM horns, Alpine sound, Michelin LTX M/S2's, owned since new.
'97 HiLux SW4 5spd 4WD(Japan model bought in Brazil assembled in Argentina, very close to a 3.0 4Runner/Surf)
'71 FordWillys Jeep CJ5 (with straight six Ford Maverick 3.0 liter engine--lives in the mountains north of Sao Paulo Brazil)
My Backyard Frame Swap