public static final class ImmutableMongodProcessArguments.Builder extends Object
ImmutableMongodProcessArguments.
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 |
|---|---|
ImmutableMongodProcessArguments.Builder |
arguments(de.flapdoodle.reverse.StateID<MongodArguments> arguments)
Initializes the value for the
arguments attribute. |
ImmutableMongodProcessArguments |
build()
Builds a new
ImmutableMongodProcessArguments. |
ImmutableMongodProcessArguments.Builder |
databaseDir(de.flapdoodle.reverse.StateID<DatabaseDir> databaseDir)
Initializes the value for the
databaseDir attribute. |
ImmutableMongodProcessArguments.Builder |
destination(de.flapdoodle.reverse.StateID<de.flapdoodle.embed.process.types.ProcessArguments> destination)
Initializes the value for the
destination attribute. |
ImmutableMongodProcessArguments.Builder |
from(MongodProcessArguments instance)
Fill a builder with attribute values from the provided
MongodProcessArguments instance. |
ImmutableMongodProcessArguments.Builder |
net(de.flapdoodle.reverse.StateID<Net> net)
Initializes the value for the
net attribute. |
ImmutableMongodProcessArguments.Builder |
platform(de.flapdoodle.reverse.StateID<de.flapdoodle.os.Platform> platform)
Initializes the value for the
platform attribute. |
ImmutableMongodProcessArguments.Builder |
version(de.flapdoodle.reverse.StateID<de.flapdoodle.embed.process.distribution.Version> version)
Initializes the value for the
version attribute. |
public final ImmutableMongodProcessArguments.Builder from(MongodProcessArguments instance)
MongodProcessArguments 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 ImmutableMongodProcessArguments.Builder destination(de.flapdoodle.reverse.StateID<de.flapdoodle.embed.process.types.ProcessArguments> destination)
destination attribute.
If not set, this attribute will have a default value as returned by the initializer of destination.
destination - The value for destinationthis builder for use in a chained invocationpublic final ImmutableMongodProcessArguments.Builder arguments(de.flapdoodle.reverse.StateID<MongodArguments> arguments)
arguments attribute.
If not set, this attribute will have a default value as returned by the initializer of arguments.
arguments - The value for argumentsthis builder for use in a chained invocationpublic final ImmutableMongodProcessArguments.Builder platform(de.flapdoodle.reverse.StateID<de.flapdoodle.os.Platform> platform)
platform attribute.
If not set, this attribute will have a default value as returned by the initializer of platform.
platform - The value for platformthis builder for use in a chained invocationpublic final ImmutableMongodProcessArguments.Builder version(de.flapdoodle.reverse.StateID<de.flapdoodle.embed.process.distribution.Version> version)
version attribute.
If not set, this attribute will have a default value as returned by the initializer of version.
version - The value for versionthis builder for use in a chained invocationpublic final ImmutableMongodProcessArguments.Builder net(de.flapdoodle.reverse.StateID<Net> net)
net attribute.
If not set, this attribute will have a default value as returned by the initializer of net.
net - The value for netthis builder for use in a chained invocationpublic final ImmutableMongodProcessArguments.Builder databaseDir(de.flapdoodle.reverse.StateID<DatabaseDir> databaseDir)
databaseDir attribute.
If not set, this attribute will have a default value as returned by the initializer of databaseDir.
databaseDir - The value for databaseDirthis builder for use in a chained invocationpublic ImmutableMongodProcessArguments build()
ImmutableMongodProcessArguments.IllegalStateException - if any required attributes are missingCopyright © 2024. All rights reserved.