public static final class ImmutableMongoRestoreArguments.Builder extends Object
ImmutableMongoRestoreArguments.
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.
public final ImmutableMongoRestoreArguments.Builder from(MongoRestoreArguments instance)
MongoRestoreArguments 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 ImmutableMongoRestoreArguments.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 ImmutableMongoRestoreArguments.Builder databaseName(String databaseName)
databaseName to databaseName.databaseName - The value for databaseNamethis builder for chained invocationpublic final ImmutableMongoRestoreArguments.Builder databaseName(Optional<String> databaseName)
databaseName to databaseName.databaseName - The value for databaseNamethis builder for use in a chained invocationpublic final ImmutableMongoRestoreArguments.Builder collectionName(String collectionName)
collectionName to collectionName.collectionName - The value for collectionNamethis builder for chained invocationpublic final ImmutableMongoRestoreArguments.Builder collectionName(Optional<String> collectionName)
collectionName to collectionName.collectionName - The value for collectionNamethis builder for use in a chained invocationpublic final ImmutableMongoRestoreArguments.Builder oplogLimit(long oplogLimit)
oplogLimit to oplogLimit.oplogLimit - The value for oplogLimitthis builder for chained invocationpublic final ImmutableMongoRestoreArguments.Builder oplogLimit(OptionalLong oplogLimit)
oplogLimit to oplogLimit.oplogLimit - The value for oplogLimitthis builder for use in a chained invocationpublic final ImmutableMongoRestoreArguments.Builder archive(String archive)
archive to archive.archive - The value for archivethis builder for chained invocationpublic final ImmutableMongoRestoreArguments.Builder archive(Optional<String> archive)
archive to archive.archive - The value for archivethis builder for use in a chained invocationpublic final ImmutableMongoRestoreArguments.Builder dir(String dir)
dir to dir.dir - The value for dirthis builder for chained invocationpublic final ImmutableMongoRestoreArguments.Builder dir(Optional<String> dir)
dir to dir.dir - The value for dirthis builder for use in a chained invocationpublic final ImmutableMongoRestoreArguments.Builder numberOfParallelCollections(int numberOfParallelCollections)
numberOfParallelCollections to numberOfParallelCollections.numberOfParallelCollections - The value for numberOfParallelCollectionsthis builder for chained invocationpublic final ImmutableMongoRestoreArguments.Builder numberOfParallelCollections(OptionalInt numberOfParallelCollections)
numberOfParallelCollections to numberOfParallelCollections.numberOfParallelCollections - The value for numberOfParallelCollectionsthis builder for use in a chained invocationpublic final ImmutableMongoRestoreArguments.Builder numberOfInsertionWorkersPerCollection(int numberOfInsertionWorkersPerCollection)
numberOfInsertionWorkersPerCollection to numberOfInsertionWorkersPerCollection.numberOfInsertionWorkersPerCollection - The value for numberOfInsertionWorkersPerCollectionthis builder for chained invocationpublic final ImmutableMongoRestoreArguments.Builder numberOfInsertionWorkersPerCollection(OptionalInt numberOfInsertionWorkersPerCollection)
numberOfInsertionWorkersPerCollection to numberOfInsertionWorkersPerCollection.numberOfInsertionWorkersPerCollection - The value for numberOfInsertionWorkersPerCollectionthis builder for use in a chained invocationpublic final ImmutableMongoRestoreArguments.Builder writeConcern(String writeConcern)
writeConcern to writeConcern.writeConcern - The value for writeConcernthis builder for chained invocationpublic final ImmutableMongoRestoreArguments.Builder writeConcern(Optional<String> writeConcern)
writeConcern to writeConcern.writeConcern - The value for writeConcernthis builder for use in a chained invocationpublic final ImmutableMongoRestoreArguments.Builder objectCheck(boolean objectCheck)
objectCheck attribute.
If not set, this attribute will have a default value as returned by the initializer of objectCheck.
objectCheck - The value for objectCheckthis builder for use in a chained invocationpublic final ImmutableMongoRestoreArguments.Builder oplogReplay(boolean oplogReplay)
oplogReplay attribute.
If not set, this attribute will have a default value as returned by the initializer of oplogReplay.
oplogReplay - The value for oplogReplaythis builder for use in a chained invocationpublic final ImmutableMongoRestoreArguments.Builder restoreDbUsersAndRoles(boolean restoreDbUsersAndRoles)
restoreDbUsersAndRoles attribute.
If not set, this attribute will have a default value as returned by the initializer of restoreDbUsersAndRoles.
restoreDbUsersAndRoles - The value for restoreDbUsersAndRolesthis builder for use in a chained invocationpublic final ImmutableMongoRestoreArguments.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 ImmutableMongoRestoreArguments.Builder dropCollection(boolean dropCollection)
dropCollection attribute.
If not set, this attribute will have a default value as returned by the initializer of dropCollection.
dropCollection - The value for dropCollectionthis builder for use in a chained invocationpublic final ImmutableMongoRestoreArguments.Builder noIndexRestore(boolean noIndexRestore)
noIndexRestore attribute.
If not set, this attribute will have a default value as returned by the initializer of noIndexRestore.
noIndexRestore - The value for noIndexRestorethis builder for use in a chained invocationpublic final ImmutableMongoRestoreArguments.Builder noOptionsRestore(boolean noOptionsRestore)
noOptionsRestore attribute.
If not set, this attribute will have a default value as returned by the initializer of noOptionsRestore.
noOptionsRestore - The value for noOptionsRestorethis builder for use in a chained invocationpublic final ImmutableMongoRestoreArguments.Builder keepIndexVersion(boolean keepIndexVersion)
keepIndexVersion attribute.
If not set, this attribute will have a default value as returned by the initializer of keepIndexVersion.
keepIndexVersion - The value for keepIndexVersionthis builder for use in a chained invocationpublic final ImmutableMongoRestoreArguments.Builder maintainInsertionOrder(boolean maintainInsertionOrder)
maintainInsertionOrder attribute.
If not set, this attribute will have a default value as returned by the initializer of maintainInsertionOrder.
maintainInsertionOrder - The value for maintainInsertionOrderthis builder for use in a chained invocationpublic final ImmutableMongoRestoreArguments.Builder stopOnError(boolean stopOnError)
stopOnError attribute.
If not set, this attribute will have a default value as returned by the initializer of stopOnError.
stopOnError - The value for stopOnErrorthis builder for use in a chained invocationpublic final ImmutableMongoRestoreArguments.Builder bypassDocumentValidation(boolean bypassDocumentValidation)
bypassDocumentValidation attribute.
If not set, this attribute will have a default value as returned by the initializer of bypassDocumentValidation.
bypassDocumentValidation - The value for bypassDocumentValidationthis builder for use in a chained invocationpublic ImmutableMongoRestoreArguments build()
ImmutableMongoRestoreArguments.IllegalStateException - if any required attributes are missingCopyright © 2022. All rights reserved.