public final class ImmutableMongoCmdOptions extends Object implements MongoCmdOptions
MongoCmdOptions.
Use the builder to create immutable instances:
ImmutableMongoCmdOptions.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableMongoCmdOptions.Builder
Builds instances of type
ImmutableMongoCmdOptions. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
auth() |
static ImmutableMongoCmdOptions.Builder |
builder()
Creates a builder for
ImmutableMongoCmdOptions. |
static ImmutableMongoCmdOptions |
copyOf(MongoCmdOptions instance)
Creates an immutable copy of a
MongoCmdOptions value. |
boolean |
enableTextSearch() |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableMongoCmdOptions that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
syncDelay, useDefaultSyncDelay, storageEngine, isVerbose, useNoPrealloc, useSmallFiles, useNoJournal, enableTextSearch, auth, master. |
boolean |
isVerbose() |
boolean |
master() |
Optional<String> |
storageEngine() |
int |
syncDelay() |
String |
toString()
Prints the immutable value
MongoCmdOptions with attribute values. |
boolean |
useDefaultSyncDelay() |
boolean |
useNoJournal() |
boolean |
useNoPrealloc() |
boolean |
useSmallFiles() |
ImmutableMongoCmdOptions |
withAuth(boolean value)
Copy the current immutable object by setting a value for the
auth attribute. |
ImmutableMongoCmdOptions |
withEnableTextSearch(boolean value)
Copy the current immutable object by setting a value for the
enableTextSearch attribute. |
ImmutableMongoCmdOptions |
withIsVerbose(boolean value)
Copy the current immutable object by setting a value for the
isVerbose attribute. |
ImmutableMongoCmdOptions |
withMaster(boolean value)
Copy the current immutable object by setting a value for the
master attribute. |
ImmutableMongoCmdOptions |
withStorageEngine(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
storageEngine attribute. |
ImmutableMongoCmdOptions |
withStorageEngine(String value)
Copy the current immutable object by setting a present value for the optional
storageEngine attribute. |
ImmutableMongoCmdOptions |
withSyncDelay(int value)
Copy the current immutable object by setting a value for the
syncDelay attribute. |
ImmutableMongoCmdOptions |
withUseDefaultSyncDelay(boolean value)
Copy the current immutable object by setting a value for the
useDefaultSyncDelay attribute. |
ImmutableMongoCmdOptions |
withUseNoJournal(boolean value)
Copy the current immutable object by setting a value for the
useNoJournal attribute. |
ImmutableMongoCmdOptions |
withUseNoPrealloc(boolean value)
Copy the current immutable object by setting a value for the
useNoPrealloc attribute. |
ImmutableMongoCmdOptions |
withUseSmallFiles(boolean value)
Copy the current immutable object by setting a value for the
useSmallFiles attribute. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitdefaultspublic int syncDelay()
syncDelay in interface MongoCmdOptionssyncDelay attributepublic boolean useDefaultSyncDelay()
useDefaultSyncDelay in interface MongoCmdOptionsuseDefaultSyncDelay attributepublic Optional<String> storageEngine()
storageEngine in interface MongoCmdOptionsstorageEngine attributepublic boolean isVerbose()
isVerbose in interface MongoCmdOptionsisVerbose attributepublic boolean useNoPrealloc()
useNoPrealloc in interface MongoCmdOptionsuseNoPrealloc attributepublic boolean useSmallFiles()
useSmallFiles in interface MongoCmdOptionsuseSmallFiles attributepublic boolean useNoJournal()
useNoJournal in interface MongoCmdOptionsuseNoJournal attributepublic boolean enableTextSearch()
enableTextSearch in interface MongoCmdOptionsenableTextSearch attributepublic boolean auth()
auth in interface MongoCmdOptionsauth attributepublic boolean master()
master in interface MongoCmdOptionsmaster attributepublic final ImmutableMongoCmdOptions withSyncDelay(int value)
syncDelay attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for syncDelaythis objectpublic final ImmutableMongoCmdOptions withUseDefaultSyncDelay(boolean value)
useDefaultSyncDelay attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for useDefaultSyncDelaythis objectpublic final ImmutableMongoCmdOptions withStorageEngine(String value)
storageEngine attribute.value - The value for storageEnginethis objectpublic final ImmutableMongoCmdOptions withStorageEngine(Optional<String> optional)
storageEngine attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for storageEnginethis objectpublic final ImmutableMongoCmdOptions withIsVerbose(boolean value)
isVerbose attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for isVerbosethis objectpublic final ImmutableMongoCmdOptions withUseNoPrealloc(boolean value)
useNoPrealloc attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for useNoPreallocthis objectpublic final ImmutableMongoCmdOptions withUseSmallFiles(boolean value)
useSmallFiles attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for useSmallFilesthis objectpublic final ImmutableMongoCmdOptions withUseNoJournal(boolean value)
useNoJournal attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for useNoJournalthis objectpublic final ImmutableMongoCmdOptions withEnableTextSearch(boolean value)
enableTextSearch attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for enableTextSearchthis objectpublic final ImmutableMongoCmdOptions withAuth(boolean value)
auth attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for auththis objectpublic final ImmutableMongoCmdOptions withMaster(boolean value)
master attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for masterthis objectpublic boolean equals(Object another)
ImmutableMongoCmdOptions that have equal attribute values.public int hashCode()
syncDelay, useDefaultSyncDelay, storageEngine, isVerbose, useNoPrealloc, useSmallFiles, useNoJournal, enableTextSearch, auth, master.public String toString()
MongoCmdOptions with attribute values.public static ImmutableMongoCmdOptions copyOf(MongoCmdOptions instance)
MongoCmdOptions 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 ImmutableMongoCmdOptions.Builder builder()
ImmutableMongoCmdOptions.
ImmutableMongoCmdOptions.builder()
.syncDelay(int) // optional syncDelay
.useDefaultSyncDelay(boolean) // optional useDefaultSyncDelay
.storageEngine(String) // optional storageEngine
.isVerbose(boolean) // optional isVerbose
.useNoPrealloc(boolean) // optional useNoPrealloc
.useSmallFiles(boolean) // optional useSmallFiles
.useNoJournal(boolean) // optional useNoJournal
.enableTextSearch(boolean) // optional enableTextSearch
.auth(boolean) // optional auth
.master(boolean) // optional master
.build();
builder in interface MongoCmdOptionsCopyright © 2022. All rights reserved.