public static final class ImmutableDownloadPackage.Builder extends Object
ImmutableDownloadPackage.
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 |
|---|---|
ImmutableDownloadPackage |
build()
Builds a new
ImmutableDownloadPackage. |
ImmutableDownloadPackage.Builder |
destination(de.flapdoodle.reverse.StateID<Archive> destination)
Initializes the value for the
destination attribute. |
ImmutableDownloadPackage.Builder |
distPackage(de.flapdoodle.reverse.StateID<Package> distPackage)
Initializes the value for the
distPackage attribute. |
ImmutableDownloadPackage.Builder |
distribution(de.flapdoodle.reverse.StateID<Distribution> distribution)
Initializes the value for the
distribution attribute. |
ImmutableDownloadPackage.Builder |
downloadCache(de.flapdoodle.reverse.StateID<DownloadCache> downloadCache)
Initializes the value for the
downloadCache attribute. |
ImmutableDownloadPackage.Builder |
downloadConfig(DownloadConfig downloadConfig)
Initializes the value for the
downloadConfig attribute. |
ImmutableDownloadPackage.Builder |
from(DownloadPackage instance)
Fill a builder with attribute values from the provided
de.flapdoodle.embed.process.transitions.DownloadPackage instance. |
ImmutableDownloadPackage.Builder |
from(de.flapdoodle.reverse.naming.HasLabel instance)
Fill a builder with attribute values from the provided
de.flapdoodle.reverse.naming.HasLabel instance. |
ImmutableDownloadPackage.Builder |
name(de.flapdoodle.reverse.StateID<Name> name)
Initializes the value for the
name attribute. |
ImmutableDownloadPackage.Builder |
progressListener(de.flapdoodle.reverse.StateID<ProgressListener> progressListener)
Initializes the value for the
progressListener attribute. |
ImmutableDownloadPackage.Builder |
tempDirectory(de.flapdoodle.reverse.StateID<TempDir> tempDirectory)
Initializes the value for the
tempDirectory attribute. |
ImmutableDownloadPackage.Builder |
transitionLabel(String transitionLabel)
Initializes the value for the
transitionLabel attribute. |
public final ImmutableDownloadPackage.Builder from(DownloadPackage instance)
de.flapdoodle.embed.process.transitions.DownloadPackage instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ImmutableDownloadPackage.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 ImmutableDownloadPackage.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 ImmutableDownloadPackage.Builder name(de.flapdoodle.reverse.StateID<Name> name)
name attribute.
If not set, this attribute will have a default value as returned by the initializer of name.
name - The value for namethis builder for use in a chained invocationpublic final ImmutableDownloadPackage.Builder downloadCache(de.flapdoodle.reverse.StateID<DownloadCache> downloadCache)
downloadCache attribute.
If not set, this attribute will have a default value as returned by the initializer of downloadCache.
downloadCache - The value for downloadCachethis builder for use in a chained invocationpublic final ImmutableDownloadPackage.Builder progressListener(de.flapdoodle.reverse.StateID<ProgressListener> progressListener)
progressListener attribute.
If not set, this attribute will have a default value as returned by the initializer of progressListener.
progressListener - The value for progressListenerthis builder for use in a chained invocationpublic final ImmutableDownloadPackage.Builder downloadConfig(DownloadConfig downloadConfig)
downloadConfig attribute.
If not set, this attribute will have a default value as returned by the initializer of downloadConfig.
downloadConfig - The value for downloadConfigthis builder for use in a chained invocationpublic final ImmutableDownloadPackage.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 ImmutableDownloadPackage.Builder distPackage(de.flapdoodle.reverse.StateID<Package> distPackage)
distPackage attribute.
If not set, this attribute will have a default value as returned by the initializer of distPackage.
distPackage - The value for distPackagethis builder for use in a chained invocationpublic final ImmutableDownloadPackage.Builder tempDirectory(de.flapdoodle.reverse.StateID<TempDir> tempDirectory)
tempDirectory attribute.
If not set, this attribute will have a default value as returned by the initializer of tempDirectory.
tempDirectory - The value for tempDirectorythis builder for use in a chained invocationpublic final ImmutableDownloadPackage.Builder destination(de.flapdoodle.reverse.StateID<Archive> 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 ImmutableDownloadPackage build()
ImmutableDownloadPackage.IllegalStateException - if any required attributes are missingCopyright © 2022. All rights reserved.