public static final class ImmutableMongosConfig.Builder
extends java.lang.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(java.util.Map<java.lang.String,? extends java.lang.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(java.lang.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(java.lang.String password)
Initializes the value for the
password attribute. |
ImmutableMongosConfig.Builder |
pidFile(java.lang.String pidFile)
Initializes the value for the
pidFile attribute. |
ImmutableMongosConfig.Builder |
putAllArgs(java.util.Map<java.lang.String,? extends java.lang.String> entries)
Put all mappings from the specified map as entries to
args map. |
ImmutableMongosConfig.Builder |
putArgs(java.util.Map.Entry<java.lang.String,? extends java.lang.String> entry)
Put one entry to the
args map. |
ImmutableMongosConfig.Builder |
putArgs(java.lang.String key,
java.lang.String value)
Put one entry to the
args map. |
ImmutableMongosConfig.Builder |
replicaSet(java.lang.String replicaSet)
Initializes the value for the
replicaSet attribute. |
ImmutableMongosConfig.Builder |
stopTimeoutInMillis(long stopTimeoutInMillis)
Initializes the optional value
stopTimeoutInMillis to stopTimeoutInMillis. |
ImmutableMongosConfig.Builder |
stopTimeoutInMillis(java.util.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(java.lang.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(java.util.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(java.lang.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(java.lang.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(java.lang.String configDB)
configDB attribute.configDB - The value for configDBthis builder for use in a chained invocationpublic final ImmutableMongosConfig.Builder replicaSet(java.lang.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(java.lang.String key, java.lang.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(java.util.Map.Entry<java.lang.String,? extends java.lang.String> entry)
args map. Nulls are not permittedentry - The key and value entrythis builder for use in a chained invocationpublic final ImmutableMongosConfig.Builder args(java.util.Map<java.lang.String,? extends java.lang.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(java.util.Map<java.lang.String,? extends java.lang.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(java.lang.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.java.lang.IllegalStateException - if any required attributes are missingCopyright © 2020. All Rights Reserved.