public final class ImmutableMongoDumpArguments extends MongoDumpArguments
MongoDumpArguments.
Use the builder to create immutable instances:
ImmutableMongoDumpArguments.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableMongoDumpArguments.Builder
Builds instances of type
ImmutableMongoDumpArguments. |
| Modifier and Type | Method and Description |
|---|---|
Optional<String> |
archive() |
static ImmutableMongoDumpArguments.Builder |
builder()
Creates a builder for
ImmutableMongoDumpArguments. |
Optional<String> |
collectionName() |
static ImmutableMongoDumpArguments |
copyOf(MongoDumpArguments instance)
Creates an immutable copy of a
MongoDumpArguments value. |
Optional<String> |
databaseName() |
Optional<String> |
dir() |
boolean |
dumpDbUsersAndRoles() |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableMongoDumpArguments that have equal attribute values. |
Optional<String> |
excludeCollection() |
Optional<String> |
excludeCollectionWithPrefix() |
boolean |
forceTableScan() |
boolean |
gzip() |
int |
hashCode()
Computes a hash code from attributes:
verbose, databaseName, collectionName, query, queryFile, readPreference, forceTableScan, archive, dumpDbUsersAndRoles, gzip, repair, dir, isOplog, excludeCollection, excludeCollectionWithPrefix, numberOfParallelCollections. |
boolean |
isOplog() |
OptionalInt |
numberOfParallelCollections() |
Optional<String> |
query() |
Optional<String> |
queryFile() |
Optional<String> |
readPreference() |
boolean |
repair() |
String |
toString()
Prints the immutable value
MongoDumpArguments with attribute values. |
boolean |
verbose() |
ImmutableMongoDumpArguments |
withArchive(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
archive attribute. |
ImmutableMongoDumpArguments |
withArchive(String value)
Copy the current immutable object by setting a present value for the optional
archive attribute. |
ImmutableMongoDumpArguments |
withCollectionName(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
collectionName attribute. |
ImmutableMongoDumpArguments |
withCollectionName(String value)
Copy the current immutable object by setting a present value for the optional
collectionName attribute. |
ImmutableMongoDumpArguments |
withDatabaseName(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
databaseName attribute. |
ImmutableMongoDumpArguments |
withDatabaseName(String value)
Copy the current immutable object by setting a present value for the optional
databaseName attribute. |
ImmutableMongoDumpArguments |
withDir(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
dir attribute. |
ImmutableMongoDumpArguments |
withDir(String value)
Copy the current immutable object by setting a present value for the optional
dir attribute. |
ImmutableMongoDumpArguments |
withDumpDbUsersAndRoles(boolean value)
Copy the current immutable object by setting a value for the
dumpDbUsersAndRoles attribute. |
ImmutableMongoDumpArguments |
withExcludeCollection(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
excludeCollection attribute. |
ImmutableMongoDumpArguments |
withExcludeCollection(String value)
Copy the current immutable object by setting a present value for the optional
excludeCollection attribute. |
ImmutableMongoDumpArguments |
withExcludeCollectionWithPrefix(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
excludeCollectionWithPrefix attribute. |
ImmutableMongoDumpArguments |
withExcludeCollectionWithPrefix(String value)
Copy the current immutable object by setting a present value for the optional
excludeCollectionWithPrefix attribute. |
ImmutableMongoDumpArguments |
withForceTableScan(boolean value)
Copy the current immutable object by setting a value for the
forceTableScan attribute. |
ImmutableMongoDumpArguments |
withGzip(boolean value)
Copy the current immutable object by setting a value for the
gzip attribute. |
ImmutableMongoDumpArguments |
withIsOplog(boolean value)
Copy the current immutable object by setting a value for the
isOplog attribute. |
ImmutableMongoDumpArguments |
withNumberOfParallelCollections(int value)
Copy the current immutable object by setting a present value for the optional
numberOfParallelCollections attribute. |
ImmutableMongoDumpArguments |
withNumberOfParallelCollections(OptionalInt optional)
Copy the current immutable object by setting an optional value for the
numberOfParallelCollections attribute. |
ImmutableMongoDumpArguments |
withQuery(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
query attribute. |
ImmutableMongoDumpArguments |
withQuery(String value)
Copy the current immutable object by setting a present value for the optional
query attribute. |
ImmutableMongoDumpArguments |
withQueryFile(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
queryFile attribute. |
ImmutableMongoDumpArguments |
withQueryFile(String value)
Copy the current immutable object by setting a present value for the optional
queryFile attribute. |
ImmutableMongoDumpArguments |
withReadPreference(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
readPreference attribute. |
ImmutableMongoDumpArguments |
withReadPreference(String value)
Copy the current immutable object by setting a present value for the optional
readPreference attribute. |
ImmutableMongoDumpArguments |
withRepair(boolean value)
Copy the current immutable object by setting a value for the
repair attribute. |
ImmutableMongoDumpArguments |
withVerbose(boolean value)
Copy the current immutable object by setting a value for the
verbose attribute. |
asArguments, defaultspublic boolean verbose()
verbose in class MongoDumpArgumentsverbose attributepublic Optional<String> databaseName()
databaseName in class MongoDumpArgumentsdatabaseName attributepublic Optional<String> collectionName()
collectionName in class MongoDumpArgumentscollectionName attributepublic Optional<String> query()
query in class MongoDumpArgumentsquery attributepublic Optional<String> queryFile()
queryFile in class MongoDumpArgumentsqueryFile attributepublic Optional<String> readPreference()
readPreference in class MongoDumpArgumentsreadPreference attributepublic boolean forceTableScan()
forceTableScan in class MongoDumpArgumentsforceTableScan attributepublic Optional<String> archive()
archive in class MongoDumpArgumentsarchive attributepublic boolean dumpDbUsersAndRoles()
dumpDbUsersAndRoles in class MongoDumpArgumentsdumpDbUsersAndRoles attributepublic boolean gzip()
gzip in class MongoDumpArgumentsgzip attributepublic boolean repair()
repair in class MongoDumpArgumentsrepair attributepublic Optional<String> dir()
dir in class MongoDumpArgumentsdir attributepublic boolean isOplog()
isOplog in class MongoDumpArgumentsisOplog attributepublic Optional<String> excludeCollection()
excludeCollection in class MongoDumpArgumentsexcludeCollection attributepublic Optional<String> excludeCollectionWithPrefix()
excludeCollectionWithPrefix in class MongoDumpArgumentsexcludeCollectionWithPrefix attributepublic OptionalInt numberOfParallelCollections()
numberOfParallelCollections in class MongoDumpArgumentsnumberOfParallelCollections attributepublic final ImmutableMongoDumpArguments 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 ImmutableMongoDumpArguments withDatabaseName(String value)
databaseName attribute.value - The value for databaseNamethis objectpublic final ImmutableMongoDumpArguments 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 ImmutableMongoDumpArguments withCollectionName(String value)
collectionName attribute.value - The value for collectionNamethis objectpublic final ImmutableMongoDumpArguments 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 ImmutableMongoDumpArguments withQuery(String value)
query attribute.value - The value for querythis objectpublic final ImmutableMongoDumpArguments 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 ImmutableMongoDumpArguments withQueryFile(String value)
queryFile attribute.value - The value for queryFilethis objectpublic final ImmutableMongoDumpArguments 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 ImmutableMongoDumpArguments withReadPreference(String value)
readPreference attribute.value - The value for readPreferencethis objectpublic final ImmutableMongoDumpArguments 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 ImmutableMongoDumpArguments withForceTableScan(boolean value)
forceTableScan attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for forceTableScanthis objectpublic final ImmutableMongoDumpArguments withArchive(String value)
archive attribute.value - The value for archivethis objectpublic final ImmutableMongoDumpArguments 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 ImmutableMongoDumpArguments withDumpDbUsersAndRoles(boolean value)
dumpDbUsersAndRoles attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for dumpDbUsersAndRolesthis objectpublic final ImmutableMongoDumpArguments 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 ImmutableMongoDumpArguments withRepair(boolean value)
repair attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for repairthis objectpublic final ImmutableMongoDumpArguments withDir(String value)
dir attribute.value - The value for dirthis objectpublic final ImmutableMongoDumpArguments 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 ImmutableMongoDumpArguments 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 ImmutableMongoDumpArguments withExcludeCollection(String value)
excludeCollection attribute.value - The value for excludeCollectionthis objectpublic final ImmutableMongoDumpArguments 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 ImmutableMongoDumpArguments withExcludeCollectionWithPrefix(String value)
excludeCollectionWithPrefix attribute.value - The value for excludeCollectionWithPrefixthis objectpublic final ImmutableMongoDumpArguments 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 ImmutableMongoDumpArguments withNumberOfParallelCollections(int value)
numberOfParallelCollections attribute.value - The value for numberOfParallelCollectionsthis objectpublic final ImmutableMongoDumpArguments 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 boolean equals(Object another)
ImmutableMongoDumpArguments that have equal attribute values.public int hashCode()
verbose, databaseName, collectionName, query, queryFile, readPreference, forceTableScan, archive, dumpDbUsersAndRoles, gzip, repair, dir, isOplog, excludeCollection, excludeCollectionWithPrefix, numberOfParallelCollections.public String toString()
MongoDumpArguments with attribute values.public static ImmutableMongoDumpArguments copyOf(MongoDumpArguments instance)
MongoDumpArguments 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 ImmutableMongoDumpArguments.Builder builder()
ImmutableMongoDumpArguments.
ImmutableMongoDumpArguments.builder()
.verbose(boolean) // optional verbose
.databaseName(String) // optional databaseName
.collectionName(String) // optional collectionName
.query(String) // optional query
.queryFile(String) // optional queryFile
.readPreference(String) // optional readPreference
.forceTableScan(boolean) // optional forceTableScan
.archive(String) // optional archive
.dumpDbUsersAndRoles(boolean) // optional dumpDbUsersAndRoles
.gzip(boolean) // optional gzip
.repair(boolean) // optional repair
.dir(String) // optional dir
.isOplog(boolean) // optional isOplog
.excludeCollection(String) // optional excludeCollection
.excludeCollectionWithPrefix(String) // optional excludeCollectionWithPrefix
.numberOfParallelCollections(int) // optional numberOfParallelCollections
.build();
Copyright © 2023. All rights reserved.