@NotThreadSafe public static final class ZipFileDescriptionArg.Builder extends Object
ZipFileDescriptionArg
.
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.
public final ZipFileDescriptionArg.Builder from(ZipFileDescriptionArg instance)
ZipFileDescriptionArg
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final ZipFileDescriptionArg.Builder from(com.facebook.buck.features.zip.rules.ZipFileDescription.AbstractZipFileDescriptionArg instance)
AbstractZipFileDescriptionArg
instance into builder.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final ZipFileDescriptionArg.Builder from(BuildRuleArg instance)
com.facebook.buck.core.description.arg.BuildRuleArg
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final ZipFileDescriptionArg.Builder from(ConstructorArg instance)
com.facebook.buck.core.description.arg.ConstructorArg
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final ZipFileDescriptionArg.Builder setOut(String out)
out
attribute.
If not set, this attribute will have a default value as returned by the initializer of out
.
out
- The value for outthis
builder for use in a chained invocationpublic final ZipFileDescriptionArg.Builder addSrcs(SourcePath element)
srcs
set.element
- A srcs elementthis
builder for use in a chained invocationpublic final ZipFileDescriptionArg.Builder addSrcs(SourcePath... elements)
srcs
set.elements
- An array of srcs elementsthis
builder for use in a chained invocationpublic final ZipFileDescriptionArg.Builder setSrcs(Iterable<? extends SourcePath> elements)
srcs
set.elements
- An iterable of srcs elementsthis
builder for use in a chained invocationpublic final ZipFileDescriptionArg.Builder addAllSrcs(Iterable<? extends SourcePath> elements)
srcs
set.elements
- An iterable of srcs elementsthis
builder for use in a chained invocationpublic final ZipFileDescriptionArg.Builder addEntriesToExclude(Pattern element)
entriesToExclude
set.element
- A entriesToExclude elementthis
builder for use in a chained invocationpublic final ZipFileDescriptionArg.Builder addEntriesToExclude(Pattern... elements)
entriesToExclude
set.elements
- An array of entriesToExclude elementsthis
builder for use in a chained invocationpublic final ZipFileDescriptionArg.Builder setEntriesToExclude(Iterable<? extends Pattern> elements)
entriesToExclude
set.elements
- An iterable of entriesToExclude elementsthis
builder for use in a chained invocationpublic final ZipFileDescriptionArg.Builder addAllEntriesToExclude(Iterable<? extends Pattern> elements)
entriesToExclude
set.elements
- An iterable of entriesToExclude elementsthis
builder for use in a chained invocationpublic final ZipFileDescriptionArg.Builder addZipSrcs(SourcePath element)
zipSrcs
list.element
- A zipSrcs elementthis
builder for use in a chained invocationpublic final ZipFileDescriptionArg.Builder addZipSrcs(SourcePath... elements)
zipSrcs
list.elements
- An array of zipSrcs elementsthis
builder for use in a chained invocationpublic final ZipFileDescriptionArg.Builder setZipSrcs(Iterable<? extends SourcePath> elements)
zipSrcs
list.elements
- An iterable of zipSrcs elementsthis
builder for use in a chained invocationpublic final ZipFileDescriptionArg.Builder addAllZipSrcs(Iterable<? extends SourcePath> elements)
zipSrcs
list.elements
- An iterable of zipSrcs elementsthis
builder for use in a chained invocationpublic final ZipFileDescriptionArg.Builder setOnDuplicateEntry(OnDuplicateEntry onDuplicateEntry)
onDuplicateEntry
attribute.
If not set, this attribute will have a default value as returned by the initializer of onDuplicateEntry
.
onDuplicateEntry
- The value for onDuplicateEntrythis
builder for use in a chained invocationpublic final ZipFileDescriptionArg.Builder addCompatibleWith(UnconfiguredBuildTarget element)
compatibleWith
list.element
- A compatibleWith elementthis
builder for use in a chained invocationpublic final ZipFileDescriptionArg.Builder addCompatibleWith(UnconfiguredBuildTarget... elements)
compatibleWith
list.elements
- An array of compatibleWith elementsthis
builder for use in a chained invocationpublic final ZipFileDescriptionArg.Builder setCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
compatibleWith
list.elements
- An iterable of compatibleWith elementsthis
builder for use in a chained invocationpublic final ZipFileDescriptionArg.Builder addAllCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
compatibleWith
list.elements
- An iterable of compatibleWith elementsthis
builder for use in a chained invocationpublic final ZipFileDescriptionArg.Builder setDefaultTargetPlatform(UnconfiguredBuildTarget defaultTargetPlatform)
defaultTargetPlatform
to defaultTargetPlatform.defaultTargetPlatform
- The value for defaultTargetPlatformthis
builder for chained invocationpublic final ZipFileDescriptionArg.Builder setDefaultTargetPlatform(Optional<? extends UnconfiguredBuildTarget> defaultTargetPlatform)
defaultTargetPlatform
to defaultTargetPlatform.defaultTargetPlatform
- The value for defaultTargetPlatformthis
builder for use in a chained invocationpublic final ZipFileDescriptionArg.Builder addLabels(String element)
labels
sortedSet.element
- A labels elementthis
builder for use in a chained invocationpublic final ZipFileDescriptionArg.Builder addLabels(String... elements)
labels
sortedSet.elements
- An array of labels elementsthis
builder for use in a chained invocationpublic final ZipFileDescriptionArg.Builder setLabels(Iterable<String> elements)
labels
sortedSet.elements
- An iterable of labels elementsthis
builder for use in a chained invocationpublic final ZipFileDescriptionArg.Builder addAllLabels(Iterable<String> elements)
labels
sortedSet.elements
- An iterable of labels elementsthis
builder for use in a chained invocationpublic final ZipFileDescriptionArg.Builder addLicenses(SourcePath element)
licenses
set.element
- A licenses elementthis
builder for use in a chained invocationpublic final ZipFileDescriptionArg.Builder addLicenses(SourcePath... elements)
licenses
set.elements
- An array of licenses elementsthis
builder for use in a chained invocationpublic final ZipFileDescriptionArg.Builder setLicenses(Iterable<? extends SourcePath> elements)
licenses
set.elements
- An iterable of licenses elementsthis
builder for use in a chained invocationpublic final ZipFileDescriptionArg.Builder addAllLicenses(Iterable<? extends SourcePath> elements)
licenses
set.elements
- An iterable of licenses elementsthis
builder for use in a chained invocationpublic final ZipFileDescriptionArg.Builder setName(String name)
name
attribute.name
- The value for namethis
builder for use in a chained invocationpublic ZipFileDescriptionArg build()
ZipFileDescriptionArg
.IllegalStateException
- if any required attributes are missing