public static final class ImmutablePackageOfCommandDistribution.Builder extends Object
ImmutablePackageOfCommandDistribution.
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 |
|---|---|
ImmutablePackageOfCommandDistribution |
build()
Builds a new
ImmutablePackageOfCommandDistribution. |
ImmutablePackageOfCommandDistribution.Builder |
command(de.flapdoodle.reverse.StateID<de.flapdoodle.embed.mongo.packageresolver.Command> command)
Initializes the value for the
command attribute. |
ImmutablePackageOfCommandDistribution.Builder |
commandPackageResolver(Function<de.flapdoodle.embed.mongo.packageresolver.Command,de.flapdoodle.embed.process.distribution.PackageResolver> commandPackageResolver)
Initializes the value for the
commandPackageResolver attribute. |
ImmutablePackageOfCommandDistribution.Builder |
destination(de.flapdoodle.reverse.StateID<de.flapdoodle.embed.process.config.store.Package> destination)
Initializes the value for the
destination attribute. |
ImmutablePackageOfCommandDistribution.Builder |
distribution(de.flapdoodle.reverse.StateID<de.flapdoodle.embed.process.distribution.Distribution> distribution)
Initializes the value for the
distribution attribute. |
ImmutablePackageOfCommandDistribution.Builder |
distributionBaseUrl(de.flapdoodle.reverse.StateID<DistributionBaseUrl> distributionBaseUrl)
Initializes the value for the
distributionBaseUrl attribute. |
ImmutablePackageOfCommandDistribution.Builder |
from(PackageOfCommandDistribution instance)
Fill a builder with attribute values from the provided
PackageOfCommandDistribution instance. |
public final ImmutablePackageOfCommandDistribution.Builder from(PackageOfCommandDistribution instance)
PackageOfCommandDistribution 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 ImmutablePackageOfCommandDistribution.Builder commandPackageResolver(Function<de.flapdoodle.embed.mongo.packageresolver.Command,de.flapdoodle.embed.process.distribution.PackageResolver> commandPackageResolver)
commandPackageResolver attribute.
If not set, this attribute will have a default value as returned by the initializer of commandPackageResolver.
commandPackageResolver - The value for commandPackageResolverthis builder for use in a chained invocationpublic final ImmutablePackageOfCommandDistribution.Builder command(de.flapdoodle.reverse.StateID<de.flapdoodle.embed.mongo.packageresolver.Command> command)
command attribute.
If not set, this attribute will have a default value as returned by the initializer of command.
command - The value for commandthis builder for use in a chained invocationpublic final ImmutablePackageOfCommandDistribution.Builder distribution(de.flapdoodle.reverse.StateID<de.flapdoodle.embed.process.distribution.Distribution> distribution)
distribution attribute.
If not set, this attribute will have a default value as returned by the initializer of distribution.
distribution - The value for distributionthis builder for use in a chained invocationpublic final ImmutablePackageOfCommandDistribution.Builder distributionBaseUrl(de.flapdoodle.reverse.StateID<DistributionBaseUrl> distributionBaseUrl)
distributionBaseUrl attribute.
If not set, this attribute will have a default value as returned by the initializer of distributionBaseUrl.
distributionBaseUrl - The value for distributionBaseUrlthis builder for use in a chained invocationpublic final ImmutablePackageOfCommandDistribution.Builder destination(de.flapdoodle.reverse.StateID<de.flapdoodle.embed.process.config.store.Package> 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 ImmutablePackageOfCommandDistribution build()
ImmutablePackageOfCommandDistribution.IllegalStateException - if any required attributes are missingCopyright © 2023. All rights reserved.