public final class ImmutableMongoRestoreArguments extends MongoRestoreArguments
MongoRestoreArguments.
Use the builder to create immutable instances:
ImmutableMongoRestoreArguments.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableMongoRestoreArguments.Builder
Builds instances of type
ImmutableMongoRestoreArguments. |
| Modifier and Type | Method and Description |
|---|---|
Optional<String> |
archive() |
static ImmutableMongoRestoreArguments.Builder |
builder()
Creates a builder for
ImmutableMongoRestoreArguments. |
boolean |
bypassDocumentValidation() |
Optional<String> |
collectionName() |
static ImmutableMongoRestoreArguments |
copyOf(MongoRestoreArguments instance)
Creates an immutable copy of a
MongoRestoreArguments value. |
Optional<String> |
databaseName() |
Optional<String> |
dir() |
boolean |
dropCollection() |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableMongoRestoreArguments that have equal attribute values. |
boolean |
gzip() |
int |
hashCode()
Computes a hash code from attributes:
verbose, databaseName, collectionName, oplogLimit, archive, dir, numberOfParallelCollections, numberOfInsertionWorkersPerCollection, writeConcern, objectCheck, oplogReplay, restoreDbUsersAndRoles, gzip, dropCollection, noIndexRestore, noOptionsRestore, keepIndexVersion, maintainInsertionOrder, stopOnError, bypassDocumentValidation. |
boolean |
keepIndexVersion() |
boolean |
maintainInsertionOrder() |
boolean |
noIndexRestore() |
boolean |
noOptionsRestore() |
OptionalInt |
numberOfInsertionWorkersPerCollection() |
OptionalInt |
numberOfParallelCollections() |
boolean |
objectCheck() |
OptionalLong |
oplogLimit() |
boolean |
oplogReplay() |
boolean |
restoreDbUsersAndRoles() |
boolean |
stopOnError() |
String |
toString()
Prints the immutable value
MongoRestoreArguments with attribute values. |
boolean |
verbose() |
ImmutableMongoRestoreArguments |
withArchive(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
archive attribute. |
ImmutableMongoRestoreArguments |
withArchive(String value)
Copy the current immutable object by setting a present value for the optional
archive attribute. |
ImmutableMongoRestoreArguments |
withBypassDocumentValidation(boolean value)
Copy the current immutable object by setting a value for the
bypassDocumentValidation attribute. |
ImmutableMongoRestoreArguments |
withCollectionName(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
collectionName attribute. |
ImmutableMongoRestoreArguments |
withCollectionName(String value)
Copy the current immutable object by setting a present value for the optional
collectionName attribute. |
ImmutableMongoRestoreArguments |
withDatabaseName(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
databaseName attribute. |
ImmutableMongoRestoreArguments |
withDatabaseName(String value)
Copy the current immutable object by setting a present value for the optional
databaseName attribute. |
ImmutableMongoRestoreArguments |
withDir(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
dir attribute. |
ImmutableMongoRestoreArguments |
withDir(String value)
Copy the current immutable object by setting a present value for the optional
dir attribute. |
ImmutableMongoRestoreArguments |
withDropCollection(boolean value)
Copy the current immutable object by setting a value for the
dropCollection attribute. |
ImmutableMongoRestoreArguments |
withGzip(boolean value)
Copy the current immutable object by setting a value for the
gzip attribute. |
ImmutableMongoRestoreArguments |
withKeepIndexVersion(boolean value)
Copy the current immutable object by setting a value for the
keepIndexVersion attribute. |
ImmutableMongoRestoreArguments |
withMaintainInsertionOrder(boolean value)
Copy the current immutable object by setting a value for the
maintainInsertionOrder attribute. |
ImmutableMongoRestoreArguments |
withNoIndexRestore(boolean value)
Copy the current immutable object by setting a value for the
noIndexRestore attribute. |
ImmutableMongoRestoreArguments |
withNoOptionsRestore(boolean value)
Copy the current immutable object by setting a value for the
noOptionsRestore attribute. |
ImmutableMongoRestoreArguments |
withNumberOfInsertionWorkersPerCollection(int value)
Copy the current immutable object by setting a present value for the optional
numberOfInsertionWorkersPerCollection attribute. |
ImmutableMongoRestoreArguments |
withNumberOfInsertionWorkersPerCollection(OptionalInt optional)
Copy the current immutable object by setting an optional value for the
numberOfInsertionWorkersPerCollection attribute. |
ImmutableMongoRestoreArguments |
withNumberOfParallelCollections(int value)
Copy the current immutable object by setting a present value for the optional
numberOfParallelCollections attribute. |
ImmutableMongoRestoreArguments |
withNumberOfParallelCollections(OptionalInt optional)
Copy the current immutable object by setting an optional value for the
numberOfParallelCollections attribute. |
ImmutableMongoRestoreArguments |
withObjectCheck(boolean value)
Copy the current immutable object by setting a value for the
objectCheck attribute. |
ImmutableMongoRestoreArguments |
withOplogLimit(long value)
Copy the current immutable object by setting a present value for the optional
oplogLimit attribute. |
ImmutableMongoRestoreArguments |
withOplogLimit(OptionalLong optional)
Copy the current immutable object by setting an optional value for the
oplogLimit attribute. |
ImmutableMongoRestoreArguments |
withOplogReplay(boolean value)
Copy the current immutable object by setting a value for the
oplogReplay attribute. |
ImmutableMongoRestoreArguments |
withRestoreDbUsersAndRoles(boolean value)
Copy the current immutable object by setting a value for the
restoreDbUsersAndRoles attribute. |
ImmutableMongoRestoreArguments |
withStopOnError(boolean value)
Copy the current immutable object by setting a value for the
stopOnError attribute. |
ImmutableMongoRestoreArguments |
withVerbose(boolean value)
Copy the current immutable object by setting a value for the
verbose attribute. |
ImmutableMongoRestoreArguments |
withWriteConcern(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
writeConcern attribute. |
ImmutableMongoRestoreArguments |
withWriteConcern(String value)
Copy the current immutable object by setting a present value for the optional
writeConcern attribute. |
Optional<String> |
writeConcern() |
asArguments, defaultspublic boolean verbose()
verbose in class MongoRestoreArgumentsverbose attributepublic Optional<String> databaseName()
databaseName in class MongoRestoreArgumentsdatabaseName attributepublic Optional<String> collectionName()
collectionName in class MongoRestoreArgumentscollectionName attributepublic OptionalLong oplogLimit()
oplogLimit in class MongoRestoreArgumentsoplogLimit attributepublic Optional<String> archive()
archive in class MongoRestoreArgumentsarchive attributepublic Optional<String> dir()
dir in class MongoRestoreArgumentsdir attributepublic OptionalInt numberOfParallelCollections()
numberOfParallelCollections in class MongoRestoreArgumentsnumberOfParallelCollections attributepublic OptionalInt numberOfInsertionWorkersPerCollection()
numberOfInsertionWorkersPerCollection in class MongoRestoreArgumentsnumberOfInsertionWorkersPerCollection attributepublic Optional<String> writeConcern()
writeConcern in class MongoRestoreArgumentswriteConcern attributepublic boolean objectCheck()
objectCheck in class MongoRestoreArgumentsobjectCheck attributepublic boolean oplogReplay()
oplogReplay in class MongoRestoreArgumentsoplogReplay attributepublic boolean restoreDbUsersAndRoles()
restoreDbUsersAndRoles in class MongoRestoreArgumentsrestoreDbUsersAndRoles attributepublic boolean gzip()
gzip in class MongoRestoreArgumentsgzip attributepublic boolean dropCollection()
dropCollection in class MongoRestoreArgumentsdropCollection attributepublic boolean noIndexRestore()
noIndexRestore in class MongoRestoreArgumentsnoIndexRestore attributepublic boolean noOptionsRestore()
noOptionsRestore in class MongoRestoreArgumentsnoOptionsRestore attributepublic boolean keepIndexVersion()
keepIndexVersion in class MongoRestoreArgumentskeepIndexVersion attributepublic boolean maintainInsertionOrder()
maintainInsertionOrder in class MongoRestoreArgumentsmaintainInsertionOrder attributepublic boolean stopOnError()
stopOnError in class MongoRestoreArgumentsstopOnError attributepublic boolean bypassDocumentValidation()
bypassDocumentValidation in class MongoRestoreArgumentsbypassDocumentValidation attributepublic final ImmutableMongoRestoreArguments withVerbose(boolean value)
verbose attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for verbosethis objectpublic final ImmutableMongoRestoreArguments withDatabaseName(String value)
databaseName attribute.value - The value for databaseNamethis objectpublic final ImmutableMongoRestoreArguments 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 ImmutableMongoRestoreArguments withCollectionName(String value)
collectionName attribute.value - The value for collectionNamethis objectpublic final ImmutableMongoRestoreArguments 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 ImmutableMongoRestoreArguments withOplogLimit(long value)
oplogLimit attribute.value - The value for oplogLimitthis objectpublic final ImmutableMongoRestoreArguments 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 ImmutableMongoRestoreArguments withArchive(String value)
archive attribute.value - The value for archivethis objectpublic final ImmutableMongoRestoreArguments 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 ImmutableMongoRestoreArguments withDir(String value)
dir attribute.value - The value for dirthis objectpublic final ImmutableMongoRestoreArguments 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 ImmutableMongoRestoreArguments withNumberOfParallelCollections(int value)
numberOfParallelCollections attribute.value - The value for numberOfParallelCollectionsthis objectpublic final ImmutableMongoRestoreArguments 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 ImmutableMongoRestoreArguments withNumberOfInsertionWorkersPerCollection(int value)
numberOfInsertionWorkersPerCollection attribute.value - The value for numberOfInsertionWorkersPerCollectionthis objectpublic final ImmutableMongoRestoreArguments 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 ImmutableMongoRestoreArguments withWriteConcern(String value)
writeConcern attribute.value - The value for writeConcernthis objectpublic final ImmutableMongoRestoreArguments 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 ImmutableMongoRestoreArguments withObjectCheck(boolean value)
objectCheck attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for objectCheckthis objectpublic final ImmutableMongoRestoreArguments withOplogReplay(boolean value)
oplogReplay attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for oplogReplaythis objectpublic final ImmutableMongoRestoreArguments withRestoreDbUsersAndRoles(boolean value)
restoreDbUsersAndRoles attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for restoreDbUsersAndRolesthis objectpublic final ImmutableMongoRestoreArguments withGzip(boolean value)
gzip attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for gzipthis objectpublic final ImmutableMongoRestoreArguments withDropCollection(boolean value)
dropCollection attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for dropCollectionthis objectpublic final ImmutableMongoRestoreArguments withNoIndexRestore(boolean value)
noIndexRestore attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for noIndexRestorethis objectpublic final ImmutableMongoRestoreArguments withNoOptionsRestore(boolean value)
noOptionsRestore attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for noOptionsRestorethis objectpublic final ImmutableMongoRestoreArguments withKeepIndexVersion(boolean value)
keepIndexVersion attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for keepIndexVersionthis objectpublic final ImmutableMongoRestoreArguments withMaintainInsertionOrder(boolean value)
maintainInsertionOrder attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for maintainInsertionOrderthis objectpublic final ImmutableMongoRestoreArguments withStopOnError(boolean value)
stopOnError attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for stopOnErrorthis objectpublic final ImmutableMongoRestoreArguments withBypassDocumentValidation(boolean value)
bypassDocumentValidation attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for bypassDocumentValidationthis objectpublic boolean equals(Object another)
ImmutableMongoRestoreArguments that have equal attribute values.public int hashCode()
verbose, databaseName, collectionName, oplogLimit, archive, dir, numberOfParallelCollections, numberOfInsertionWorkersPerCollection, writeConcern, objectCheck, oplogReplay, restoreDbUsersAndRoles, gzip, dropCollection, noIndexRestore, noOptionsRestore, keepIndexVersion, maintainInsertionOrder, stopOnError, bypassDocumentValidation.public String toString()
MongoRestoreArguments with attribute values.public static ImmutableMongoRestoreArguments copyOf(MongoRestoreArguments instance)
MongoRestoreArguments 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 ImmutableMongoRestoreArguments.Builder builder()
ImmutableMongoRestoreArguments.
ImmutableMongoRestoreArguments.builder()
.verbose(boolean) // optional verbose
.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
.objectCheck(boolean) // optional objectCheck
.oplogReplay(boolean) // optional oplogReplay
.restoreDbUsersAndRoles(boolean) // optional restoreDbUsersAndRoles
.gzip(boolean) // optional gzip
.dropCollection(boolean) // optional dropCollection
.noIndexRestore(boolean) // optional noIndexRestore
.noOptionsRestore(boolean) // optional noOptionsRestore
.keepIndexVersion(boolean) // optional keepIndexVersion
.maintainInsertionOrder(boolean) // optional maintainInsertionOrder
.stopOnError(boolean) // optional stopOnError
.bypassDocumentValidation(boolean) // optional bypassDocumentValidation
.build();
Copyright © 2024. All rights reserved.