@NotThreadSafe public static final class MongoEmbeddedSettings.Builder extends Object
MongoEmbeddedSettings so that MongoEmbeddedSettings can be immutable, and to support easier
construction through chaining.| Modifier and Type | Method | Description |
|---|---|---|
MongoEmbeddedSettings |
build() |
Build an instance of
MongoClientSettings. |
MongoEmbeddedSettings.Builder |
libraryPath(String libraryPath) |
Sets the library path for mongod.
|
MongoEmbeddedSettings.Builder |
logLevel(MongoEmbeddedSettings.LogLevel logLevel) |
Sets the logging level for the mongod.
|
MongoEmbeddedSettings.Builder |
yamlConfig(String yamlConfig) |
Sets the yaml configuration for mongod.
|
public MongoEmbeddedSettings.Builder libraryPath(String libraryPath)
libraryPath - the library path for mongodpublic MongoEmbeddedSettings.Builder yamlConfig(String yamlConfig)
yamlConfig - the yaml configuration for mongodpublic MongoEmbeddedSettings.Builder logLevel(MongoEmbeddedSettings.LogLevel logLevel)
logLevel - the library path for mongodpublic MongoEmbeddedSettings build()
MongoClientSettings.