Package com.mongodb
Class MongoDriverInformation.Builder
- java.lang.Object
-
- com.mongodb.MongoDriverInformation.Builder
-
- Enclosing class:
- MongoDriverInformation
@NotThreadSafe public static final class MongoDriverInformation.Builder extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MongoDriverInformationbuild()MongoDriverInformation.BuilderdriverName(String driverName)Sets the nameMongoDriverInformation.BuilderdriverPlatform(String driverPlatform)Sets the platformMongoDriverInformation.BuilderdriverVersion(String driverVersion)Sets the version
-
-
-
Method Detail
-
driverName
public MongoDriverInformation.Builder driverName(String driverName)
Sets the name- Parameters:
driverName- the name- Returns:
- this
-
driverVersion
public MongoDriverInformation.Builder driverVersion(String driverVersion)
Sets the versionNote: You must also set a driver name if setting a driver version.
- Parameters:
driverVersion- the version- Returns:
- this
-
driverPlatform
public MongoDriverInformation.Builder driverPlatform(String driverPlatform)
Sets the platform- Parameters:
driverPlatform- the platform- Returns:
- this
-
build
public MongoDriverInformation build()
- Returns:
- the driver information
-
-