public static final class ImmutableMongosArguments.Builder extends Object
ImmutableMongosArguments.
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 |
|---|---|
ImmutableMongosArguments |
build()
Builds a new
ImmutableMongosArguments. |
ImmutableMongosArguments.Builder |
configDB(Optional<String> configDB)
Initializes the optional value
configDB to configDB. |
ImmutableMongosArguments.Builder |
configDB(String configDB)
Initializes the optional value
configDB to configDB. |
ImmutableMongosArguments.Builder |
from(MongosArguments instance)
Fill a builder with attribute values from the provided
MongosArguments instance. |
ImmutableMongosArguments.Builder |
replicaSet(Optional<String> replicaSet)
Initializes the optional value
replicaSet to replicaSet. |
ImmutableMongosArguments.Builder |
replicaSet(String replicaSet)
Initializes the optional value
replicaSet to replicaSet. |
ImmutableMongosArguments.Builder |
verbose(boolean verbose)
Initializes the value for the
verbose attribute. |
public final ImmutableMongosArguments.Builder from(MongosArguments instance)
MongosArguments 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 ImmutableMongosArguments.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 ImmutableMongosArguments.Builder configDB(String configDB)
configDB to configDB.configDB - The value for configDBthis builder for chained invocationpublic final ImmutableMongosArguments.Builder configDB(Optional<String> configDB)
configDB to configDB.configDB - The value for configDBthis builder for use in a chained invocationpublic final ImmutableMongosArguments.Builder replicaSet(String replicaSet)
replicaSet to replicaSet.replicaSet - The value for replicaSetthis builder for chained invocationpublic final ImmutableMongosArguments.Builder replicaSet(Optional<String> replicaSet)
replicaSet to replicaSet.replicaSet - The value for replicaSetthis builder for use in a chained invocationpublic ImmutableMongosArguments build()
ImmutableMongosArguments.IllegalStateException - if any required attributes are missingCopyright © 2023. All rights reserved.