@NotThreadSafe public static final class AndroidAppModularityDescriptionArg.Builder extends Object
AndroidAppModularityDescriptionArg
.
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 AndroidAppModularityDescriptionArg.Builder from(HasApplicationModuleBlacklist instance)
com.facebook.buck.core.description.arg.HasApplicationModuleBlacklist
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final AndroidAppModularityDescriptionArg.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 AndroidAppModularityDescriptionArg.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 AndroidAppModularityDescriptionArg.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 AndroidAppModularityDescriptionArg.Builder from(AndroidAppModularityDescriptionArg instance)
AndroidAppModularityDescriptionArg
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final AndroidAppModularityDescriptionArg.Builder from(com.facebook.buck.android.AndroidAppModularityDescription.AbstractAndroidAppModularityDescriptionArg instance)
AbstractAndroidAppModularityDescriptionArg
instance into builder.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final AndroidAppModularityDescriptionArg.Builder putApplicationModuleConfigs(String key, com.google.common.collect.ImmutableList<BuildTarget> value)
applicationModuleConfigs
map.key
- The key in the applicationModuleConfigs mapvalue
- The associated value in the applicationModuleConfigs mapthis
builder for use in a chained invocationpublic final AndroidAppModularityDescriptionArg.Builder putApplicationModuleConfigs(Map.Entry<String,? extends com.google.common.collect.ImmutableList<BuildTarget>> entry)
applicationModuleConfigs
map. Nulls are not permittedentry
- The key and value entrythis
builder for use in a chained invocationpublic final AndroidAppModularityDescriptionArg.Builder setApplicationModuleConfigs(Map<String,? extends com.google.common.collect.ImmutableList<BuildTarget>> entries)
applicationModuleConfigs
map. Nulls are not permittedentries
- The entries that will be added to the applicationModuleConfigs mapthis
builder for use in a chained invocationpublic final AndroidAppModularityDescriptionArg.Builder putAllApplicationModuleConfigs(Map<String,? extends com.google.common.collect.ImmutableList<BuildTarget>> entries)
applicationModuleConfigs
map. Nulls are not permittedentries
- The entries that will be added to the applicationModuleConfigs mapthis
builder for use in a chained invocationpublic final AndroidAppModularityDescriptionArg.Builder setApplicationModuleDependencies(com.google.common.collect.ImmutableMap<String,com.google.common.collect.ImmutableList<String>> applicationModuleDependencies)
applicationModuleDependencies
to applicationModuleDependencies.applicationModuleDependencies
- The value for applicationModuleDependenciesthis
builder for chained invocationpublic final AndroidAppModularityDescriptionArg.Builder setApplicationModuleDependencies(Optional<? extends com.google.common.collect.ImmutableMap<String,com.google.common.collect.ImmutableList<String>>> applicationModuleDependencies)
applicationModuleDependencies
to applicationModuleDependencies.applicationModuleDependencies
- The value for applicationModuleDependenciesthis
builder for use in a chained invocationpublic final AndroidAppModularityDescriptionArg.Builder addNoDx(BuildTarget element)
noDx
set.element
- A noDx elementthis
builder for use in a chained invocationpublic final AndroidAppModularityDescriptionArg.Builder addNoDx(BuildTarget... elements)
noDx
set.elements
- An array of noDx elementsthis
builder for use in a chained invocationpublic final AndroidAppModularityDescriptionArg.Builder setNoDx(Iterable<? extends BuildTarget> elements)
noDx
set.elements
- An iterable of noDx elementsthis
builder for use in a chained invocationpublic final AndroidAppModularityDescriptionArg.Builder addAllNoDx(Iterable<? extends BuildTarget> elements)
noDx
set.elements
- An iterable of noDx elementsthis
builder for use in a chained invocationpublic final AndroidAppModularityDescriptionArg.Builder setShouldIncludeClasses(boolean shouldIncludeClasses)
shouldIncludeClasses
attribute.
If not set, this attribute will have a default value as returned by the initializer of shouldIncludeClasses
.
shouldIncludeClasses
- The value for shouldIncludeClassesthis
builder for use in a chained invocationpublic final AndroidAppModularityDescriptionArg.Builder setShouldIncludeLibraries(boolean shouldIncludeLibraries)
shouldIncludeLibraries
attribute.
If not set, this attribute will have a default value as returned by the initializer of shouldIncludeLibraries
.
shouldIncludeLibraries
- The value for shouldIncludeLibrariesthis
builder for use in a chained invocationpublic final AndroidAppModularityDescriptionArg.Builder addLicenses(SourcePath element)
licenses
set.element
- A licenses elementthis
builder for use in a chained invocationpublic final AndroidAppModularityDescriptionArg.Builder addLicenses(SourcePath... elements)
licenses
set.elements
- An array of licenses elementsthis
builder for use in a chained invocationpublic final AndroidAppModularityDescriptionArg.Builder setLicenses(Iterable<? extends SourcePath> elements)
licenses
set.elements
- An iterable of licenses elementsthis
builder for use in a chained invocationpublic final AndroidAppModularityDescriptionArg.Builder addAllLicenses(Iterable<? extends SourcePath> elements)
licenses
set.elements
- An iterable of licenses elementsthis
builder for use in a chained invocationpublic final AndroidAppModularityDescriptionArg.Builder addLabels(String element)
labels
sortedSet.element
- A labels elementthis
builder for use in a chained invocationpublic final AndroidAppModularityDescriptionArg.Builder addLabels(String... elements)
labels
sortedSet.elements
- An array of labels elementsthis
builder for use in a chained invocationpublic final AndroidAppModularityDescriptionArg.Builder setLabels(Iterable<String> elements)
labels
sortedSet.elements
- An iterable of labels elementsthis
builder for use in a chained invocationpublic final AndroidAppModularityDescriptionArg.Builder addAllLabels(Iterable<String> elements)
labels
sortedSet.elements
- An iterable of labels elementsthis
builder for use in a chained invocationpublic final AndroidAppModularityDescriptionArg.Builder setDefaultTargetPlatform(UnconfiguredBuildTarget defaultTargetPlatform)
defaultTargetPlatform
to defaultTargetPlatform.defaultTargetPlatform
- The value for defaultTargetPlatformthis
builder for chained invocationpublic final AndroidAppModularityDescriptionArg.Builder setDefaultTargetPlatform(Optional<? extends UnconfiguredBuildTarget> defaultTargetPlatform)
defaultTargetPlatform
to defaultTargetPlatform.defaultTargetPlatform
- The value for defaultTargetPlatformthis
builder for use in a chained invocationpublic final AndroidAppModularityDescriptionArg.Builder addCompatibleWith(UnconfiguredBuildTarget element)
compatibleWith
list.element
- A compatibleWith elementthis
builder for use in a chained invocationpublic final AndroidAppModularityDescriptionArg.Builder addCompatibleWith(UnconfiguredBuildTarget... elements)
compatibleWith
list.elements
- An array of compatibleWith elementsthis
builder for use in a chained invocationpublic final AndroidAppModularityDescriptionArg.Builder setCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
compatibleWith
list.elements
- An iterable of compatibleWith elementsthis
builder for use in a chained invocationpublic final AndroidAppModularityDescriptionArg.Builder addAllCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
compatibleWith
list.elements
- An iterable of compatibleWith elementsthis
builder for use in a chained invocationpublic final AndroidAppModularityDescriptionArg.Builder setName(String name)
name
attribute.name
- The value for namethis
builder for use in a chained invocationpublic final AndroidAppModularityDescriptionArg.Builder addDeps(BuildTarget element)
deps
sortedSet.element
- A deps elementthis
builder for use in a chained invocationpublic final AndroidAppModularityDescriptionArg.Builder addDeps(BuildTarget... elements)
deps
sortedSet.elements
- An array of deps elementsthis
builder for use in a chained invocationpublic final AndroidAppModularityDescriptionArg.Builder setDeps(Iterable<? extends BuildTarget> elements)
deps
sortedSet.elements
- An iterable of deps elementsthis
builder for use in a chained invocationpublic final AndroidAppModularityDescriptionArg.Builder addAllDeps(Iterable<? extends BuildTarget> elements)
deps
sortedSet.elements
- An iterable of deps elementsthis
builder for use in a chained invocationpublic final AndroidAppModularityDescriptionArg.Builder setApplicationModuleBlacklist(List<Query> applicationModuleBlacklist)
applicationModuleBlacklist
to applicationModuleBlacklist.applicationModuleBlacklist
- The value for applicationModuleBlacklistthis
builder for chained invocationpublic final AndroidAppModularityDescriptionArg.Builder setApplicationModuleBlacklist(Optional<? extends List<Query>> applicationModuleBlacklist)
applicationModuleBlacklist
to applicationModuleBlacklist.applicationModuleBlacklist
- The value for applicationModuleBlacklistthis
builder for use in a chained invocationpublic AndroidAppModularityDescriptionArg build()
AndroidAppModularityDescriptionArg
.IllegalStateException
- if any required attributes are missing