@NotThreadSafe public static final class ApkGenruleDescriptionArg.Builder extends Object
ApkGenruleDescriptionArg.
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.
| Modifier and Type | Method and Description |
|---|---|
ApkGenruleDescriptionArg.Builder |
addAllCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
Adds elements to
compatibleWith list. |
ApkGenruleDescriptionArg.Builder |
addAllLabels(Iterable<String> elements)
Adds elements to
labels sortedSet. |
ApkGenruleDescriptionArg.Builder |
addAllLicenses(Iterable<? extends SourcePath> elements)
Adds elements to
licenses set. |
ApkGenruleDescriptionArg.Builder |
addAllTests(Iterable<? extends BuildTarget> elements)
Adds elements to
tests sortedSet. |
ApkGenruleDescriptionArg.Builder |
addCompatibleWith(UnconfiguredBuildTarget... elements)
Adds elements to
compatibleWith list. |
ApkGenruleDescriptionArg.Builder |
addCompatibleWith(UnconfiguredBuildTarget element)
Adds one element to
compatibleWith list. |
ApkGenruleDescriptionArg.Builder |
addLabels(String... elements)
Adds elements to
labels sortedSet. |
ApkGenruleDescriptionArg.Builder |
addLabels(String element)
Adds one element to
labels sortedSet. |
ApkGenruleDescriptionArg.Builder |
addLicenses(SourcePath... elements)
Adds elements to
licenses set. |
ApkGenruleDescriptionArg.Builder |
addLicenses(SourcePath element)
Adds one element to
licenses set. |
ApkGenruleDescriptionArg.Builder |
addTests(BuildTarget... elements)
Adds elements to
tests sortedSet. |
ApkGenruleDescriptionArg.Builder |
addTests(BuildTarget element)
Adds one element to
tests sortedSet. |
ApkGenruleDescriptionArg |
build()
Builds a new
ApkGenruleDescriptionArg. |
ApkGenruleDescriptionArg.Builder |
from(AbstractGenruleDescription.CommonArg instance)
Fill a builder with attribute values from the provided
com.facebook.buck.shell.AbstractGenruleDescription.CommonArg instance. |
ApkGenruleDescriptionArg.Builder |
from(com.facebook.buck.android.ApkGenruleDescription.AbstractApkGenruleDescriptionArg instance)
Copy abstract value type
AbstractApkGenruleDescriptionArg instance into builder. |
ApkGenruleDescriptionArg.Builder |
from(ApkGenruleDescriptionArg instance)
Fill a builder with attribute values from the provided
ApkGenruleDescriptionArg instance. |
ApkGenruleDescriptionArg.Builder |
from(BuildRuleArg instance)
Fill a builder with attribute values from the provided
com.facebook.buck.core.description.arg.BuildRuleArg instance. |
ApkGenruleDescriptionArg.Builder |
from(ConstructorArg instance)
Fill a builder with attribute values from the provided
com.facebook.buck.core.description.arg.ConstructorArg instance. |
ApkGenruleDescriptionArg.Builder |
from(HasTests instance)
Fill a builder with attribute values from the provided
com.facebook.buck.core.description.arg.HasTests instance. |
ApkGenruleDescriptionArg.Builder |
setApk(BuildTarget apk)
Initializes the value for the
apk attribute. |
ApkGenruleDescriptionArg.Builder |
setBash(Optional<? extends StringWithMacros> bash)
Initializes the optional value
bash to bash. |
ApkGenruleDescriptionArg.Builder |
setBash(StringWithMacros bash)
Initializes the optional value
bash to bash. |
ApkGenruleDescriptionArg.Builder |
setCacheable(boolean cacheable)
Initializes the optional value
cacheable to cacheable. |
ApkGenruleDescriptionArg.Builder |
setCacheable(Optional<Boolean> cacheable)
Initializes the optional value
cacheable to cacheable. |
ApkGenruleDescriptionArg.Builder |
setCmd(Optional<? extends StringWithMacros> cmd)
Initializes the optional value
cmd to cmd. |
ApkGenruleDescriptionArg.Builder |
setCmd(StringWithMacros cmd)
Initializes the optional value
cmd to cmd. |
ApkGenruleDescriptionArg.Builder |
setCmdExe(Optional<? extends StringWithMacros> cmdExe)
Initializes the optional value
cmdExe to cmdExe. |
ApkGenruleDescriptionArg.Builder |
setCmdExe(StringWithMacros cmdExe)
Initializes the optional value
cmdExe to cmdExe. |
ApkGenruleDescriptionArg.Builder |
setCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
Sets or replaces all elements for
compatibleWith list. |
ApkGenruleDescriptionArg.Builder |
setDefaultTargetPlatform(Optional<? extends UnconfiguredBuildTarget> defaultTargetPlatform)
Initializes the optional value
defaultTargetPlatform to defaultTargetPlatform. |
ApkGenruleDescriptionArg.Builder |
setDefaultTargetPlatform(UnconfiguredBuildTarget defaultTargetPlatform)
Initializes the optional value
defaultTargetPlatform to defaultTargetPlatform. |
ApkGenruleDescriptionArg.Builder |
setEnableSandbox(boolean enableSandbox)
Initializes the optional value
enableSandbox to enableSandbox. |
ApkGenruleDescriptionArg.Builder |
setEnableSandbox(Optional<Boolean> enableSandbox)
Initializes the optional value
enableSandbox to enableSandbox. |
ApkGenruleDescriptionArg.Builder |
setEnvironmentExpansionSeparator(Optional<String> environmentExpansionSeparator)
Initializes the optional value
environmentExpansionSeparator to environmentExpansionSeparator. |
ApkGenruleDescriptionArg.Builder |
setEnvironmentExpansionSeparator(String environmentExpansionSeparator)
Initializes the optional value
environmentExpansionSeparator to environmentExpansionSeparator. |
ApkGenruleDescriptionArg.Builder |
setIsCacheable(boolean isCacheable)
Initializes the value for the
isCacheable attribute. |
ApkGenruleDescriptionArg.Builder |
setLabels(Iterable<String> elements)
Sets or replaces all elements for
labels sortedSet. |
ApkGenruleDescriptionArg.Builder |
setLicenses(Iterable<? extends SourcePath> elements)
Sets or replaces all elements for
licenses set. |
ApkGenruleDescriptionArg.Builder |
setName(String name)
Initializes the value for the
name attribute. |
ApkGenruleDescriptionArg.Builder |
setNeedAndroidTools(boolean needAndroidTools)
Initializes the value for the
needAndroidTools attribute. |
ApkGenruleDescriptionArg.Builder |
setOut(Optional<String> out)
Initializes the optional value
out to out. |
ApkGenruleDescriptionArg.Builder |
setOut(String out)
Initializes the optional value
out to out. |
ApkGenruleDescriptionArg.Builder |
setRemote(boolean remote)
Initializes the optional value
remote to remote. |
ApkGenruleDescriptionArg.Builder |
setRemote(Optional<Boolean> remote)
Initializes the optional value
remote to remote. |
ApkGenruleDescriptionArg.Builder |
setSrcs(SourceSet srcs)
Initializes the value for the
srcs attribute. |
ApkGenruleDescriptionArg.Builder |
setTests(Iterable<? extends BuildTarget> elements)
Sets or replaces all elements for
tests sortedSet. |
public final ApkGenruleDescriptionArg.Builder from(ApkGenruleDescriptionArg instance)
ApkGenruleDescriptionArg instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ApkGenruleDescriptionArg.Builder from(com.facebook.buck.android.ApkGenruleDescription.AbstractApkGenruleDescriptionArg instance)
AbstractApkGenruleDescriptionArg instance into builder.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ApkGenruleDescriptionArg.Builder from(HasTests instance)
com.facebook.buck.core.description.arg.HasTests instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ApkGenruleDescriptionArg.Builder from(AbstractGenruleDescription.CommonArg instance)
com.facebook.buck.shell.AbstractGenruleDescription.CommonArg instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ApkGenruleDescriptionArg.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 ApkGenruleDescriptionArg.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 ApkGenruleDescriptionArg.Builder setOut(String out)
out to out.out - The value for outthis builder for chained invocationpublic final ApkGenruleDescriptionArg.Builder setOut(Optional<String> out)
out to out.out - The value for outthis builder for use in a chained invocationpublic final ApkGenruleDescriptionArg.Builder setApk(BuildTarget apk)
apk attribute.apk - The value for apkthis builder for use in a chained invocationpublic final ApkGenruleDescriptionArg.Builder setIsCacheable(boolean isCacheable)
isCacheable attribute.
If not set, this attribute will have a default value as returned by the initializer of isCacheable.
isCacheable - The value for isCacheablethis builder for use in a chained invocationpublic final ApkGenruleDescriptionArg.Builder setBash(StringWithMacros bash)
bash to bash.bash - The value for bashthis builder for chained invocationpublic final ApkGenruleDescriptionArg.Builder setBash(Optional<? extends StringWithMacros> bash)
bash to bash.bash - The value for bashthis builder for use in a chained invocationpublic final ApkGenruleDescriptionArg.Builder setCmd(StringWithMacros cmd)
cmd to cmd.cmd - The value for cmdthis builder for chained invocationpublic final ApkGenruleDescriptionArg.Builder setCmd(Optional<? extends StringWithMacros> cmd)
cmd to cmd.cmd - The value for cmdthis builder for use in a chained invocationpublic final ApkGenruleDescriptionArg.Builder setCmdExe(StringWithMacros cmdExe)
cmdExe to cmdExe.cmdExe - The value for cmdExethis builder for chained invocationpublic final ApkGenruleDescriptionArg.Builder setCmdExe(Optional<? extends StringWithMacros> cmdExe)
cmdExe to cmdExe.cmdExe - The value for cmdExethis builder for use in a chained invocationpublic final ApkGenruleDescriptionArg.Builder setSrcs(SourceSet srcs)
srcs attribute.
If not set, this attribute will have a default value as returned by the initializer of srcs.
srcs - The value for srcsthis builder for use in a chained invocationpublic final ApkGenruleDescriptionArg.Builder setEnableSandbox(boolean enableSandbox)
enableSandbox to enableSandbox.enableSandbox - The value for enableSandboxthis builder for chained invocationpublic final ApkGenruleDescriptionArg.Builder setEnableSandbox(Optional<Boolean> enableSandbox)
enableSandbox to enableSandbox.enableSandbox - The value for enableSandboxthis builder for use in a chained invocationpublic final ApkGenruleDescriptionArg.Builder setEnvironmentExpansionSeparator(String environmentExpansionSeparator)
environmentExpansionSeparator to environmentExpansionSeparator.environmentExpansionSeparator - The value for environmentExpansionSeparatorthis builder for chained invocationpublic final ApkGenruleDescriptionArg.Builder setEnvironmentExpansionSeparator(Optional<String> environmentExpansionSeparator)
environmentExpansionSeparator to environmentExpansionSeparator.environmentExpansionSeparator - The value for environmentExpansionSeparatorthis builder for use in a chained invocationpublic final ApkGenruleDescriptionArg.Builder setRemote(boolean remote)
remote to remote.remote - The value for remotethis builder for chained invocationpublic final ApkGenruleDescriptionArg.Builder setRemote(Optional<Boolean> remote)
remote to remote.remote - The value for remotethis builder for use in a chained invocationpublic final ApkGenruleDescriptionArg.Builder setCacheable(boolean cacheable)
cacheable to cacheable.cacheable - The value for cacheablethis builder for chained invocationpublic final ApkGenruleDescriptionArg.Builder setCacheable(Optional<Boolean> cacheable)
cacheable to cacheable.cacheable - The value for cacheablethis builder for use in a chained invocationpublic final ApkGenruleDescriptionArg.Builder setNeedAndroidTools(boolean needAndroidTools)
needAndroidTools attribute.
If not set, this attribute will have a default value as returned by the initializer of needAndroidTools.
needAndroidTools - The value for needAndroidToolsthis builder for use in a chained invocationpublic final ApkGenruleDescriptionArg.Builder addLicenses(SourcePath element)
licenses set.element - A licenses elementthis builder for use in a chained invocationpublic final ApkGenruleDescriptionArg.Builder addLicenses(SourcePath... elements)
licenses set.elements - An array of licenses elementsthis builder for use in a chained invocationpublic final ApkGenruleDescriptionArg.Builder setLicenses(Iterable<? extends SourcePath> elements)
licenses set.elements - An iterable of licenses elementsthis builder for use in a chained invocationpublic final ApkGenruleDescriptionArg.Builder addAllLicenses(Iterable<? extends SourcePath> elements)
licenses set.elements - An iterable of licenses elementsthis builder for use in a chained invocationpublic final ApkGenruleDescriptionArg.Builder addLabels(String element)
labels sortedSet.element - A labels elementthis builder for use in a chained invocationpublic final ApkGenruleDescriptionArg.Builder addLabels(String... elements)
labels sortedSet.elements - An array of labels elementsthis builder for use in a chained invocationpublic final ApkGenruleDescriptionArg.Builder setLabels(Iterable<String> elements)
labels sortedSet.elements - An iterable of labels elementsthis builder for use in a chained invocationpublic final ApkGenruleDescriptionArg.Builder addAllLabels(Iterable<String> elements)
labels sortedSet.elements - An iterable of labels elementsthis builder for use in a chained invocationpublic final ApkGenruleDescriptionArg.Builder setDefaultTargetPlatform(UnconfiguredBuildTarget defaultTargetPlatform)
defaultTargetPlatform to defaultTargetPlatform.defaultTargetPlatform - The value for defaultTargetPlatformthis builder for chained invocationpublic final ApkGenruleDescriptionArg.Builder setDefaultTargetPlatform(Optional<? extends UnconfiguredBuildTarget> defaultTargetPlatform)
defaultTargetPlatform to defaultTargetPlatform.defaultTargetPlatform - The value for defaultTargetPlatformthis builder for use in a chained invocationpublic final ApkGenruleDescriptionArg.Builder addCompatibleWith(UnconfiguredBuildTarget element)
compatibleWith list.element - A compatibleWith elementthis builder for use in a chained invocationpublic final ApkGenruleDescriptionArg.Builder addCompatibleWith(UnconfiguredBuildTarget... elements)
compatibleWith list.elements - An array of compatibleWith elementsthis builder for use in a chained invocationpublic final ApkGenruleDescriptionArg.Builder setCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
compatibleWith list.elements - An iterable of compatibleWith elementsthis builder for use in a chained invocationpublic final ApkGenruleDescriptionArg.Builder addAllCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
compatibleWith list.elements - An iterable of compatibleWith elementsthis builder for use in a chained invocationpublic final ApkGenruleDescriptionArg.Builder setName(String name)
name attribute.name - The value for namethis builder for use in a chained invocationpublic final ApkGenruleDescriptionArg.Builder addTests(BuildTarget element)
tests sortedSet.element - A tests elementthis builder for use in a chained invocationpublic final ApkGenruleDescriptionArg.Builder addTests(BuildTarget... elements)
tests sortedSet.elements - An array of tests elementsthis builder for use in a chained invocationpublic final ApkGenruleDescriptionArg.Builder setTests(Iterable<? extends BuildTarget> elements)
tests sortedSet.elements - An iterable of tests elementsthis builder for use in a chained invocationpublic final ApkGenruleDescriptionArg.Builder addAllTests(Iterable<? extends BuildTarget> elements)
tests sortedSet.elements - An iterable of tests elementsthis builder for use in a chained invocationpublic ApkGenruleDescriptionArg build()
ApkGenruleDescriptionArg.IllegalStateException - if any required attributes are missing