public final class ImmutableMongoDumpConfig extends Object implements MongoDumpConfig
MongoDumpConfig.
Use the builder to create immutable instances:
ImmutableMongoDumpConfig.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableMongoDumpConfig.Builder
Builds instances of type
ImmutableMongoDumpConfig. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableMongoDumpConfig.Builder |
builder()
Creates a builder for
ImmutableMongoDumpConfig. |
MongoCmdOptions |
cmdOptions() |
static ImmutableMongoDumpConfig |
copyOf(MongoDumpConfig instance)
Creates an immutable copy of a
MongoDumpConfig value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableMongoDumpConfig that have equal attribute values. |
Optional<String> |
getArchive() |
Optional<String> |
getCollectionName() |
Optional<String> |
getDatabaseName() |
Optional<String> |
getExcludeCollection() |
Optional<String> |
getExcludeCollectionWithPrefix() |
OptionalInt |
getNumberOfParallelCollections() |
Optional<String> |
getOut() |
Optional<String> |
getQuery() |
Optional<String> |
getQueryFile() |
Optional<String> |
getReadPreference() |
int |
hashCode()
Computes a hash code from attributes:
stopTimeoutInMillis, version, timeout, net, cmdOptions, password, userName, isVerbose, databaseName, collectionName, query, queryFile, readPreference, isForceTableScan, archive, isDumpDbUsersAndRoles, isGzip, isRepair, out, isOplog, excludeCollection, excludeCollectionWithPrefix, numberOfParallelCollections, pidFile, supportConfig. |
boolean |
isDumpDbUsersAndRoles() |
boolean |
isForceTableScan() |
boolean |
isGzip() |
boolean |
isOplog() |
boolean |
isRepair() |
boolean |
isVerbose() |
Net |
net() |
String |
password() |
String |
pidFile() |
OptionalLong |
stopTimeoutInMillis() |
de.flapdoodle.embed.process.config.SupportConfig |
supportConfig() |
Timeout |
timeout() |
String |
toString()
Prints the immutable value
MongoDumpConfig with attribute values. |
String |
userName() |
IFeatureAwareVersion |
version() |
ImmutableMongoDumpConfig |
withArchive(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
archive attribute. |
ImmutableMongoDumpConfig |
withArchive(String value)
Copy the current immutable object by setting a present value for the optional
archive attribute. |
ImmutableMongoDumpConfig |
withCmdOptions(MongoCmdOptions value)
Copy the current immutable object by setting a value for the
cmdOptions attribute. |
ImmutableMongoDumpConfig |
withCollectionName(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
collectionName attribute. |
ImmutableMongoDumpConfig |
withCollectionName(String value)
Copy the current immutable object by setting a present value for the optional
collectionName attribute. |
ImmutableMongoDumpConfig |
withDatabaseName(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
databaseName attribute. |
ImmutableMongoDumpConfig |
withDatabaseName(String value)
Copy the current immutable object by setting a present value for the optional
databaseName attribute. |
ImmutableMongoDumpConfig |
withExcludeCollection(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
excludeCollection attribute. |
ImmutableMongoDumpConfig |
withExcludeCollection(String value)
Copy the current immutable object by setting a present value for the optional
excludeCollection attribute. |
ImmutableMongoDumpConfig |
withExcludeCollectionWithPrefix(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
excludeCollectionWithPrefix attribute. |
ImmutableMongoDumpConfig |
withExcludeCollectionWithPrefix(String value)
Copy the current immutable object by setting a present value for the optional
excludeCollectionWithPrefix attribute. |
ImmutableMongoDumpConfig |
withIsDumpDbUsersAndRoles(boolean value)
Copy the current immutable object by setting a value for the
isDumpDbUsersAndRoles attribute. |
ImmutableMongoDumpConfig |
withIsForceTableScan(boolean value)
Copy the current immutable object by setting a value for the
isForceTableScan attribute. |
ImmutableMongoDumpConfig |
withIsGzip(boolean value)
Copy the current immutable object by setting a value for the
isGzip attribute. |
ImmutableMongoDumpConfig |
withIsOplog(boolean value)
Copy the current immutable object by setting a value for the
isOplog attribute. |
ImmutableMongoDumpConfig |
withIsRepair(boolean value)
Copy the current immutable object by setting a value for the
isRepair attribute. |
ImmutableMongoDumpConfig |
withIsVerbose(boolean value)
Copy the current immutable object by setting a value for the
isVerbose attribute. |
ImmutableMongoDumpConfig |
withNet(Net value)
Copy the current immutable object by setting a value for the
net attribute. |
ImmutableMongoDumpConfig |
withNumberOfParallelCollections(int value)
Copy the current immutable object by setting a present value for the optional
numberOfParallelCollections attribute. |
ImmutableMongoDumpConfig |
withNumberOfParallelCollections(OptionalInt optional)
Copy the current immutable object by setting an optional value for the
numberOfParallelCollections attribute. |
ImmutableMongoDumpConfig |
withOut(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
out attribute. |
ImmutableMongoDumpConfig |
withOut(String value)
Copy the current immutable object by setting a present value for the optional
out attribute. |
ImmutableMongoDumpConfig |
withPassword(String value)
Copy the current immutable object by setting a value for the
password attribute. |
ImmutableMongoDumpConfig |
withPidFile(String value)
Copy the current immutable object by setting a value for the
pidFile attribute. |
ImmutableMongoDumpConfig |
withQuery(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
query attribute. |
ImmutableMongoDumpConfig |
withQuery(String value)
Copy the current immutable object by setting a present value for the optional
query attribute. |
ImmutableMongoDumpConfig |
withQueryFile(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
queryFile attribute. |
ImmutableMongoDumpConfig |
withQueryFile(String value)
Copy the current immutable object by setting a present value for the optional
queryFile attribute. |
ImmutableMongoDumpConfig |
withReadPreference(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
readPreference attribute. |
ImmutableMongoDumpConfig |
withReadPreference(String value)
Copy the current immutable object by setting a present value for the optional
readPreference attribute. |
ImmutableMongoDumpConfig |
withStopTimeoutInMillis(long value)
Copy the current immutable object by setting a present value for the optional
stopTimeoutInMillis attribute. |
ImmutableMongoDumpConfig |
withStopTimeoutInMillis(OptionalLong optional)
Copy the current immutable object by setting an optional value for the
stopTimeoutInMillis attribute. |
ImmutableMongoDumpConfig |
withSupportConfig(de.flapdoodle.embed.process.config.SupportConfig value)
Copy the current immutable object by setting a value for the
supportConfig attribute. |
ImmutableMongoDumpConfig |
withTimeout(Timeout value)
Copy the current immutable object by setting a value for the
timeout attribute. |
ImmutableMongoDumpConfig |
withUserName(String value)
Copy the current immutable object by setting a value for the
userName attribute. |
ImmutableMongoDumpConfig |
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 boolean isVerbose()
isVerbose in interface MongoDumpConfigisVerbose attributepublic Optional<String> getDatabaseName()
getDatabaseName in interface MongoDumpConfigdatabaseName attributepublic Optional<String> getCollectionName()
getCollectionName in interface MongoDumpConfigcollectionName attributepublic Optional<String> getQuery()
getQuery in interface MongoDumpConfigquery attributepublic Optional<String> getQueryFile()
getQueryFile in interface MongoDumpConfigqueryFile attributepublic Optional<String> getReadPreference()
getReadPreference in interface MongoDumpConfigreadPreference attributepublic boolean isForceTableScan()
isForceTableScan in interface MongoDumpConfigisForceTableScan attributepublic Optional<String> getArchive()
getArchive in interface MongoDumpConfigarchive attributepublic boolean isDumpDbUsersAndRoles()
isDumpDbUsersAndRoles in interface MongoDumpConfigisDumpDbUsersAndRoles attributepublic boolean isGzip()
isGzip in interface MongoDumpConfigisGzip attributepublic boolean isRepair()
isRepair in interface MongoDumpConfigisRepair attributepublic Optional<String> getOut()
getOut in interface MongoDumpConfigout attributepublic boolean isOplog()
isOplog in interface MongoDumpConfigisOplog attributepublic Optional<String> getExcludeCollection()
getExcludeCollection in interface MongoDumpConfigexcludeCollection attributepublic Optional<String> getExcludeCollectionWithPrefix()
getExcludeCollectionWithPrefix in interface MongoDumpConfigexcludeCollectionWithPrefix attributepublic OptionalInt getNumberOfParallelCollections()
getNumberOfParallelCollections in interface MongoDumpConfignumberOfParallelCollections attributepublic String pidFile()
pidFile in interface MongoCommonConfigpidFile in interface MongoDumpConfigpidFile attributepublic de.flapdoodle.embed.process.config.SupportConfig supportConfig()
supportConfig in interface MongoDumpConfigsupportConfig in interface de.flapdoodle.embed.process.config.ExecutableProcessConfigsupportConfig attributepublic final ImmutableMongoDumpConfig withStopTimeoutInMillis(long value)
stopTimeoutInMillis attribute.value - The value for stopTimeoutInMillisthis objectpublic final ImmutableMongoDumpConfig 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 ImmutableMongoDumpConfig 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 ImmutableMongoDumpConfig 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 ImmutableMongoDumpConfig 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 ImmutableMongoDumpConfig 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 ImmutableMongoDumpConfig 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 ImmutableMongoDumpConfig 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 ImmutableMongoDumpConfig withIsVerbose(boolean value)
isVerbose attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for isVerbosethis objectpublic final ImmutableMongoDumpConfig withDatabaseName(String value)
databaseName attribute.value - The value for databaseNamethis objectpublic final ImmutableMongoDumpConfig withDatabaseName(Optional<String> optional)
databaseName attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for databaseNamethis objectpublic final ImmutableMongoDumpConfig withCollectionName(String value)
collectionName attribute.value - The value for collectionNamethis objectpublic final ImmutableMongoDumpConfig withCollectionName(Optional<String> optional)
collectionName attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for collectionNamethis objectpublic final ImmutableMongoDumpConfig withQuery(String value)
query attribute.value - The value for querythis objectpublic final ImmutableMongoDumpConfig withQuery(Optional<String> optional)
query attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for querythis objectpublic final ImmutableMongoDumpConfig withQueryFile(String value)
queryFile attribute.value - The value for queryFilethis objectpublic final ImmutableMongoDumpConfig withQueryFile(Optional<String> optional)
queryFile attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for queryFilethis objectpublic final ImmutableMongoDumpConfig withReadPreference(String value)
readPreference attribute.value - The value for readPreferencethis objectpublic final ImmutableMongoDumpConfig withReadPreference(Optional<String> optional)
readPreference attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for readPreferencethis objectpublic final ImmutableMongoDumpConfig withIsForceTableScan(boolean value)
isForceTableScan attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for isForceTableScanthis objectpublic final ImmutableMongoDumpConfig withArchive(String value)
archive attribute.value - The value for archivethis objectpublic final ImmutableMongoDumpConfig withArchive(Optional<String> optional)
archive attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for archivethis objectpublic final ImmutableMongoDumpConfig withIsDumpDbUsersAndRoles(boolean value)
isDumpDbUsersAndRoles attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for isDumpDbUsersAndRolesthis objectpublic final ImmutableMongoDumpConfig withIsGzip(boolean value)
isGzip attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for isGzipthis objectpublic final ImmutableMongoDumpConfig withIsRepair(boolean value)
isRepair attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for isRepairthis objectpublic final ImmutableMongoDumpConfig withOut(String value)
out attribute.value - The value for outthis objectpublic final ImmutableMongoDumpConfig withOut(Optional<String> optional)
out attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for outthis objectpublic final ImmutableMongoDumpConfig withIsOplog(boolean value)
isOplog attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for isOplogthis objectpublic final ImmutableMongoDumpConfig withExcludeCollection(String value)
excludeCollection attribute.value - The value for excludeCollectionthis objectpublic final ImmutableMongoDumpConfig withExcludeCollection(Optional<String> optional)
excludeCollection attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for excludeCollectionthis objectpublic final ImmutableMongoDumpConfig withExcludeCollectionWithPrefix(String value)
excludeCollectionWithPrefix attribute.value - The value for excludeCollectionWithPrefixthis objectpublic final ImmutableMongoDumpConfig withExcludeCollectionWithPrefix(Optional<String> optional)
excludeCollectionWithPrefix attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for excludeCollectionWithPrefixthis objectpublic final ImmutableMongoDumpConfig withNumberOfParallelCollections(int value)
numberOfParallelCollections attribute.value - The value for numberOfParallelCollectionsthis objectpublic final ImmutableMongoDumpConfig withNumberOfParallelCollections(OptionalInt optional)
numberOfParallelCollections attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for numberOfParallelCollectionsthis objectpublic final ImmutableMongoDumpConfig 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 ImmutableMongoDumpConfig 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)
ImmutableMongoDumpConfig that have equal attribute values.public int hashCode()
stopTimeoutInMillis, version, timeout, net, cmdOptions, password, userName, isVerbose, databaseName, collectionName, query, queryFile, readPreference, isForceTableScan, archive, isDumpDbUsersAndRoles, isGzip, isRepair, out, isOplog, excludeCollection, excludeCollectionWithPrefix, numberOfParallelCollections, pidFile, supportConfig.public String toString()
MongoDumpConfig with attribute values.public static ImmutableMongoDumpConfig copyOf(MongoDumpConfig instance)
MongoDumpConfig 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 ImmutableMongoDumpConfig.Builder builder()
ImmutableMongoDumpConfig.
ImmutableMongoDumpConfig.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
.isVerbose(boolean) // optional isVerbose
.databaseName(String) // optional databaseName
.collectionName(String) // optional collectionName
.query(String) // optional query
.queryFile(String) // optional queryFile
.readPreference(String) // optional readPreference
.isForceTableScan(boolean) // optional isForceTableScan
.archive(String) // optional archive
.isDumpDbUsersAndRoles(boolean) // optional isDumpDbUsersAndRoles
.isGzip(boolean) // optional isGzip
.isRepair(boolean) // optional isRepair
.out(String) // optional out
.isOplog(boolean) // optional isOplog
.excludeCollection(String) // optional excludeCollection
.excludeCollectionWithPrefix(String) // optional excludeCollectionWithPrefix
.numberOfParallelCollections(int) // optional numberOfParallelCollections
.pidFile(String) // optional pidFile
.supportConfig(de.flapdoodle.embed.process.config.SupportConfig) // optional supportConfig
.build();
builder in interface MongoDumpConfigCopyright © 2022. All rights reserved.