As you can read in the MongoURI documentation
public class MongoURI extends Object
Represents a URI which can be used to create a Mongo instance. The URI describes the hosts to be used and options.
This class has been superseded by MongoClientURI, and may be deprecated in a future release.
So MongoClientURI is your answer