@NotThreadSafe public static final class AppleResourceDescriptionArg.Builder extends Object
AppleResourceDescriptionArg
.
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 AppleResourceDescriptionArg.Builder from(AppleResourceDescriptionArg instance)
AppleResourceDescriptionArg
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final AppleResourceDescriptionArg.Builder from(com.facebook.buck.apple.AppleResourceDescription.AbstractAppleResourceDescriptionArg instance)
AbstractAppleResourceDescriptionArg
instance into builder.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final AppleResourceDescriptionArg.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 AppleResourceDescriptionArg.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 AppleResourceDescriptionArg.Builder addDirs(SourcePath element)
dirs
set.element
- A dirs elementthis
builder for use in a chained invocationpublic final AppleResourceDescriptionArg.Builder addDirs(SourcePath... elements)
dirs
set.elements
- An array of dirs elementsthis
builder for use in a chained invocationpublic final AppleResourceDescriptionArg.Builder setDirs(Iterable<? extends SourcePath> elements)
dirs
set.elements
- An iterable of dirs elementsthis
builder for use in a chained invocationpublic final AppleResourceDescriptionArg.Builder addAllDirs(Iterable<? extends SourcePath> elements)
dirs
set.elements
- An iterable of dirs elementsthis
builder for use in a chained invocationpublic final AppleResourceDescriptionArg.Builder addFiles(SourcePath element)
files
set.element
- A files elementthis
builder for use in a chained invocationpublic final AppleResourceDescriptionArg.Builder addFiles(SourcePath... elements)
files
set.elements
- An array of files elementsthis
builder for use in a chained invocationpublic final AppleResourceDescriptionArg.Builder setFiles(Iterable<? extends SourcePath> elements)
files
set.elements
- An iterable of files elementsthis
builder for use in a chained invocationpublic final AppleResourceDescriptionArg.Builder addAllFiles(Iterable<? extends SourcePath> elements)
files
set.elements
- An iterable of files elementsthis
builder for use in a chained invocationpublic final AppleResourceDescriptionArg.Builder addVariants(SourcePath element)
variants
set.element
- A variants elementthis
builder for use in a chained invocationpublic final AppleResourceDescriptionArg.Builder addVariants(SourcePath... elements)
variants
set.elements
- An array of variants elementsthis
builder for use in a chained invocationpublic final AppleResourceDescriptionArg.Builder setVariants(Iterable<? extends SourcePath> elements)
variants
set.elements
- An iterable of variants elementsthis
builder for use in a chained invocationpublic final AppleResourceDescriptionArg.Builder addAllVariants(Iterable<? extends SourcePath> elements)
variants
set.elements
- An iterable of variants elementsthis
builder for use in a chained invocationpublic final AppleResourceDescriptionArg.Builder addResourcesFromDeps(BuildTarget element)
resourcesFromDeps
set.element
- A resourcesFromDeps elementthis
builder for use in a chained invocationpublic final AppleResourceDescriptionArg.Builder addResourcesFromDeps(BuildTarget... elements)
resourcesFromDeps
set.elements
- An array of resourcesFromDeps elementsthis
builder for use in a chained invocationpublic final AppleResourceDescriptionArg.Builder setResourcesFromDeps(Iterable<? extends BuildTarget> elements)
resourcesFromDeps
set.elements
- An iterable of resourcesFromDeps elementsthis
builder for use in a chained invocationpublic final AppleResourceDescriptionArg.Builder addAllResourcesFromDeps(Iterable<? extends BuildTarget> elements)
resourcesFromDeps
set.elements
- An iterable of resourcesFromDeps elementsthis
builder for use in a chained invocationpublic final AppleResourceDescriptionArg.Builder setDestination(AppleBundleDestination destination)
destination
to destination.destination
- The value for destinationthis
builder for chained invocationpublic final AppleResourceDescriptionArg.Builder setDestination(Optional<? extends AppleBundleDestination> destination)
destination
to destination.destination
- The value for destinationthis
builder for use in a chained invocationpublic final AppleResourceDescriptionArg.Builder setCodesignOnCopy(boolean codesignOnCopy)
codesignOnCopy
attribute.
If not set, this attribute will have a default value as returned by the initializer of codesignOnCopy
.
codesignOnCopy
- The value for codesignOnCopythis
builder for use in a chained invocationpublic final AppleResourceDescriptionArg.Builder addLicenses(SourcePath element)
licenses
set.element
- A licenses elementthis
builder for use in a chained invocationpublic final AppleResourceDescriptionArg.Builder addLicenses(SourcePath... elements)
licenses
set.elements
- An array of licenses elementsthis
builder for use in a chained invocationpublic final AppleResourceDescriptionArg.Builder setLicenses(Iterable<? extends SourcePath> elements)
licenses
set.elements
- An iterable of licenses elementsthis
builder for use in a chained invocationpublic final AppleResourceDescriptionArg.Builder addAllLicenses(Iterable<? extends SourcePath> elements)
licenses
set.elements
- An iterable of licenses elementsthis
builder for use in a chained invocationpublic final AppleResourceDescriptionArg.Builder addLabels(String element)
labels
sortedSet.element
- A labels elementthis
builder for use in a chained invocationpublic final AppleResourceDescriptionArg.Builder addLabels(String... elements)
labels
sortedSet.elements
- An array of labels elementsthis
builder for use in a chained invocationpublic final AppleResourceDescriptionArg.Builder setLabels(Iterable<String> elements)
labels
sortedSet.elements
- An iterable of labels elementsthis
builder for use in a chained invocationpublic final AppleResourceDescriptionArg.Builder addAllLabels(Iterable<String> elements)
labels
sortedSet.elements
- An iterable of labels elementsthis
builder for use in a chained invocationpublic final AppleResourceDescriptionArg.Builder setDefaultTargetPlatform(UnconfiguredBuildTarget defaultTargetPlatform)
defaultTargetPlatform
to defaultTargetPlatform.defaultTargetPlatform
- The value for defaultTargetPlatformthis
builder for chained invocationpublic final AppleResourceDescriptionArg.Builder setDefaultTargetPlatform(Optional<? extends UnconfiguredBuildTarget> defaultTargetPlatform)
defaultTargetPlatform
to defaultTargetPlatform.defaultTargetPlatform
- The value for defaultTargetPlatformthis
builder for use in a chained invocationpublic final AppleResourceDescriptionArg.Builder addCompatibleWith(UnconfiguredBuildTarget element)
compatibleWith
list.element
- A compatibleWith elementthis
builder for use in a chained invocationpublic final AppleResourceDescriptionArg.Builder addCompatibleWith(UnconfiguredBuildTarget... elements)
compatibleWith
list.elements
- An array of compatibleWith elementsthis
builder for use in a chained invocationpublic final AppleResourceDescriptionArg.Builder setCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
compatibleWith
list.elements
- An iterable of compatibleWith elementsthis
builder for use in a chained invocationpublic final AppleResourceDescriptionArg.Builder addAllCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
compatibleWith
list.elements
- An iterable of compatibleWith elementsthis
builder for use in a chained invocationpublic final AppleResourceDescriptionArg.Builder setName(String name)
name
attribute.name
- The value for namethis
builder for use in a chained invocationpublic AppleResourceDescriptionArg build()
AppleResourceDescriptionArg
.IllegalStateException
- if any required attributes are missing