public static final class ImmutableDistributionPackage.Builder extends Object
ImmutableDistributionPackage.
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 |
|---|---|
ImmutableDistributionPackage.Builder |
archivePath(String archivePath)
Initializes the value for the
archivePath attribute. |
ImmutableDistributionPackage.Builder |
archiveType(ArchiveType archiveType)
Initializes the value for the
archiveType attribute. |
ImmutableDistributionPackage |
build()
Builds a new
ImmutableDistributionPackage. |
ImmutableDistributionPackage.Builder |
fileSet(FileSet fileSet)
Initializes the value for the
fileSet attribute. |
ImmutableDistributionPackage.Builder |
from(DistributionPackage instance)
Fill a builder with attribute values from the provided
DistributionPackage instance. |
public final ImmutableDistributionPackage.Builder from(DistributionPackage instance)
DistributionPackage 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 ImmutableDistributionPackage.Builder archiveType(ArchiveType archiveType)
archiveType attribute.archiveType - The value for archiveTypethis builder for use in a chained invocationpublic final ImmutableDistributionPackage.Builder fileSet(FileSet fileSet)
fileSet attribute.fileSet - The value for fileSetthis builder for use in a chained invocationpublic final ImmutableDistributionPackage.Builder archivePath(String archivePath)
archivePath attribute.archivePath - The value for archivePaththis builder for use in a chained invocationpublic ImmutableDistributionPackage build()
ImmutableDistributionPackage.IllegalStateException - if any required attributes are missingCopyright © 2022. All rights reserved.