public static final class ImmutablePackageOfDistribution.Builder extends Object
ImmutablePackageOfDistribution.
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 |
|---|---|
ImmutablePackageOfDistribution |
build()
Builds a new
ImmutablePackageOfDistribution. |
ImmutablePackageOfDistribution.Builder |
destination(de.flapdoodle.reverse.StateID<Package> destination)
Initializes the value for the
destination attribute. |
ImmutablePackageOfDistribution.Builder |
distribution(de.flapdoodle.reverse.StateID<Distribution> distribution)
Initializes the value for the
distribution attribute. |
ImmutablePackageOfDistribution.Builder |
from(de.flapdoodle.reverse.naming.HasLabel instance)
Fill a builder with attribute values from the provided
de.flapdoodle.reverse.naming.HasLabel instance. |
ImmutablePackageOfDistribution.Builder |
from(PackageOfDistribution instance)
Fill a builder with attribute values from the provided
de.flapdoodle.embed.process.transitions.PackageOfDistribution instance. |
ImmutablePackageOfDistribution.Builder |
packageResolver(PackageResolver packageResolver)
Initializes the value for the
packageResolver attribute. |
ImmutablePackageOfDistribution.Builder |
transitionLabel(String transitionLabel)
Initializes the value for the
transitionLabel attribute. |
public final ImmutablePackageOfDistribution.Builder from(PackageOfDistribution instance)
de.flapdoodle.embed.process.transitions.PackageOfDistribution instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ImmutablePackageOfDistribution.Builder from(de.flapdoodle.reverse.naming.HasLabel instance)
de.flapdoodle.reverse.naming.HasLabel instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ImmutablePackageOfDistribution.Builder transitionLabel(String transitionLabel)
transitionLabel attribute.
If not set, this attribute will have a default value as returned by the initializer of transitionLabel.
transitionLabel - The value for transitionLabelthis builder for use in a chained invocationpublic final ImmutablePackageOfDistribution.Builder packageResolver(PackageResolver packageResolver)
packageResolver attribute.packageResolver - The value for packageResolverthis builder for use in a chained invocationpublic final ImmutablePackageOfDistribution.Builder distribution(de.flapdoodle.reverse.StateID<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 ImmutablePackageOfDistribution.Builder destination(de.flapdoodle.reverse.StateID<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 ImmutablePackageOfDistribution build()
ImmutablePackageOfDistribution.IllegalStateException - if any required attributes are missingCopyright © 2024. All rights reserved.