@NotThreadSafe public static final class AndroidPrebuiltAarDescriptionArg.Builder extends Object
AndroidPrebuiltAarDescriptionArg
.
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 AndroidPrebuiltAarDescriptionArg.Builder from(AndroidPrebuiltAarDescriptionArg instance)
AndroidPrebuiltAarDescriptionArg
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final AndroidPrebuiltAarDescriptionArg.Builder from(com.facebook.buck.android.AndroidPrebuiltAarDescription.AbstractAndroidPrebuiltAarDescriptionArg instance)
AbstractAndroidPrebuiltAarDescriptionArg
instance into builder.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final AndroidPrebuiltAarDescriptionArg.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 AndroidPrebuiltAarDescriptionArg.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 AndroidPrebuiltAarDescriptionArg.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 AndroidPrebuiltAarDescriptionArg.Builder from(MaybeRequiredForSourceOnlyAbiArg instance)
com.facebook.buck.jvm.java.MaybeRequiredForSourceOnlyAbiArg
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final AndroidPrebuiltAarDescriptionArg.Builder setAar(SourcePath aar)
aar
attribute.aar
- The value for aarthis
builder for use in a chained invocationpublic final AndroidPrebuiltAarDescriptionArg.Builder setSourceJar(SourcePath sourceJar)
sourceJar
to sourceJar.sourceJar
- The value for sourceJarthis
builder for chained invocationpublic final AndroidPrebuiltAarDescriptionArg.Builder setSourceJar(Optional<? extends SourcePath> sourceJar)
sourceJar
to sourceJar.sourceJar
- The value for sourceJarthis
builder for use in a chained invocationpublic final AndroidPrebuiltAarDescriptionArg.Builder setJavadocUrl(String javadocUrl)
javadocUrl
to javadocUrl.javadocUrl
- The value for javadocUrlthis
builder for chained invocationpublic final AndroidPrebuiltAarDescriptionArg.Builder setJavadocUrl(Optional<String> javadocUrl)
javadocUrl
to javadocUrl.javadocUrl
- The value for javadocUrlthis
builder for use in a chained invocationpublic final AndroidPrebuiltAarDescriptionArg.Builder setMavenCoords(String mavenCoords)
mavenCoords
to mavenCoords.mavenCoords
- The value for mavenCoordsthis
builder for chained invocationpublic final AndroidPrebuiltAarDescriptionArg.Builder setMavenCoords(Optional<String> mavenCoords)
mavenCoords
to mavenCoords.mavenCoords
- The value for mavenCoordsthis
builder for use in a chained invocationpublic final AndroidPrebuiltAarDescriptionArg.Builder setRequiredForSourceOnlyAbi(boolean requiredForSourceOnlyAbi)
requiredForSourceOnlyAbi
attribute.
If not set, this attribute will have a default value as returned by the initializer of requiredForSourceOnlyAbi
.
requiredForSourceOnlyAbi
- The value for requiredForSourceOnlyAbithis
builder for use in a chained invocationpublic final AndroidPrebuiltAarDescriptionArg.Builder setUseSystemLibraryLoader(boolean useSystemLibraryLoader)
useSystemLibraryLoader
attribute.
If not set, this attribute will have a default value as returned by the initializer of useSystemLibraryLoader
.
useSystemLibraryLoader
- The value for useSystemLibraryLoaderthis
builder for use in a chained invocationpublic final AndroidPrebuiltAarDescriptionArg.Builder addLicenses(SourcePath element)
licenses
set.element
- A licenses elementthis
builder for use in a chained invocationpublic final AndroidPrebuiltAarDescriptionArg.Builder addLicenses(SourcePath... elements)
licenses
set.elements
- An array of licenses elementsthis
builder for use in a chained invocationpublic final AndroidPrebuiltAarDescriptionArg.Builder setLicenses(Iterable<? extends SourcePath> elements)
licenses
set.elements
- An iterable of licenses elementsthis
builder for use in a chained invocationpublic final AndroidPrebuiltAarDescriptionArg.Builder addAllLicenses(Iterable<? extends SourcePath> elements)
licenses
set.elements
- An iterable of licenses elementsthis
builder for use in a chained invocationpublic final AndroidPrebuiltAarDescriptionArg.Builder addLabels(String element)
labels
sortedSet.element
- A labels elementthis
builder for use in a chained invocationpublic final AndroidPrebuiltAarDescriptionArg.Builder addLabels(String... elements)
labels
sortedSet.elements
- An array of labels elementsthis
builder for use in a chained invocationpublic final AndroidPrebuiltAarDescriptionArg.Builder setLabels(Iterable<String> elements)
labels
sortedSet.elements
- An iterable of labels elementsthis
builder for use in a chained invocationpublic final AndroidPrebuiltAarDescriptionArg.Builder addAllLabels(Iterable<String> elements)
labels
sortedSet.elements
- An iterable of labels elementsthis
builder for use in a chained invocationpublic final AndroidPrebuiltAarDescriptionArg.Builder setDefaultTargetPlatform(UnconfiguredBuildTarget defaultTargetPlatform)
defaultTargetPlatform
to defaultTargetPlatform.defaultTargetPlatform
- The value for defaultTargetPlatformthis
builder for chained invocationpublic final AndroidPrebuiltAarDescriptionArg.Builder setDefaultTargetPlatform(Optional<? extends UnconfiguredBuildTarget> defaultTargetPlatform)
defaultTargetPlatform
to defaultTargetPlatform.defaultTargetPlatform
- The value for defaultTargetPlatformthis
builder for use in a chained invocationpublic final AndroidPrebuiltAarDescriptionArg.Builder addCompatibleWith(UnconfiguredBuildTarget element)
compatibleWith
list.element
- A compatibleWith elementthis
builder for use in a chained invocationpublic final AndroidPrebuiltAarDescriptionArg.Builder addCompatibleWith(UnconfiguredBuildTarget... elements)
compatibleWith
list.elements
- An array of compatibleWith elementsthis
builder for use in a chained invocationpublic final AndroidPrebuiltAarDescriptionArg.Builder setCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
compatibleWith
list.elements
- An iterable of compatibleWith elementsthis
builder for use in a chained invocationpublic final AndroidPrebuiltAarDescriptionArg.Builder addAllCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
compatibleWith
list.elements
- An iterable of compatibleWith elementsthis
builder for use in a chained invocationpublic final AndroidPrebuiltAarDescriptionArg.Builder setName(String name)
name
attribute.name
- The value for namethis
builder for use in a chained invocationpublic final AndroidPrebuiltAarDescriptionArg.Builder addDeps(BuildTarget element)
deps
sortedSet.element
- A deps elementthis
builder for use in a chained invocationpublic final AndroidPrebuiltAarDescriptionArg.Builder addDeps(BuildTarget... elements)
deps
sortedSet.elements
- An array of deps elementsthis
builder for use in a chained invocationpublic final AndroidPrebuiltAarDescriptionArg.Builder setDeps(Iterable<? extends BuildTarget> elements)
deps
sortedSet.elements
- An iterable of deps elementsthis
builder for use in a chained invocationpublic final AndroidPrebuiltAarDescriptionArg.Builder addAllDeps(Iterable<? extends BuildTarget> elements)
deps
sortedSet.elements
- An iterable of deps elementsthis
builder for use in a chained invocationpublic AndroidPrebuiltAarDescriptionArg build()
AndroidPrebuiltAarDescriptionArg
.IllegalStateException
- if any required attributes are missing