The enum constructor takes a value parameter which is the string representation of the message type.
final String value;