public final class ImmutableMongoRestoreConfig extends Object implements MongoRestoreConfig
MongoRestoreConfig.
Use the builder to create immutable instances:
ImmutableMongoRestoreConfig.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableMongoRestoreConfig.Builder
Builds instances of type
ImmutableMongoRestoreConfig. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableMongoRestoreConfig.Builder |
builder()
Creates a builder for
ImmutableMongoRestoreConfig. |
MongoCmdOptions |
cmdOptions() |
static ImmutableMongoRestoreConfig |
copyOf(MongoRestoreConfig instance)
Creates an immutable copy of a
MongoRestoreConfig value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableMongoRestoreConfig that have equal attribute values. |
Optional<String> |
getArchive() |
Optional<String> |
getCollectionName() |
Optional<String> |
getDatabaseName() |
Optional<String> |
getDir() |
OptionalInt |
getNumberOfInsertionWorkersPerCollection() |
OptionalInt |
getNumberOfParallelCollections() |
OptionalLong |
getOplogLimit() |
Optional<String> |
getWriteConcern() |
int |
hashCode()
Computes a hash code from attributes:
stopTimeoutInMillis, version, timeout, net, cmdOptions, password, userName, isVerbose, databaseName, collectionName, oplogLimit, archive, dir, numberOfParallelCollections, numberOfInsertionWorkersPerCollection, writeConcern, isObjectCheck, isOplogReplay, isRestoreDbUsersAndRoles, isGzip, isDropCollection, isNoIndexRestore, isNoOptionsRestore, isKeepIndexVersion, isMaintainInsertionOrder, isStopOnError, isBypassDocumentValidation, pidFile, supportConfig. |
boolean |
isBypassDocumentValidation() |
boolean |
isDropCollection() |
boolean |
isGzip() |
boolean |
isKeepIndexVersion() |
boolean |
isMaintainInsertionOrder() |
boolean |
isNoIndexRestore() |
boolean |
isNoOptionsRestore() |
boolean |
isObjectCheck() |
boolean |
isOplogReplay() |
boolean |
isRestoreDbUsersAndRoles() |
boolean |
isStopOnError() |
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
MongoRestoreConfig with attribute values. |
String |
userName() |
IFeatureAwareVersion |
version() |
ImmutableMongoRestoreConfig |
withArchive(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
archive attribute. |
ImmutableMongoRestoreConfig |
withArchive(String value)
Copy the current immutable object by setting a present value for the optional
archive attribute. |
ImmutableMongoRestoreConfig |
withCmdOptions(MongoCmdOptions value)
Copy the current immutable object by setting a value for the
cmdOptions attribute. |
ImmutableMongoRestoreConfig |
withCollectionName(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
collectionName attribute. |
ImmutableMongoRestoreConfig |
withCollectionName(String value)
Copy the current immutable object by setting a present value for the optional
collectionName attribute. |
ImmutableMongoRestoreConfig |
withDatabaseName(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
databaseName attribute. |
ImmutableMongoRestoreConfig |
withDatabaseName(String value)
Copy the current immutable object by setting a present value for the optional
databaseName attribute. |
ImmutableMongoRestoreConfig |
withDir(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
dir attribute. |
ImmutableMongoRestoreConfig |
withDir(String value)
Copy the current immutable object by setting a present value for the optional
dir attribute. |
ImmutableMongoRestoreConfig |
withIsBypassDocumentValidation(boolean value)
Copy the current immutable object by setting a value for the
isBypassDocumentValidation attribute. |
ImmutableMongoRestoreConfig |
withIsDropCollection(boolean value)
Copy the current immutable object by setting a value for the
isDropCollection attribute. |
ImmutableMongoRestoreConfig |
withIsGzip(boolean value)
Copy the current immutable object by setting a value for the
isGzip attribute. |
ImmutableMongoRestoreConfig |
withIsKeepIndexVersion(boolean value)
Copy the current immutable object by setting a value for the
isKeepIndexVersion attribute. |
ImmutableMongoRestoreConfig |
withIsMaintainInsertionOrder(boolean value)
Copy the current immutable object by setting a value for the
isMaintainInsertionOrder attribute. |
ImmutableMongoRestoreConfig |
withIsNoIndexRestore(boolean value)
Copy the current immutable object by setting a value for the
isNoIndexRestore attribute. |
ImmutableMongoRestoreConfig |
withIsNoOptionsRestore(boolean value)
Copy the current immutable object by setting a value for the
isNoOptionsRestore attribute. |
ImmutableMongoRestoreConfig |
withIsObjectCheck(boolean value)
Copy the current immutable object by setting a value for the
isObjectCheck attribute. |
ImmutableMongoRestoreConfig |
withIsOplogReplay(boolean value)
Copy the current immutable object by setting a value for the
isOplogReplay attribute. |
ImmutableMongoRestoreConfig |
withIsRestoreDbUsersAndRoles(boolean value)
Copy the current immutable object by setting a value for the
isRestoreDbUsersAndRoles attribute. |
ImmutableMongoRestoreConfig |
withIsStopOnError(boolean value)
Copy the current immutable object by setting a value for the
isStopOnError attribute. |
ImmutableMongoRestoreConfig |
withIsVerbose(boolean value)
Copy the current immutable object by setting a value for the
isVerbose attribute. |
ImmutableMongoRestoreConfig |
withNet(Net value)
Copy the current immutable object by setting a value for the
net attribute. |
ImmutableMongoRestoreConfig |
withNumberOfInsertionWorkersPerCollection(int value)
Copy the current immutable object by setting a present value for the optional
numberOfInsertionWorkersPerCollection attribute. |
ImmutableMongoRestoreConfig |
withNumberOfInsertionWorkersPerCollection(OptionalInt optional)
Copy the current immutable object by setting an optional value for the
numberOfInsertionWorkersPerCollection attribute. |
ImmutableMongoRestoreConfig |
withNumberOfParallelCollections(int value)
Copy the current immutable object by setting a present value for the optional
numberOfParallelCollections attribute. |
ImmutableMongoRestoreConfig |
withNumberOfParallelCollections(OptionalInt optional)
Copy the current immutable object by setting an optional value for the
numberOfParallelCollections attribute. |
ImmutableMongoRestoreConfig |
withOplogLimit(long value)
Copy the current immutable object by setting a present value for the optional
oplogLimit attribute. |
ImmutableMongoRestoreConfig |
withOplogLimit(OptionalLong optional)
Copy the current immutable object by setting an optional value for the
oplogLimit attribute. |
ImmutableMongoRestoreConfig |
withPassword(String value)
Copy the current immutable object by setting a value for the
password attribute. |
ImmutableMongoRestoreConfig |
withPidFile(String value)
Copy the current immutable object by setting a value for the
pidFile attribute. |
ImmutableMongoRestoreConfig |
withStopTimeoutInMillis(long value)
Copy the current immutable object by setting a present value for the optional
stopTimeoutInMillis attribute. |
ImmutableMongoRestoreConfig |
withStopTimeoutInMillis(OptionalLong optional)
Copy the current immutable object by setting an optional value for the
stopTimeoutInMillis attribute. |
ImmutableMongoRestoreConfig |
withSupportConfig(de.flapdoodle.embed.process.config.SupportConfig value)
Copy the current immutable object by setting a value for the
supportConfig attribute. |
ImmutableMongoRestoreConfig |
withTimeout(Timeout value)
Copy the current immutable object by setting a value for the
timeout attribute. |
ImmutableMongoRestoreConfig |
withUserName(String value)
Copy the current immutable object by setting a value for the
userName attribute. |
ImmutableMongoRestoreConfig |
withVersion(IFeatureAwareVersion value)
Copy the current immutable object by setting a value for the
version attribute. |
ImmutableMongoRestoreConfig |
withWriteConcern(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
writeConcern attribute. |
ImmutableMongoRestoreConfig |
withWriteConcern(String value)
Copy the current immutable object by setting a present value for the optional
writeConcern 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 MongoRestoreConfigisVerbose attributepublic Optional<String> getDatabaseName()
getDatabaseName in interface MongoRestoreConfigdatabaseName attributepublic Optional<String> getCollectionName()
getCollectionName in interface MongoRestoreConfigcollectionName attributepublic OptionalLong getOplogLimit()
getOplogLimit in interface MongoRestoreConfigoplogLimit attributepublic Optional<String> getArchive()
getArchive in interface MongoRestoreConfigarchive attributepublic Optional<String> getDir()
getDir in interface MongoRestoreConfigdir attributepublic OptionalInt getNumberOfParallelCollections()
getNumberOfParallelCollections in interface MongoRestoreConfignumberOfParallelCollections attributepublic OptionalInt getNumberOfInsertionWorkersPerCollection()
getNumberOfInsertionWorkersPerCollection in interface MongoRestoreConfignumberOfInsertionWorkersPerCollection attributepublic Optional<String> getWriteConcern()
getWriteConcern in interface MongoRestoreConfigwriteConcern attributepublic boolean isObjectCheck()
isObjectCheck in interface MongoRestoreConfigisObjectCheck attributepublic boolean isOplogReplay()
isOplogReplay in interface MongoRestoreConfigisOplogReplay attributepublic boolean isRestoreDbUsersAndRoles()
isRestoreDbUsersAndRoles in interface MongoRestoreConfigisRestoreDbUsersAndRoles attributepublic boolean isGzip()
isGzip in interface MongoRestoreConfigisGzip attributepublic boolean isDropCollection()
isDropCollection in interface MongoRestoreConfigisDropCollection attributepublic boolean isNoIndexRestore()
isNoIndexRestore in interface MongoRestoreConfigisNoIndexRestore attributepublic boolean isNoOptionsRestore()
isNoOptionsRestore in interface MongoRestoreConfigisNoOptionsRestore attributepublic boolean isKeepIndexVersion()
isKeepIndexVersion in interface MongoRestoreConfigisKeepIndexVersion attributepublic boolean isMaintainInsertionOrder()
isMaintainInsertionOrder in interface MongoRestoreConfigisMaintainInsertionOrder attributepublic boolean isStopOnError()
isStopOnError in interface MongoRestoreConfigisStopOnError attributepublic boolean isBypassDocumentValidation()
isBypassDocumentValidation in interface MongoRestoreConfigisBypassDocumentValidation attributepublic String pidFile()
pidFile in interface MongoCommonConfigpidFile in interface MongoRestoreConfigpidFile attributepublic de.flapdoodle.embed.process.config.SupportConfig supportConfig()
supportConfig in interface MongoRestoreConfigsupportConfig in interface de.flapdoodle.embed.process.config.ExecutableProcessConfigsupportConfig attributepublic final ImmutableMongoRestoreConfig withStopTimeoutInMillis(long value)
stopTimeoutInMillis attribute.value - The value for stopTimeoutInMillisthis objectpublic final ImmutableMongoRestoreConfig 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 ImmutableMongoRestoreConfig 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 ImmutableMongoRestoreConfig 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 ImmutableMongoRestoreConfig 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 ImmutableMongoRestoreConfig 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 ImmutableMongoRestoreConfig 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 ImmutableMongoRestoreConfig 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 ImmutableMongoRestoreConfig 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 ImmutableMongoRestoreConfig withDatabaseName(String value)
databaseName attribute.value - The value for databaseNamethis objectpublic final ImmutableMongoRestoreConfig 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 ImmutableMongoRestoreConfig withCollectionName(String value)
collectionName attribute.value - The value for collectionNamethis objectpublic final ImmutableMongoRestoreConfig 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 ImmutableMongoRestoreConfig withOplogLimit(long value)
oplogLimit attribute.value - The value for oplogLimitthis objectpublic final ImmutableMongoRestoreConfig withOplogLimit(OptionalLong optional)
oplogLimit attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for oplogLimitthis objectpublic final ImmutableMongoRestoreConfig withArchive(String value)
archive attribute.value - The value for archivethis objectpublic final ImmutableMongoRestoreConfig 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 ImmutableMongoRestoreConfig withDir(String value)
dir attribute.value - The value for dirthis objectpublic final ImmutableMongoRestoreConfig withDir(Optional<String> optional)
dir attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for dirthis objectpublic final ImmutableMongoRestoreConfig withNumberOfParallelCollections(int value)
numberOfParallelCollections attribute.value - The value for numberOfParallelCollectionsthis objectpublic final ImmutableMongoRestoreConfig 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 ImmutableMongoRestoreConfig withNumberOfInsertionWorkersPerCollection(int value)
numberOfInsertionWorkersPerCollection attribute.value - The value for numberOfInsertionWorkersPerCollectionthis objectpublic final ImmutableMongoRestoreConfig withNumberOfInsertionWorkersPerCollection(OptionalInt optional)
numberOfInsertionWorkersPerCollection attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for numberOfInsertionWorkersPerCollectionthis objectpublic final ImmutableMongoRestoreConfig withWriteConcern(String value)
writeConcern attribute.value - The value for writeConcernthis objectpublic final ImmutableMongoRestoreConfig withWriteConcern(Optional<String> optional)
writeConcern attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for writeConcernthis objectpublic final ImmutableMongoRestoreConfig withIsObjectCheck(boolean value)
isObjectCheck attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for isObjectCheckthis objectpublic final ImmutableMongoRestoreConfig withIsOplogReplay(boolean value)
isOplogReplay attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for isOplogReplaythis objectpublic final ImmutableMongoRestoreConfig withIsRestoreDbUsersAndRoles(boolean value)
isRestoreDbUsersAndRoles attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for isRestoreDbUsersAndRolesthis objectpublic final ImmutableMongoRestoreConfig 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 ImmutableMongoRestoreConfig withIsDropCollection(boolean value)
isDropCollection attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for isDropCollectionthis objectpublic final ImmutableMongoRestoreConfig withIsNoIndexRestore(boolean value)
isNoIndexRestore attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for isNoIndexRestorethis objectpublic final ImmutableMongoRestoreConfig withIsNoOptionsRestore(boolean value)
isNoOptionsRestore attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for isNoOptionsRestorethis objectpublic final ImmutableMongoRestoreConfig withIsKeepIndexVersion(boolean value)
isKeepIndexVersion attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for isKeepIndexVersionthis objectpublic final ImmutableMongoRestoreConfig withIsMaintainInsertionOrder(boolean value)
isMaintainInsertionOrder attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for isMaintainInsertionOrderthis objectpublic final ImmutableMongoRestoreConfig withIsStopOnError(boolean value)
isStopOnError attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for isStopOnErrorthis objectpublic final ImmutableMongoRestoreConfig withIsBypassDocumentValidation(boolean value)
isBypassDocumentValidation attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for isBypassDocumentValidationthis objectpublic final ImmutableMongoRestoreConfig 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 ImmutableMongoRestoreConfig 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)
ImmutableMongoRestoreConfig that have equal attribute values.public int hashCode()
stopTimeoutInMillis, version, timeout, net, cmdOptions, password, userName, isVerbose, databaseName, collectionName, oplogLimit, archive, dir, numberOfParallelCollections, numberOfInsertionWorkersPerCollection, writeConcern, isObjectCheck, isOplogReplay, isRestoreDbUsersAndRoles, isGzip, isDropCollection, isNoIndexRestore, isNoOptionsRestore, isKeepIndexVersion, isMaintainInsertionOrder, isStopOnError, isBypassDocumentValidation, pidFile, supportConfig.public String toString()
MongoRestoreConfig with attribute values.public static ImmutableMongoRestoreConfig copyOf(MongoRestoreConfig instance)
MongoRestoreConfig 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 ImmutableMongoRestoreConfig.Builder builder()
ImmutableMongoRestoreConfig.
ImmutableMongoRestoreConfig.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
.oplogLimit(long) // optional oplogLimit
.archive(String) // optional archive
.dir(String) // optional dir
.numberOfParallelCollections(int) // optional numberOfParallelCollections
.numberOfInsertionWorkersPerCollection(int) // optional numberOfInsertionWorkersPerCollection
.writeConcern(String) // optional writeConcern
.isObjectCheck(boolean) // optional isObjectCheck
.isOplogReplay(boolean) // optional isOplogReplay
.isRestoreDbUsersAndRoles(boolean) // optional isRestoreDbUsersAndRoles
.isGzip(boolean) // optional isGzip
.isDropCollection(boolean) // required isDropCollection
.isNoIndexRestore(boolean) // optional isNoIndexRestore
.isNoOptionsRestore(boolean) // optional isNoOptionsRestore
.isKeepIndexVersion(boolean) // optional isKeepIndexVersion
.isMaintainInsertionOrder(boolean) // optional isMaintainInsertionOrder
.isStopOnError(boolean) // optional isStopOnError
.isBypassDocumentValidation(boolean) // optional isBypassDocumentValidation
.pidFile(String) // optional pidFile
.supportConfig(de.flapdoodle.embed.process.config.SupportConfig) // optional supportConfig
.build();
builder in interface MongoRestoreConfigCopyright © 2022. All rights reserved.