@NotThreadSafe public static final class AndroidBuildConfigDescriptionArg.Builder extends Object
AndroidBuildConfigDescriptionArg
.
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 AndroidBuildConfigDescriptionArg.Builder from(AndroidBuildConfigDescriptionArg instance)
AndroidBuildConfigDescriptionArg
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final AndroidBuildConfigDescriptionArg.Builder from(com.facebook.buck.android.AndroidBuildConfigDescription.AbstractAndroidBuildConfigDescriptionArg instance)
AbstractAndroidBuildConfigDescriptionArg
instance into builder.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final AndroidBuildConfigDescriptionArg.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 AndroidBuildConfigDescriptionArg.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 AndroidBuildConfigDescriptionArg.Builder setPackage(String getPackage)
package
attribute.getPackage
- The value for getPackagethis
builder for use in a chained invocationpublic final AndroidBuildConfigDescriptionArg.Builder setValues(BuildConfigFields values)
values
attribute.
If not set, this attribute will have a default value as returned by the initializer of values
.
values
- The value for valuesthis
builder for use in a chained invocationpublic final AndroidBuildConfigDescriptionArg.Builder setValuesFile(SourcePath valuesFile)
valuesFile
to valuesFile.valuesFile
- The value for valuesFilethis
builder for chained invocationpublic final AndroidBuildConfigDescriptionArg.Builder setValuesFile(Optional<? extends SourcePath> valuesFile)
valuesFile
to valuesFile.valuesFile
- The value for valuesFilethis
builder for use in a chained invocationpublic final AndroidBuildConfigDescriptionArg.Builder addLicenses(SourcePath element)
licenses
set.element
- A licenses elementthis
builder for use in a chained invocationpublic final AndroidBuildConfigDescriptionArg.Builder addLicenses(SourcePath... elements)
licenses
set.elements
- An array of licenses elementsthis
builder for use in a chained invocationpublic final AndroidBuildConfigDescriptionArg.Builder setLicenses(Iterable<? extends SourcePath> elements)
licenses
set.elements
- An iterable of licenses elementsthis
builder for use in a chained invocationpublic final AndroidBuildConfigDescriptionArg.Builder addAllLicenses(Iterable<? extends SourcePath> elements)
licenses
set.elements
- An iterable of licenses elementsthis
builder for use in a chained invocationpublic final AndroidBuildConfigDescriptionArg.Builder addLabels(String element)
labels
sortedSet.element
- A labels elementthis
builder for use in a chained invocationpublic final AndroidBuildConfigDescriptionArg.Builder addLabels(String... elements)
labels
sortedSet.elements
- An array of labels elementsthis
builder for use in a chained invocationpublic final AndroidBuildConfigDescriptionArg.Builder setLabels(Iterable<String> elements)
labels
sortedSet.elements
- An iterable of labels elementsthis
builder for use in a chained invocationpublic final AndroidBuildConfigDescriptionArg.Builder addAllLabels(Iterable<String> elements)
labels
sortedSet.elements
- An iterable of labels elementsthis
builder for use in a chained invocationpublic final AndroidBuildConfigDescriptionArg.Builder setDefaultTargetPlatform(UnconfiguredBuildTarget defaultTargetPlatform)
defaultTargetPlatform
to defaultTargetPlatform.defaultTargetPlatform
- The value for defaultTargetPlatformthis
builder for chained invocationpublic final AndroidBuildConfigDescriptionArg.Builder setDefaultTargetPlatform(Optional<? extends UnconfiguredBuildTarget> defaultTargetPlatform)
defaultTargetPlatform
to defaultTargetPlatform.defaultTargetPlatform
- The value for defaultTargetPlatformthis
builder for use in a chained invocationpublic final AndroidBuildConfigDescriptionArg.Builder addCompatibleWith(UnconfiguredBuildTarget element)
compatibleWith
list.element
- A compatibleWith elementthis
builder for use in a chained invocationpublic final AndroidBuildConfigDescriptionArg.Builder addCompatibleWith(UnconfiguredBuildTarget... elements)
compatibleWith
list.elements
- An array of compatibleWith elementsthis
builder for use in a chained invocationpublic final AndroidBuildConfigDescriptionArg.Builder setCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
compatibleWith
list.elements
- An iterable of compatibleWith elementsthis
builder for use in a chained invocationpublic final AndroidBuildConfigDescriptionArg.Builder addAllCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
compatibleWith
list.elements
- An iterable of compatibleWith elementsthis
builder for use in a chained invocationpublic final AndroidBuildConfigDescriptionArg.Builder setName(String name)
name
attribute.name
- The value for namethis
builder for use in a chained invocationpublic AndroidBuildConfigDescriptionArg build()
AndroidBuildConfigDescriptionArg
.IllegalStateException
- if any required attributes are missing