In Java, that method takes a value of type Hand which is an enumeration with kLeft and kRight values (in GenericHID.java). I am not sure, but it looks like you might be using C++ in which case it take a value of type JoystickHand which is an enumeration with kLeftHand and kRightHand values (in GenericHID.h).
In either case, read the documentation for GetBumper and GetBumperPressed to understand the difference. I have seen several people use GetBumperPressed when they really wanted GetBumper.
Thanks for stepping in. My last major foray into C++ was pre-namespaces. This solution makes sense since XBoxContoller has GenericHID as its base class (look, I said base class instead saying extends).