Switched to Java enums for deserialization with Jackson AND exhaustive matches; implemented listEndpoint in Java-client