public static final class ImmutableMongoShellConfig.Builder extends Object
ImmutableMongoShellConfig.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
| Modifier and Type | Method and Description |
|---|---|
ImmutableMongoShellConfig.Builder |
addAllScriptParameters(Iterable<String> elements)
Adds elements to
scriptParameters list. |
ImmutableMongoShellConfig.Builder |
addScriptParameters(String... elements)
Adds elements to
scriptParameters list. |
ImmutableMongoShellConfig.Builder |
addScriptParameters(String element)
Adds one element to
scriptParameters list. |
ImmutableMongoShellConfig |
build()
Builds a new
ImmutableMongoShellConfig. |
ImmutableMongoShellConfig.Builder |
cmdOptions(MongoCmdOptions cmdOptions)
Initializes the value for the
cmdOptions attribute. |
ImmutableMongoShellConfig.Builder |
dbName(String dbName)
Initializes the value for the
dbName attribute. |
ImmutableMongoShellConfig.Builder |
from(de.flapdoodle.embed.process.config.ExecutableProcessConfig instance)
Fill a builder with attribute values from the provided
de.flapdoodle.embed.process.config.ExecutableProcessConfig instance. |
ImmutableMongoShellConfig.Builder |
from(MongoCommonConfig instance)
Fill a builder with attribute values from the provided
de.flapdoodle.embed.mongo.config.MongoCommonConfig instance. |
ImmutableMongoShellConfig.Builder |
from(MongoShellConfig instance)
Fill a builder with attribute values from the provided
de.flapdoodle.embed.mongo.config.MongoShellConfig instance. |
ImmutableMongoShellConfig.Builder |
net(Net net)
Initializes the value for the
net attribute. |
ImmutableMongoShellConfig.Builder |
password(String password)
Initializes the value for the
password attribute. |
ImmutableMongoShellConfig.Builder |
pidFile(String pidFile)
Initializes the value for the
pidFile attribute. |
ImmutableMongoShellConfig.Builder |
scriptName(String scriptName)
Initializes the value for the
scriptName attribute. |
ImmutableMongoShellConfig.Builder |
scriptParameters(Iterable<String> elements)
Sets or replaces all elements for
scriptParameters list. |
ImmutableMongoShellConfig.Builder |
stopTimeoutInMillis(long stopTimeoutInMillis)
Initializes the optional value
stopTimeoutInMillis to stopTimeoutInMillis. |
ImmutableMongoShellConfig.Builder |
stopTimeoutInMillis(OptionalLong stopTimeoutInMillis)
Initializes the optional value
stopTimeoutInMillis to stopTimeoutInMillis. |
ImmutableMongoShellConfig.Builder |
supportConfig(de.flapdoodle.embed.process.config.SupportConfig supportConfig)
Initializes the value for the
supportConfig attribute. |
ImmutableMongoShellConfig.Builder |
timeout(Timeout timeout)
Initializes the value for the
timeout attribute. |
ImmutableMongoShellConfig.Builder |
userName(String userName)
Initializes the value for the
userName attribute. |
ImmutableMongoShellConfig.Builder |
version(IFeatureAwareVersion version)
Initializes the value for the
version attribute. |
public final ImmutableMongoShellConfig.Builder from(MongoShellConfig instance)
de.flapdoodle.embed.mongo.config.MongoShellConfig instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ImmutableMongoShellConfig.Builder from(MongoCommonConfig instance)
de.flapdoodle.embed.mongo.config.MongoCommonConfig instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ImmutableMongoShellConfig.Builder from(de.flapdoodle.embed.process.config.ExecutableProcessConfig instance)
de.flapdoodle.embed.process.config.ExecutableProcessConfig instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ImmutableMongoShellConfig.Builder stopTimeoutInMillis(long stopTimeoutInMillis)
stopTimeoutInMillis to stopTimeoutInMillis.stopTimeoutInMillis - The value for stopTimeoutInMillisthis builder for chained invocationpublic final ImmutableMongoShellConfig.Builder stopTimeoutInMillis(OptionalLong stopTimeoutInMillis)
stopTimeoutInMillis to stopTimeoutInMillis.stopTimeoutInMillis - The value for stopTimeoutInMillisthis builder for use in a chained invocationpublic final ImmutableMongoShellConfig.Builder version(IFeatureAwareVersion version)
version attribute.version - The value for versionthis builder for use in a chained invocationpublic final ImmutableMongoShellConfig.Builder timeout(Timeout timeout)
timeout attribute.
If not set, this attribute will have a default value as returned by the initializer of timeout.
timeout - The value for timeoutthis builder for use in a chained invocationpublic final ImmutableMongoShellConfig.Builder net(Net net)
net attribute.
If not set, this attribute will have a default value as returned by the initializer of net.
net - The value for netthis builder for use in a chained invocationpublic final ImmutableMongoShellConfig.Builder cmdOptions(MongoCmdOptions cmdOptions)
cmdOptions attribute.
If not set, this attribute will have a default value as returned by the initializer of cmdOptions.
cmdOptions - The value for cmdOptionsthis builder for use in a chained invocationpublic final ImmutableMongoShellConfig.Builder password(String password)
password attribute.
If not set, this attribute will have a default value as returned by the initializer of password.
password - The value for passwordthis builder for use in a chained invocationpublic final ImmutableMongoShellConfig.Builder userName(String userName)
userName attribute.
If not set, this attribute will have a default value as returned by the initializer of userName.
userName - The value for userNamethis builder for use in a chained invocationpublic final ImmutableMongoShellConfig.Builder addScriptParameters(String element)
scriptParameters list.element - A scriptParameters elementthis builder for use in a chained invocationpublic final ImmutableMongoShellConfig.Builder addScriptParameters(String... elements)
scriptParameters list.elements - An array of scriptParameters elementsthis builder for use in a chained invocationpublic final ImmutableMongoShellConfig.Builder scriptParameters(Iterable<String> elements)
scriptParameters list.elements - An iterable of scriptParameters elementsthis builder for use in a chained invocationpublic final ImmutableMongoShellConfig.Builder addAllScriptParameters(Iterable<String> elements)
scriptParameters list.elements - An iterable of scriptParameters elementsthis builder for use in a chained invocationpublic final ImmutableMongoShellConfig.Builder scriptName(String scriptName)
scriptName attribute.scriptName - The value for scriptNamethis builder for use in a chained invocationpublic final ImmutableMongoShellConfig.Builder dbName(String dbName)
dbName attribute.dbName - The value for dbNamethis builder for use in a chained invocationpublic final ImmutableMongoShellConfig.Builder pidFile(String pidFile)
pidFile attribute.
If not set, this attribute will have a default value as returned by the initializer of pidFile.
pidFile - The value for pidFilethis builder for use in a chained invocationpublic final ImmutableMongoShellConfig.Builder supportConfig(de.flapdoodle.embed.process.config.SupportConfig supportConfig)
supportConfig attribute.
If not set, this attribute will have a default value as returned by the initializer of supportConfig.
supportConfig - The value for supportConfigthis builder for use in a chained invocationpublic ImmutableMongoShellConfig build()
ImmutableMongoShellConfig.IllegalStateException - if any required attributes are missingCopyright © 2021. All rights reserved.