@Generated(value="org.immutables.processor.ProxyProcessor") public final class ImmutableDownloadConfig extends Object implements DownloadConfig
DownloadConfig.
Use the builder to create immutable instances:
ImmutableDownloadConfig.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableDownloadConfig.Builder
Builds instances of type
ImmutableDownloadConfig. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableDownloadConfig.Builder |
builder()
Creates a builder for
ImmutableDownloadConfig. |
static ImmutableDownloadConfig |
copyOf(DownloadConfig instance)
Creates an immutable copy of a
DownloadConfig value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableDownloadConfig that have equal attribute values. |
Directory |
getArtifactStorePath() |
DistributionDownloadPath |
getDownloadPath() |
String |
getDownloadPrefix() |
TempNaming |
getFileNaming() |
PackageResolver |
getPackageResolver() |
ProgressListener |
getProgressListener() |
TimeoutConfig |
getTimeoutConfig() |
String |
getUserAgent() |
int |
hashCode()
Computes a hash code from attributes:
downloadPath, progressListener, artifactStorePath, fileNaming, downloadPrefix, userAgent, packageResolver, timeoutConfig, proxyFactory. |
Optional<ProxyFactory> |
proxyFactory() |
String |
toString()
Prints the immutable value
DownloadConfig with attribute values. |
ImmutableDownloadConfig |
withArtifactStorePath(Directory value)
Copy the current immutable object by setting a value for the
artifactStorePath attribute. |
ImmutableDownloadConfig |
withDownloadPath(DistributionDownloadPath value)
Copy the current immutable object by setting a value for the
downloadPath attribute. |
ImmutableDownloadConfig |
withDownloadPrefix(String value)
Copy the current immutable object by setting a value for the
downloadPrefix attribute. |
ImmutableDownloadConfig |
withFileNaming(TempNaming value)
Copy the current immutable object by setting a value for the
fileNaming attribute. |
ImmutableDownloadConfig |
withPackageResolver(PackageResolver value)
Copy the current immutable object by setting a value for the
packageResolver attribute. |
ImmutableDownloadConfig |
withProgressListener(ProgressListener value)
Copy the current immutable object by setting a value for the
progressListener attribute. |
ImmutableDownloadConfig |
withProxyFactory(Optional<? extends ProxyFactory> optional)
Copy the current immutable object by setting an optional value for the
proxyFactory attribute. |
ImmutableDownloadConfig |
withProxyFactory(ProxyFactory value)
Copy the current immutable object by setting a present value for the optional
proxyFactory attribute. |
ImmutableDownloadConfig |
withTimeoutConfig(TimeoutConfig value)
Copy the current immutable object by setting a value for the
timeoutConfig attribute. |
ImmutableDownloadConfig |
withUserAgent(String value)
Copy the current immutable object by setting a value for the
userAgent attribute. |
public DistributionDownloadPath getDownloadPath()
getDownloadPath in interface DownloadConfigdownloadPath attributepublic ProgressListener getProgressListener()
getProgressListener in interface DownloadConfigprogressListener attributepublic Directory getArtifactStorePath()
getArtifactStorePath in interface DownloadConfigartifactStorePath attributepublic TempNaming getFileNaming()
getFileNaming in interface DownloadConfigfileNaming attributepublic String getDownloadPrefix()
getDownloadPrefix in interface DownloadConfigdownloadPrefix attributepublic String getUserAgent()
getUserAgent in interface DownloadConfiguserAgent attributepublic PackageResolver getPackageResolver()
getPackageResolver in interface DownloadConfigpackageResolver attributepublic TimeoutConfig getTimeoutConfig()
getTimeoutConfig in interface DownloadConfigtimeoutConfig attributepublic Optional<ProxyFactory> proxyFactory()
proxyFactory in interface DownloadConfigproxyFactory attributepublic final ImmutableDownloadConfig withDownloadPath(DistributionDownloadPath value)
downloadPath attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for downloadPaththis objectpublic final ImmutableDownloadConfig withProgressListener(ProgressListener value)
progressListener attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for progressListenerthis objectpublic final ImmutableDownloadConfig withArtifactStorePath(Directory value)
artifactStorePath attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for artifactStorePaththis objectpublic final ImmutableDownloadConfig withFileNaming(TempNaming value)
fileNaming attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for fileNamingthis objectpublic final ImmutableDownloadConfig withDownloadPrefix(String value)
downloadPrefix attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for downloadPrefixthis objectpublic final ImmutableDownloadConfig withUserAgent(String value)
userAgent attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for userAgentthis objectpublic final ImmutableDownloadConfig withPackageResolver(PackageResolver value)
packageResolver attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for packageResolverthis objectpublic final ImmutableDownloadConfig withTimeoutConfig(TimeoutConfig value)
timeoutConfig attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for timeoutConfigthis objectpublic final ImmutableDownloadConfig withProxyFactory(ProxyFactory value)
proxyFactory attribute.value - The value for proxyFactorythis objectpublic final ImmutableDownloadConfig withProxyFactory(Optional<? extends ProxyFactory> optional)
proxyFactory attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.optional - A value for proxyFactorythis objectpublic boolean equals(Object another)
ImmutableDownloadConfig that have equal attribute values.public int hashCode()
downloadPath, progressListener, artifactStorePath, fileNaming, downloadPrefix, userAgent, packageResolver, timeoutConfig, proxyFactory.public String toString()
DownloadConfig with attribute values.public static ImmutableDownloadConfig copyOf(DownloadConfig instance)
DownloadConfig value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static ImmutableDownloadConfig.Builder builder()
ImmutableDownloadConfig.
ImmutableDownloadConfig.builder()
.downloadPath(de.flapdoodle.embed.process.config.store.DistributionDownloadPath) // required downloadPath
.progressListener(de.flapdoodle.embed.process.io.progress.ProgressListener) // required progressListener
.artifactStorePath(de.flapdoodle.embed.process.io.directories.Directory) // required artifactStorePath
.fileNaming(de.flapdoodle.embed.process.extract.TempNaming) // required fileNaming
.downloadPrefix(String) // required downloadPrefix
.userAgent(String) // required userAgent
.packageResolver(de.flapdoodle.embed.process.config.store.PackageResolver) // required packageResolver
.timeoutConfig(de.flapdoodle.embed.process.config.store.TimeoutConfig) // optional timeoutConfig
.proxyFactory(de.flapdoodle.embed.process.config.store.ProxyFactory) // optional proxyFactory
.build();
builder in interface DownloadConfigCopyright © 2020. All rights reserved.