Yamaha part number 1A0-83980-30 is the front brake light switch. The factory parts catalog lists this same number on all of these bikes, so the part is interchangeable between them:
XS400
XS650 / XS750 / XS850 / XS1100 / SR500
XJ650 Maxim (1980)
XJ550 Seca (1981), XJ750 Maxim (1982) and XS650 (1980)
Selling this part? "Copy eBay title" gives you a listing title with every bike it fits.
Sellers don't always list the part number, so try both searches. Old numbers are sometimes replaced by a newer number with a different ending; the source page shows the current one.
The details
Does the XS400 front brake light switch fit the XS650 / XS750 / XS850 / XS1100 / SR500? #1A0-83980-30
Same part number
Yes. The front brake light switch from the XS400 fits the XS650 / XS750 / XS850 / XS1100 / SR500. Both use part number 1A0-83980-30, so it swaps either way.
Does the XJ650 Maxim (1980) front brake light switch fit the XJ550 Seca (1981), XJ750 Maxim (1982) and XS650 (1980)? #1A0-83980-30
Same part number
Yes. The front brake light switch from the XJ650 Maxim (1980) fits the XJ550 Seca (1981), XJ750 Maxim (1982) and XS650 (1980). Both use part number 1A0-83980-30, so it swaps either way.
From XJ650 Maxim (1980) → onto XJ550 Seca (1981), XJ750 Maxim (1982) and XS650 (1980)
Same factory part number on all three bikes.
Safety part. Check fit and condition, and have it inspected by a qualified mechanic.