public final class ImmutableMongoShellConfig extends Object implements MongoShellConfig
MongoShellConfig.
Use the builder to create immutable instances:
ImmutableMongoShellConfig.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableMongoShellConfig.Builder
Builds instances of type
ImmutableMongoShellConfig. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableMongoShellConfig.Builder |
builder()
Creates a builder for
ImmutableMongoShellConfig. |
MongoCmdOptions |
cmdOptions() |
static ImmutableMongoShellConfig |
copyOf(MongoShellConfig instance)
Creates an immutable copy of a
MongoShellConfig value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableMongoShellConfig that have equal attribute values. |
String |
getDbName() |
String |
getScriptName() |
List<String> |
getScriptParameters() |
int |
hashCode()
Computes a hash code from attributes:
stopTimeoutInMillis, version, timeout, net, cmdOptions, password, userName, scriptParameters, scriptName, dbName, pidFile, supportConfig. |
Net |
net() |
String |
password() |
String |
pidFile() |
OptionalLong |
stopTimeoutInMillis() |
de.flapdoodle.embed.process.config.SupportConfig |
supportConfig() |
Timeout |
timeout() |
String |
toString()
Prints the immutable value
MongoShellConfig with attribute values. |
String |
userName() |
IFeatureAwareVersion |
version() |
ImmutableMongoShellConfig |
withCmdOptions(MongoCmdOptions value)
Copy the current immutable object by setting a value for the
cmdOptions attribute. |
ImmutableMongoShellConfig |
withDbName(String value)
Copy the current immutable object by setting a value for the
dbName attribute. |
ImmutableMongoShellConfig |
withNet(Net value)
Copy the current immutable object by setting a value for the
net attribute. |
ImmutableMongoShellConfig |
withPassword(String value)
Copy the current immutable object by setting a value for the
password attribute. |
ImmutableMongoShellConfig |
withPidFile(String value)
Copy the current immutable object by setting a value for the
pidFile attribute. |
ImmutableMongoShellConfig |
withScriptName(String value)
Copy the current immutable object by setting a value for the
scriptName attribute. |
ImmutableMongoShellConfig |
withScriptParameters(Iterable<String> elements)
Copy the current immutable object with elements that replace the content of
scriptParameters. |
ImmutableMongoShellConfig |
withScriptParameters(String... elements)
Copy the current immutable object with elements that replace the content of
scriptParameters. |
ImmutableMongoShellConfig |
withStopTimeoutInMillis(long value)
Copy the current immutable object by setting a present value for the optional
stopTimeoutInMillis attribute. |
ImmutableMongoShellConfig |
withStopTimeoutInMillis(OptionalLong optional)
Copy the current immutable object by setting an optional value for the
stopTimeoutInMillis attribute. |
ImmutableMongoShellConfig |
withSupportConfig(de.flapdoodle.embed.process.config.SupportConfig value)
Copy the current immutable object by setting a value for the
supportConfig attribute. |
ImmutableMongoShellConfig |
withTimeout(Timeout value)
Copy the current immutable object by setting a value for the
timeout attribute. |
ImmutableMongoShellConfig |
withUserName(String value)
Copy the current immutable object by setting a value for the
userName attribute. |
ImmutableMongoShellConfig |
withVersion(IFeatureAwareVersion value)
Copy the current immutable object by setting a value for the
version attribute. |
public OptionalLong stopTimeoutInMillis()
stopTimeoutInMillis in interface de.flapdoodle.embed.process.config.ExecutableProcessConfigstopTimeoutInMillis attributepublic IFeatureAwareVersion version()
version in interface MongoCommonConfigversion in interface de.flapdoodle.embed.process.config.ExecutableProcessConfigversion attributepublic Timeout timeout()
timeout in interface MongoCommonConfigtimeout attributepublic Net net()
net in interface MongoCommonConfignet attributepublic MongoCmdOptions cmdOptions()
cmdOptions in interface MongoCommonConfigcmdOptions attributepublic String password()
password in interface MongoCommonConfigpassword attributepublic String userName()
userName in interface MongoCommonConfiguserName attributepublic List<String> getScriptParameters()
getScriptParameters in interface MongoShellConfigscriptParameters attributepublic String getScriptName()
getScriptName in interface MongoShellConfigscriptName attributepublic String getDbName()
getDbName in interface MongoShellConfigdbName attributepublic String pidFile()
pidFile in interface MongoCommonConfigpidFile in interface MongoShellConfigpidFile attributepublic de.flapdoodle.embed.process.config.SupportConfig supportConfig()
supportConfig in interface MongoShellConfigsupportConfig in interface de.flapdoodle.embed.process.config.ExecutableProcessConfigsupportConfig attributepublic final ImmutableMongoShellConfig withStopTimeoutInMillis(long value)
stopTimeoutInMillis attribute.value - The value for stopTimeoutInMillisthis objectpublic final ImmutableMongoShellConfig withStopTimeoutInMillis(OptionalLong optional)
stopTimeoutInMillis attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for stopTimeoutInMillisthis objectpublic final ImmutableMongoShellConfig withVersion(IFeatureAwareVersion value)
version attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for versionthis objectpublic final ImmutableMongoShellConfig withTimeout(Timeout value)
timeout attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for timeoutthis objectpublic final ImmutableMongoShellConfig withNet(Net value)
net attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for netthis objectpublic final ImmutableMongoShellConfig withCmdOptions(MongoCmdOptions value)
cmdOptions attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for cmdOptionsthis objectpublic final ImmutableMongoShellConfig withPassword(String value)
password attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for passwordthis objectpublic final ImmutableMongoShellConfig withUserName(String value)
userName attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for userNamethis objectpublic final ImmutableMongoShellConfig withScriptParameters(String... elements)
scriptParameters.elements - The elements to setthis objectpublic final ImmutableMongoShellConfig withScriptParameters(Iterable<String> elements)
scriptParameters.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of scriptParameters elements to setthis objectpublic final ImmutableMongoShellConfig withScriptName(String value)
scriptName attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for scriptNamethis objectpublic final ImmutableMongoShellConfig withDbName(String value)
dbName attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for dbNamethis objectpublic final ImmutableMongoShellConfig withPidFile(String value)
pidFile attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for pidFilethis objectpublic final ImmutableMongoShellConfig withSupportConfig(de.flapdoodle.embed.process.config.SupportConfig value)
supportConfig attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for supportConfigthis objectpublic boolean equals(Object another)
ImmutableMongoShellConfig that have equal attribute values.public int hashCode()
stopTimeoutInMillis, version, timeout, net, cmdOptions, password, userName, scriptParameters, scriptName, dbName, pidFile, supportConfig.public String toString()
MongoShellConfig with attribute values.public static ImmutableMongoShellConfig copyOf(MongoShellConfig instance)
MongoShellConfig value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static ImmutableMongoShellConfig.Builder builder()
ImmutableMongoShellConfig.
ImmutableMongoShellConfig.builder()
.stopTimeoutInMillis(long) // optional stopTimeoutInMillis
.version(de.flapdoodle.embed.mongo.distribution.IFeatureAwareVersion) // required version
.timeout(de.flapdoodle.embed.mongo.config.Timeout) // optional timeout
.net(de.flapdoodle.embed.mongo.config.Net) // optional net
.cmdOptions(de.flapdoodle.embed.mongo.config.MongoCmdOptions) // optional cmdOptions
.password(String) // optional password
.userName(String) // optional userName
.addScriptParameters|addAllScriptParameters(String) // scriptParameters elements
.scriptName(String) // required scriptName
.dbName(String) // required dbName
.pidFile(String) // optional pidFile
.supportConfig(de.flapdoodle.embed.process.config.SupportConfig) // optional supportConfig
.build();
builder in interface MongoShellConfigCopyright © 2021. All rights reserved.