public static final class ImmutableMongoDumpArguments.Builder extends Object
ImmutableMongoDumpArguments.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
| Modifier and Type | Method and Description |
|---|---|
ImmutableMongoDumpArguments.Builder |
archive(Optional<String> archive)
Initializes the optional value
archive to archive. |
ImmutableMongoDumpArguments.Builder |
archive(String archive)
Initializes the optional value
archive to archive. |
ImmutableMongoDumpArguments |
build()
Builds a new
ImmutableMongoDumpArguments. |
ImmutableMongoDumpArguments.Builder |
collectionName(Optional<String> collectionName)
Initializes the optional value
collectionName to collectionName. |
ImmutableMongoDumpArguments.Builder |
collectionName(String collectionName)
Initializes the optional value
collectionName to collectionName. |
ImmutableMongoDumpArguments.Builder |
databaseName(Optional<String> databaseName)
Initializes the optional value
databaseName to databaseName. |
ImmutableMongoDumpArguments.Builder |
databaseName(String databaseName)
Initializes the optional value
databaseName to databaseName. |
ImmutableMongoDumpArguments.Builder |
dir(Optional<String> dir)
Initializes the optional value
dir to dir. |
ImmutableMongoDumpArguments.Builder |
dir(String dir)
Initializes the optional value
dir to dir. |
ImmutableMongoDumpArguments.Builder |
dumpDbUsersAndRoles(boolean dumpDbUsersAndRoles)
Initializes the value for the
dumpDbUsersAndRoles attribute. |
ImmutableMongoDumpArguments.Builder |
excludeCollection(Optional<String> excludeCollection)
Initializes the optional value
excludeCollection to excludeCollection. |
ImmutableMongoDumpArguments.Builder |
excludeCollection(String excludeCollection)
Initializes the optional value
excludeCollection to excludeCollection. |
ImmutableMongoDumpArguments.Builder |
excludeCollectionWithPrefix(Optional<String> excludeCollectionWithPrefix)
Initializes the optional value
excludeCollectionWithPrefix to excludeCollectionWithPrefix. |
ImmutableMongoDumpArguments.Builder |
excludeCollectionWithPrefix(String excludeCollectionWithPrefix)
Initializes the optional value
excludeCollectionWithPrefix to excludeCollectionWithPrefix. |
ImmutableMongoDumpArguments.Builder |
forceTableScan(boolean forceTableScan)
Initializes the value for the
forceTableScan attribute. |
ImmutableMongoDumpArguments.Builder |
from(MongoDumpArguments instance)
Fill a builder with attribute values from the provided
MongoDumpArguments instance. |
ImmutableMongoDumpArguments.Builder |
gzip(boolean gzip)
Initializes the value for the
gzip attribute. |
ImmutableMongoDumpArguments.Builder |
isOplog(boolean isOplog)
Initializes the value for the
isOplog attribute. |
ImmutableMongoDumpArguments.Builder |
numberOfParallelCollections(int numberOfParallelCollections)
Initializes the optional value
numberOfParallelCollections to numberOfParallelCollections. |
ImmutableMongoDumpArguments.Builder |
numberOfParallelCollections(OptionalInt numberOfParallelCollections)
Initializes the optional value
numberOfParallelCollections to numberOfParallelCollections. |
ImmutableMongoDumpArguments.Builder |
query(Optional<String> query)
Initializes the optional value
query to query. |
ImmutableMongoDumpArguments.Builder |
query(String query)
Initializes the optional value
query to query. |
ImmutableMongoDumpArguments.Builder |
queryFile(Optional<String> queryFile)
Initializes the optional value
queryFile to queryFile. |
ImmutableMongoDumpArguments.Builder |
queryFile(String queryFile)
Initializes the optional value
queryFile to queryFile. |
ImmutableMongoDumpArguments.Builder |
readPreference(Optional<String> readPreference)
Initializes the optional value
readPreference to readPreference. |
ImmutableMongoDumpArguments.Builder |
readPreference(String readPreference)
Initializes the optional value
readPreference to readPreference. |
ImmutableMongoDumpArguments.Builder |
repair(boolean repair)
Initializes the value for the
repair attribute. |
ImmutableMongoDumpArguments.Builder |
verbose(boolean verbose)
Initializes the value for the
verbose attribute. |
public final ImmutableMongoDumpArguments.Builder from(MongoDumpArguments instance)
MongoDumpArguments instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ImmutableMongoDumpArguments.Builder verbose(boolean verbose)
verbose attribute.
If not set, this attribute will have a default value as returned by the initializer of verbose.
verbose - The value for verbosethis builder for use in a chained invocationpublic final ImmutableMongoDumpArguments.Builder databaseName(String databaseName)
databaseName to databaseName.databaseName - The value for databaseNamethis builder for chained invocationpublic final ImmutableMongoDumpArguments.Builder databaseName(Optional<String> databaseName)
databaseName to databaseName.databaseName - The value for databaseNamethis builder for use in a chained invocationpublic final ImmutableMongoDumpArguments.Builder collectionName(String collectionName)
collectionName to collectionName.collectionName - The value for collectionNamethis builder for chained invocationpublic final ImmutableMongoDumpArguments.Builder collectionName(Optional<String> collectionName)
collectionName to collectionName.collectionName - The value for collectionNamethis builder for use in a chained invocationpublic final ImmutableMongoDumpArguments.Builder query(String query)
query to query.query - The value for querythis builder for chained invocationpublic final ImmutableMongoDumpArguments.Builder query(Optional<String> query)
query to query.query - The value for querythis builder for use in a chained invocationpublic final ImmutableMongoDumpArguments.Builder queryFile(String queryFile)
queryFile to queryFile.queryFile - The value for queryFilethis builder for chained invocationpublic final ImmutableMongoDumpArguments.Builder queryFile(Optional<String> queryFile)
queryFile to queryFile.queryFile - The value for queryFilethis builder for use in a chained invocationpublic final ImmutableMongoDumpArguments.Builder readPreference(String readPreference)
readPreference to readPreference.readPreference - The value for readPreferencethis builder for chained invocationpublic final ImmutableMongoDumpArguments.Builder readPreference(Optional<String> readPreference)
readPreference to readPreference.readPreference - The value for readPreferencethis builder for use in a chained invocationpublic final ImmutableMongoDumpArguments.Builder forceTableScan(boolean forceTableScan)
forceTableScan attribute.
If not set, this attribute will have a default value as returned by the initializer of forceTableScan.
forceTableScan - The value for forceTableScanthis builder for use in a chained invocationpublic final ImmutableMongoDumpArguments.Builder archive(String archive)
archive to archive.archive - The value for archivethis builder for chained invocationpublic final ImmutableMongoDumpArguments.Builder archive(Optional<String> archive)
archive to archive.archive - The value for archivethis builder for use in a chained invocationpublic final ImmutableMongoDumpArguments.Builder dumpDbUsersAndRoles(boolean dumpDbUsersAndRoles)
dumpDbUsersAndRoles attribute.
If not set, this attribute will have a default value as returned by the initializer of dumpDbUsersAndRoles.
dumpDbUsersAndRoles - The value for dumpDbUsersAndRolesthis builder for use in a chained invocationpublic final ImmutableMongoDumpArguments.Builder gzip(boolean gzip)
gzip attribute.
If not set, this attribute will have a default value as returned by the initializer of gzip.
gzip - The value for gzipthis builder for use in a chained invocationpublic final ImmutableMongoDumpArguments.Builder repair(boolean repair)
repair attribute.
If not set, this attribute will have a default value as returned by the initializer of repair.
repair - The value for repairthis builder for use in a chained invocationpublic final ImmutableMongoDumpArguments.Builder dir(String dir)
dir to dir.dir - The value for dirthis builder for chained invocationpublic final ImmutableMongoDumpArguments.Builder dir(Optional<String> dir)
dir to dir.dir - The value for dirthis builder for use in a chained invocationpublic final ImmutableMongoDumpArguments.Builder isOplog(boolean isOplog)
isOplog attribute.
If not set, this attribute will have a default value as returned by the initializer of isOplog.
isOplog - The value for isOplogthis builder for use in a chained invocationpublic final ImmutableMongoDumpArguments.Builder excludeCollection(String excludeCollection)
excludeCollection to excludeCollection.excludeCollection - The value for excludeCollectionthis builder for chained invocationpublic final ImmutableMongoDumpArguments.Builder excludeCollection(Optional<String> excludeCollection)
excludeCollection to excludeCollection.excludeCollection - The value for excludeCollectionthis builder for use in a chained invocationpublic final ImmutableMongoDumpArguments.Builder excludeCollectionWithPrefix(String excludeCollectionWithPrefix)
excludeCollectionWithPrefix to excludeCollectionWithPrefix.excludeCollectionWithPrefix - The value for excludeCollectionWithPrefixthis builder for chained invocationpublic final ImmutableMongoDumpArguments.Builder excludeCollectionWithPrefix(Optional<String> excludeCollectionWithPrefix)
excludeCollectionWithPrefix to excludeCollectionWithPrefix.excludeCollectionWithPrefix - The value for excludeCollectionWithPrefixthis builder for use in a chained invocationpublic final ImmutableMongoDumpArguments.Builder numberOfParallelCollections(int numberOfParallelCollections)
numberOfParallelCollections to numberOfParallelCollections.numberOfParallelCollections - The value for numberOfParallelCollectionsthis builder for chained invocationpublic final ImmutableMongoDumpArguments.Builder numberOfParallelCollections(OptionalInt numberOfParallelCollections)
numberOfParallelCollections to numberOfParallelCollections.numberOfParallelCollections - The value for numberOfParallelCollectionsthis builder for use in a chained invocationpublic ImmutableMongoDumpArguments build()
ImmutableMongoDumpArguments.IllegalStateException - if any required attributes are missingCopyright © 2024. All rights reserved.