@NotThreadSafe public static final class PrebuiltAppleFrameworkDescriptionArg.Builder extends Object
PrebuiltAppleFrameworkDescriptionArg
.
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 PrebuiltAppleFrameworkDescriptionArg.Builder from(HasDeclaredDeps instance)
com.facebook.buck.core.description.arg.HasDeclaredDeps
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final PrebuiltAppleFrameworkDescriptionArg.Builder from(HasSystemFrameworkAndLibraries instance)
com.facebook.buck.cxx.toolchain.HasSystemFrameworkAndLibraries
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final PrebuiltAppleFrameworkDescriptionArg.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 PrebuiltAppleFrameworkDescriptionArg.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 PrebuiltAppleFrameworkDescriptionArg.Builder from(PrebuiltAppleFrameworkDescriptionArg instance)
PrebuiltAppleFrameworkDescriptionArg
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final PrebuiltAppleFrameworkDescriptionArg.Builder from(com.facebook.buck.apple.PrebuiltAppleFrameworkDescription.AbstractPrebuiltAppleFrameworkDescriptionArg instance)
AbstractPrebuiltAppleFrameworkDescriptionArg
instance into builder.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final PrebuiltAppleFrameworkDescriptionArg.Builder setFramework(SourcePath framework)
framework
attribute.framework
- The value for frameworkthis
builder for use in a chained invocationpublic final PrebuiltAppleFrameworkDescriptionArg.Builder setSupportedPlatformsRegex(Pattern supportedPlatformsRegex)
supportedPlatformsRegex
to supportedPlatformsRegex.supportedPlatformsRegex
- The value for supportedPlatformsRegexthis
builder for chained invocationpublic final PrebuiltAppleFrameworkDescriptionArg.Builder setSupportedPlatformsRegex(Optional<? extends Pattern> supportedPlatformsRegex)
supportedPlatformsRegex
to supportedPlatformsRegex.supportedPlatformsRegex
- The value for supportedPlatformsRegexthis
builder for use in a chained invocationpublic final PrebuiltAppleFrameworkDescriptionArg.Builder addExportedLinkerFlags(String element)
exportedLinkerFlags
list.element
- A exportedLinkerFlags elementthis
builder for use in a chained invocationpublic final PrebuiltAppleFrameworkDescriptionArg.Builder addExportedLinkerFlags(String... elements)
exportedLinkerFlags
list.elements
- An array of exportedLinkerFlags elementsthis
builder for use in a chained invocationpublic final PrebuiltAppleFrameworkDescriptionArg.Builder setExportedLinkerFlags(Iterable<String> elements)
exportedLinkerFlags
list.elements
- An iterable of exportedLinkerFlags elementsthis
builder for use in a chained invocationpublic final PrebuiltAppleFrameworkDescriptionArg.Builder addAllExportedLinkerFlags(Iterable<String> elements)
exportedLinkerFlags
list.elements
- An iterable of exportedLinkerFlags elementsthis
builder for use in a chained invocationpublic final PrebuiltAppleFrameworkDescriptionArg.Builder setCodeSignOnCopy(boolean codeSignOnCopy)
codeSignOnCopy
to codeSignOnCopy.codeSignOnCopy
- The value for codeSignOnCopythis
builder for chained invocationpublic final PrebuiltAppleFrameworkDescriptionArg.Builder setCodeSignOnCopy(Optional<Boolean> codeSignOnCopy)
codeSignOnCopy
to codeSignOnCopy.codeSignOnCopy
- The value for codeSignOnCopythis
builder for use in a chained invocationpublic final PrebuiltAppleFrameworkDescriptionArg.Builder setExportedPlatformLinkerFlags(PatternMatchedCollection<com.google.common.collect.ImmutableList<String>> exportedPlatformLinkerFlags)
exportedPlatformLinkerFlags
attribute.
If not set, this attribute will have a default value as returned by the initializer of exportedPlatformLinkerFlags
.
exportedPlatformLinkerFlags
- The value for exportedPlatformLinkerFlagsthis
builder for use in a chained invocationpublic final PrebuiltAppleFrameworkDescriptionArg.Builder setPreferredLinkage(NativeLinkableGroup.Linkage preferredLinkage)
preferredLinkage
attribute.preferredLinkage
- The value for preferredLinkagethis
builder for use in a chained invocationpublic final PrebuiltAppleFrameworkDescriptionArg.Builder addLicenses(SourcePath element)
licenses
set.element
- A licenses elementthis
builder for use in a chained invocationpublic final PrebuiltAppleFrameworkDescriptionArg.Builder addLicenses(SourcePath... elements)
licenses
set.elements
- An array of licenses elementsthis
builder for use in a chained invocationpublic final PrebuiltAppleFrameworkDescriptionArg.Builder setLicenses(Iterable<? extends SourcePath> elements)
licenses
set.elements
- An iterable of licenses elementsthis
builder for use in a chained invocationpublic final PrebuiltAppleFrameworkDescriptionArg.Builder addAllLicenses(Iterable<? extends SourcePath> elements)
licenses
set.elements
- An iterable of licenses elementsthis
builder for use in a chained invocationpublic final PrebuiltAppleFrameworkDescriptionArg.Builder addLabels(String element)
labels
sortedSet.element
- A labels elementthis
builder for use in a chained invocationpublic final PrebuiltAppleFrameworkDescriptionArg.Builder addLabels(String... elements)
labels
sortedSet.elements
- An array of labels elementsthis
builder for use in a chained invocationpublic final PrebuiltAppleFrameworkDescriptionArg.Builder setLabels(Iterable<String> elements)
labels
sortedSet.elements
- An iterable of labels elementsthis
builder for use in a chained invocationpublic final PrebuiltAppleFrameworkDescriptionArg.Builder addAllLabels(Iterable<String> elements)
labels
sortedSet.elements
- An iterable of labels elementsthis
builder for use in a chained invocationpublic final PrebuiltAppleFrameworkDescriptionArg.Builder setDefaultTargetPlatform(UnconfiguredBuildTarget defaultTargetPlatform)
defaultTargetPlatform
to defaultTargetPlatform.defaultTargetPlatform
- The value for defaultTargetPlatformthis
builder for chained invocationpublic final PrebuiltAppleFrameworkDescriptionArg.Builder setDefaultTargetPlatform(Optional<? extends UnconfiguredBuildTarget> defaultTargetPlatform)
defaultTargetPlatform
to defaultTargetPlatform.defaultTargetPlatform
- The value for defaultTargetPlatformthis
builder for use in a chained invocationpublic final PrebuiltAppleFrameworkDescriptionArg.Builder addCompatibleWith(UnconfiguredBuildTarget element)
compatibleWith
list.element
- A compatibleWith elementthis
builder for use in a chained invocationpublic final PrebuiltAppleFrameworkDescriptionArg.Builder addCompatibleWith(UnconfiguredBuildTarget... elements)
compatibleWith
list.elements
- An array of compatibleWith elementsthis
builder for use in a chained invocationpublic final PrebuiltAppleFrameworkDescriptionArg.Builder setCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
compatibleWith
list.elements
- An iterable of compatibleWith elementsthis
builder for use in a chained invocationpublic final PrebuiltAppleFrameworkDescriptionArg.Builder addAllCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
compatibleWith
list.elements
- An iterable of compatibleWith elementsthis
builder for use in a chained invocationpublic final PrebuiltAppleFrameworkDescriptionArg.Builder setName(String name)
name
attribute.name
- The value for namethis
builder for use in a chained invocationpublic final PrebuiltAppleFrameworkDescriptionArg.Builder addDeps(BuildTarget element)
deps
sortedSet.element
- A deps elementthis
builder for use in a chained invocationpublic final PrebuiltAppleFrameworkDescriptionArg.Builder addDeps(BuildTarget... elements)
deps
sortedSet.elements
- An array of deps elementsthis
builder for use in a chained invocationpublic final PrebuiltAppleFrameworkDescriptionArg.Builder setDeps(Iterable<? extends BuildTarget> elements)
deps
sortedSet.elements
- An iterable of deps elementsthis
builder for use in a chained invocationpublic final PrebuiltAppleFrameworkDescriptionArg.Builder addAllDeps(Iterable<? extends BuildTarget> elements)
deps
sortedSet.elements
- An iterable of deps elementsthis
builder for use in a chained invocationpublic final PrebuiltAppleFrameworkDescriptionArg.Builder addFrameworks(FrameworkPath element)
frameworks
sortedSet.element
- A frameworks elementthis
builder for use in a chained invocationpublic final PrebuiltAppleFrameworkDescriptionArg.Builder addFrameworks(FrameworkPath... elements)
frameworks
sortedSet.elements
- An array of frameworks elementsthis
builder for use in a chained invocationpublic final PrebuiltAppleFrameworkDescriptionArg.Builder setFrameworks(Iterable<? extends FrameworkPath> elements)
frameworks
sortedSet.elements
- An iterable of frameworks elementsthis
builder for use in a chained invocationpublic final PrebuiltAppleFrameworkDescriptionArg.Builder addAllFrameworks(Iterable<? extends FrameworkPath> elements)
frameworks
sortedSet.elements
- An iterable of frameworks elementsthis
builder for use in a chained invocationpublic final PrebuiltAppleFrameworkDescriptionArg.Builder addLibraries(FrameworkPath element)
libraries
sortedSet.element
- A libraries elementthis
builder for use in a chained invocationpublic final PrebuiltAppleFrameworkDescriptionArg.Builder addLibraries(FrameworkPath... elements)
libraries
sortedSet.elements
- An array of libraries elementsthis
builder for use in a chained invocationpublic final PrebuiltAppleFrameworkDescriptionArg.Builder setLibraries(Iterable<? extends FrameworkPath> elements)
libraries
sortedSet.elements
- An iterable of libraries elementsthis
builder for use in a chained invocationpublic final PrebuiltAppleFrameworkDescriptionArg.Builder addAllLibraries(Iterable<? extends FrameworkPath> elements)
libraries
sortedSet.elements
- An iterable of libraries elementsthis
builder for use in a chained invocationpublic PrebuiltAppleFrameworkDescriptionArg build()
PrebuiltAppleFrameworkDescriptionArg
.IllegalStateException
- if any required attributes are missing