public static final class ImmutableMongodArguments.Builder extends Object
ImmutableMongodArguments.
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 |
|---|---|
ImmutableMongodArguments.Builder |
args(Map<String,? extends String> entries)
Sets or replaces all mappings from the specified map as entries for the
args map. |
ImmutableMongodArguments.Builder |
auth(boolean auth)
Initializes the value for the
auth attribute. |
ImmutableMongodArguments |
build()
Builds a new
ImmutableMongodArguments. |
ImmutableMongodArguments.Builder |
enableTextSearch(boolean enableTextSearch)
Initializes the value for the
enableTextSearch attribute. |
ImmutableMongodArguments.Builder |
from(MongodArguments instance)
Fill a builder with attribute values from the provided
MongodArguments instance. |
ImmutableMongodArguments.Builder |
isConfigServer(boolean isConfigServer)
Initializes the value for the
isConfigServer attribute. |
ImmutableMongodArguments.Builder |
isQuiet(boolean isQuiet)
Initializes the value for the
isQuiet attribute. |
ImmutableMongodArguments.Builder |
isShardServer(boolean isShardServer)
Initializes the value for the
isShardServer attribute. |
ImmutableMongodArguments.Builder |
isVerbose(boolean isVerbose)
Initializes the value for the
isVerbose attribute. |
ImmutableMongodArguments.Builder |
master(boolean master)
Initializes the value for the
master attribute. |
ImmutableMongodArguments.Builder |
params(Map<String,? extends String> entries)
Sets or replaces all mappings from the specified map as entries for the
params map. |
ImmutableMongodArguments.Builder |
putAllArgs(Map<String,? extends String> entries)
Put all mappings from the specified map as entries to
args map. |
ImmutableMongodArguments.Builder |
putAllParams(Map<String,? extends String> entries)
Put all mappings from the specified map as entries to
params map. |
ImmutableMongodArguments.Builder |
putArgs(Map.Entry<String,? extends String> entry)
Put one entry to the
args map. |
ImmutableMongodArguments.Builder |
putArgs(String key,
String value)
Put one entry to the
args map. |
ImmutableMongodArguments.Builder |
putParams(Map.Entry<String,? extends String> entry)
Put one entry to the
params map. |
ImmutableMongodArguments.Builder |
putParams(String key,
String value)
Put one entry to the
params map. |
ImmutableMongodArguments.Builder |
replication(Optional<? extends Storage> replication)
Initializes the optional value
replication to replication. |
ImmutableMongodArguments.Builder |
replication(Storage replication)
Initializes the optional value
replication to replication. |
ImmutableMongodArguments.Builder |
storageEngine(Optional<String> storageEngine)
Initializes the optional value
storageEngine to storageEngine. |
ImmutableMongodArguments.Builder |
storageEngine(String storageEngine)
Initializes the optional value
storageEngine to storageEngine. |
ImmutableMongodArguments.Builder |
syncDelay(int syncDelay)
Initializes the value for the
syncDelay attribute. |
ImmutableMongodArguments.Builder |
useDefaultSyncDelay(boolean useDefaultSyncDelay)
Initializes the value for the
useDefaultSyncDelay attribute. |
ImmutableMongodArguments.Builder |
useNoJournal(boolean useNoJournal)
Initializes the value for the
useNoJournal attribute. |
ImmutableMongodArguments.Builder |
useNoPrealloc(boolean useNoPrealloc)
Initializes the value for the
useNoPrealloc attribute. |
ImmutableMongodArguments.Builder |
useSmallFiles(boolean useSmallFiles)
Initializes the value for the
useSmallFiles attribute. |
ImmutableMongodArguments.Builder |
verbosityLevel(int verbosityLevel)
Initializes the value for the
verbosityLevel attribute. |
public final ImmutableMongodArguments.Builder from(MongodArguments instance)
MongodArguments instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.
Collection elements and entries will be added, not replaced.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ImmutableMongodArguments.Builder syncDelay(int syncDelay)
syncDelay attribute.
If not set, this attribute will have a default value as returned by the initializer of syncDelay.
syncDelay - The value for syncDelaythis builder for use in a chained invocationpublic final ImmutableMongodArguments.Builder useDefaultSyncDelay(boolean useDefaultSyncDelay)
useDefaultSyncDelay attribute.
If not set, this attribute will have a default value as returned by the initializer of useDefaultSyncDelay.
useDefaultSyncDelay - The value for useDefaultSyncDelaythis builder for use in a chained invocationpublic final ImmutableMongodArguments.Builder storageEngine(String storageEngine)
storageEngine to storageEngine.storageEngine - The value for storageEnginethis builder for chained invocationpublic final ImmutableMongodArguments.Builder storageEngine(Optional<String> storageEngine)
storageEngine to storageEngine.storageEngine - The value for storageEnginethis builder for use in a chained invocationpublic final ImmutableMongodArguments.Builder isVerbose(boolean isVerbose)
isVerbose attribute.
If not set, this attribute will have a default value as returned by the initializer of isVerbose.
isVerbose - The value for isVerbosethis builder for use in a chained invocationpublic final ImmutableMongodArguments.Builder verbosityLevel(int verbosityLevel)
verbosityLevel attribute.
If not set, this attribute will have a default value as returned by the initializer of verbosityLevel.
verbosityLevel - The value for verbosityLevelthis builder for use in a chained invocationpublic final ImmutableMongodArguments.Builder isQuiet(boolean isQuiet)
isQuiet attribute.
If not set, this attribute will have a default value as returned by the initializer of isQuiet.
isQuiet - The value for isQuietthis builder for use in a chained invocationpublic final ImmutableMongodArguments.Builder useNoPrealloc(boolean useNoPrealloc)
useNoPrealloc attribute.
If not set, this attribute will have a default value as returned by the initializer of useNoPrealloc.
useNoPrealloc - The value for useNoPreallocthis builder for use in a chained invocationpublic final ImmutableMongodArguments.Builder useSmallFiles(boolean useSmallFiles)
useSmallFiles attribute.
If not set, this attribute will have a default value as returned by the initializer of useSmallFiles.
useSmallFiles - The value for useSmallFilesthis builder for use in a chained invocationpublic final ImmutableMongodArguments.Builder useNoJournal(boolean useNoJournal)
useNoJournal attribute.
If not set, this attribute will have a default value as returned by the initializer of useNoJournal.
useNoJournal - The value for useNoJournalthis builder for use in a chained invocationpublic final ImmutableMongodArguments.Builder enableTextSearch(boolean enableTextSearch)
enableTextSearch attribute.
If not set, this attribute will have a default value as returned by the initializer of enableTextSearch.
enableTextSearch - The value for enableTextSearchthis builder for use in a chained invocationpublic final ImmutableMongodArguments.Builder auth(boolean auth)
auth attribute.
If not set, this attribute will have a default value as returned by the initializer of auth.
auth - The value for auththis builder for use in a chained invocationpublic final ImmutableMongodArguments.Builder master(boolean master)
master attribute.
If not set, this attribute will have a default value as returned by the initializer of master.
master - The value for masterthis builder for use in a chained invocationpublic final ImmutableMongodArguments.Builder replication(Storage replication)
replication to replication.replication - The value for replicationthis builder for chained invocationpublic final ImmutableMongodArguments.Builder replication(Optional<? extends Storage> replication)
replication to replication.replication - The value for replicationthis builder for use in a chained invocationpublic final ImmutableMongodArguments.Builder isConfigServer(boolean isConfigServer)
isConfigServer attribute.
If not set, this attribute will have a default value as returned by the initializer of isConfigServer.
isConfigServer - The value for isConfigServerthis builder for use in a chained invocationpublic final ImmutableMongodArguments.Builder isShardServer(boolean isShardServer)
isShardServer attribute.
If not set, this attribute will have a default value as returned by the initializer of isShardServer.
isShardServer - The value for isShardServerthis builder for use in a chained invocationpublic final ImmutableMongodArguments.Builder putParams(String key, String value)
params map.key - The key in the params mapvalue - The associated value in the params mapthis builder for use in a chained invocationpublic final ImmutableMongodArguments.Builder putParams(Map.Entry<String,? extends String> entry)
params map. Nulls are not permittedentry - The key and value entrythis builder for use in a chained invocationpublic final ImmutableMongodArguments.Builder params(Map<String,? extends String> entries)
params map. Nulls are not permittedentries - The entries that will be added to the params mapthis builder for use in a chained invocationpublic final ImmutableMongodArguments.Builder putAllParams(Map<String,? extends String> entries)
params map. Nulls are not permittedentries - The entries that will be added to the params mapthis builder for use in a chained invocationpublic final ImmutableMongodArguments.Builder putArgs(String key, String value)
args map.key - The key in the args mapvalue - The associated value in the args mapthis builder for use in a chained invocationpublic final ImmutableMongodArguments.Builder putArgs(Map.Entry<String,? extends String> entry)
args map. Nulls are not permittedentry - The key and value entrythis builder for use in a chained invocationpublic final ImmutableMongodArguments.Builder args(Map<String,? extends String> entries)
args map. Nulls are not permittedentries - The entries that will be added to the args mapthis builder for use in a chained invocationpublic final ImmutableMongodArguments.Builder putAllArgs(Map<String,? extends String> entries)
args map. Nulls are not permittedentries - The entries that will be added to the args mapthis builder for use in a chained invocationpublic ImmutableMongodArguments build()
ImmutableMongodArguments.IllegalStateException - if any required attributes are missingCopyright © 2024. All rights reserved.