MongoClientOptions cannot be resolved in Java Driver 4.2.3

Looks like with mongodb-driver-core 4.2.3 the MongoClientOptions class has gone. But in mongo documentation its not mentioned as such.

https://mongodb.github.io/mongo-java-driver/4.2/apidocs/mongodb-driver-legacy/com/mongodb/MongoClientOptions.html

Why should i use instead MongoClientOptions in this case?

It’s not gone. It’s still available in the mongodb-driver-legacy artifact.

For applications that want to avoid mongodb-driver-legacy and instead rely solely on mongodb-driver-sync, the replacement for MongoClientOptions is called MongoClientSettings.