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 MongoDriverInformation
build()
MongoDriverInformation.Builder
driverNameβ(String driverName)
Sets the nameMongoDriverInformation.Builder
driverPlatformβ(String driverPlatform)
Sets the platformMongoDriverInformation.Builder
driverVersionβ(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
-
-