public static final class ImmutableMongosConfig.Builder extends Object
ImmutableMongosConfig.
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 |
|---|---|
ImmutableMongosConfig.Builder |
args(Map<String,? extends String> entries)
Sets or replaces all mappings from the specified map as entries for the
args map. |
ImmutableMongosConfig |
build()
Builds a new
ImmutableMongosConfig. |
ImmutableMongosConfig.Builder |
cmdOptions(MongoCmdOptions cmdOptions)
Initializes the value for the
cmdOptions attribute. |
ImmutableMongosConfig.Builder |
configDB(String configDB)
Initializes the value for the
configDB attribute. |
ImmutableMongosConfig.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. |
ImmutableMongosConfig.Builder |
from(MongoCommonConfig instance)
Fill a builder with attribute values from the provided
de.flapdoodle.embed.mongo.config.MongoCommonConfig instance. |
ImmutableMongosConfig.Builder |
from(MongosConfig instance)
Fill a builder with attribute values from the provided
de.flapdoodle.embed.mongo.config.MongosConfig instance. |
ImmutableMongosConfig.Builder |
net(Net net)
Initializes the value for the
net attribute. |
ImmutableMongosConfig.Builder |
password(String password)
Initializes the value for the
password attribute. |
ImmutableMongosConfig.Builder |
pidFile(String pidFile)
Initializes the value for the
pidFile attribute. |
ImmutableMongosConfig.Builder |
putAllArgs(Map<String,? extends String> entries)
Put all mappings from the specified map as entries to
args map. |
ImmutableMongosConfig.Builder |
putArgs(Map.Entry<String,? extends String> entry)
Put one entry to the
args map. |
ImmutableMongosConfig.Builder |
putArgs(String key,
String value)
Put one entry to the
args map. |
ImmutableMongosConfig.Builder |
replicaSet(String replicaSet)
Initializes the value for the
replicaSet attribute. |
ImmutableMongosConfig.Builder |
stopTimeoutInMillis(long stopTimeoutInMillis)
Initializes the optional value
stopTimeoutInMillis to stopTimeoutInMillis. |
ImmutableMongosConfig.Builder |
stopTimeoutInMillis(OptionalLong stopTimeoutInMillis)
Initializes the optional value
stopTimeoutInMillis to stopTimeoutInMillis. |
ImmutableMongosConfig.Builder |
supportConfig(de.flapdoodle.embed.process.config.SupportConfig supportConfig)
Initializes the value for the
supportConfig attribute. |
ImmutableMongosConfig.Builder |
timeout(Timeout timeout)
Initializes the value for the
timeout attribute. |
ImmutableMongosConfig.Builder |
userName(String userName)
Initializes the value for the
userName attribute. |
ImmutableMongosConfig.Builder |
version(IFeatureAwareVersion version)
Initializes the value for the
version attribute. |
public final ImmutableMongosConfig.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 ImmutableMongosConfig.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 ImmutableMongosConfig.Builder from(MongosConfig instance)
de.flapdoodle.embed.mongo.config.MongosConfig instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ImmutableMongosConfig.Builder stopTimeoutInMillis(long stopTimeoutInMillis)
stopTimeoutInMillis to stopTimeoutInMillis.stopTimeoutInMillis - The value for stopTimeoutInMillisthis builder for chained invocationpublic final ImmutableMongosConfig.Builder stopTimeoutInMillis(OptionalLong stopTimeoutInMillis)
stopTimeoutInMillis to stopTimeoutInMillis.stopTimeoutInMillis - The value for stopTimeoutInMillisthis builder for use in a chained invocationpublic final ImmutableMongosConfig.Builder version(IFeatureAwareVersion version)
version attribute.version - The value for versionthis builder for use in a chained invocationpublic final ImmutableMongosConfig.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 ImmutableMongosConfig.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 ImmutableMongosConfig.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 ImmutableMongosConfig.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 ImmutableMongosConfig.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 ImmutableMongosConfig.Builder configDB(String configDB)
configDB attribute.configDB - The value for configDBthis builder for use in a chained invocationpublic final ImmutableMongosConfig.Builder replicaSet(String replicaSet)
replicaSet attribute.
If not set, this attribute will have a default value as returned by the initializer of replicaSet.
replicaSet - The value for replicaSetthis builder for use in a chained invocationpublic final ImmutableMongosConfig.Builder putArgs(String key, String value)
args map.key - The key in the args mapvalue - The associated value in the args mapthis builder for use in a chained invocationpublic final ImmutableMongosConfig.Builder putArgs(Map.Entry<String,? extends String> entry)
args map. Nulls are not permittedentry - The key and value entrythis builder for use in a chained invocationpublic final ImmutableMongosConfig.Builder args(Map<String,? extends String> entries)
args map. Nulls are not permittedentries - The entries that will be added to the args mapthis builder for use in a chained invocationpublic final ImmutableMongosConfig.Builder putAllArgs(Map<String,? extends String> entries)
args map. Nulls are not permittedentries - The entries that will be added to the args mapthis builder for use in a chained invocationpublic final ImmutableMongosConfig.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 ImmutableMongosConfig.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 ImmutableMongosConfig build()
ImmutableMongosConfig.IllegalStateException - if any required attributes are missingCopyright © 2022. All rights reserved.