public static final class ImmutableArtifactStore.Builder extends Object
ImmutableArtifactStore.
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 |
|---|---|
ImmutableArtifactStore |
build()
Builds a new
ImmutableArtifactStore. |
ImmutableArtifactStore.Builder |
downloadConfig(DownloadConfig downloadConfig)
Initializes the value for the
downloadConfig attribute. |
ImmutableArtifactStore.Builder |
downloader(Downloader downloader)
Initializes the value for the
downloader attribute. |
ImmutableArtifactStore.Builder |
executableNaming(TempNaming executableNaming)
Initializes the value for the
executableNaming attribute. |
ImmutableArtifactStore.Builder |
from(ArtifactStore instance)
Fill a builder with attribute values from the provided
ArtifactStore instance. |
ImmutableArtifactStore.Builder |
tempDirFactory(Directory tempDirFactory)
Initializes the value for the
tempDirFactory attribute. |
public final ImmutableArtifactStore.Builder from(ArtifactStore instance)
ArtifactStore 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 ImmutableArtifactStore.Builder downloadConfig(DownloadConfig downloadConfig)
downloadConfig attribute.downloadConfig - The value for downloadConfigthis builder for use in a chained invocationpublic final ImmutableArtifactStore.Builder tempDirFactory(Directory tempDirFactory)
tempDirFactory attribute.tempDirFactory - The value for tempDirFactorythis builder for use in a chained invocationpublic final ImmutableArtifactStore.Builder executableNaming(TempNaming executableNaming)
executableNaming attribute.executableNaming - The value for executableNamingthis builder for use in a chained invocationpublic final ImmutableArtifactStore.Builder downloader(Downloader downloader)
downloader attribute.downloader - The value for downloaderthis builder for use in a chained invocationpublic ImmutableArtifactStore build()
ImmutableArtifactStore.IllegalStateException - if any required attributes are missingCopyright © 2020. All rights reserved.