@NotThreadSafe public static final class PythonBinaryDescriptionArg.Builder extends Object
PythonBinaryDescriptionArg
.
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 PythonBinaryDescriptionArg.Builder from(HasVersionUniverse instance)
com.facebook.buck.versions.HasVersionUniverse
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final PythonBinaryDescriptionArg.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 PythonBinaryDescriptionArg.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 PythonBinaryDescriptionArg.Builder from(PythonBinaryDescriptionArg instance)
PythonBinaryDescriptionArg
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final PythonBinaryDescriptionArg.Builder from(com.facebook.buck.features.python.PythonBinaryDescription.AbstractPythonBinaryDescriptionArg instance)
AbstractPythonBinaryDescriptionArg
instance into builder.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final PythonBinaryDescriptionArg.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 PythonBinaryDescriptionArg.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 PythonBinaryDescriptionArg.Builder setMain(SourcePath main)
main
to main.main
- The value for mainthis
builder for chained invocationpublic final PythonBinaryDescriptionArg.Builder setMain(Optional<? extends SourcePath> main)
main
to main.main
- The value for mainthis
builder for use in a chained invocationpublic final PythonBinaryDescriptionArg.Builder setMainModule(String mainModule)
mainModule
to mainModule.mainModule
- The value for mainModulethis
builder for chained invocationpublic final PythonBinaryDescriptionArg.Builder setMainModule(Optional<String> mainModule)
mainModule
to mainModule.mainModule
- The value for mainModulethis
builder for use in a chained invocationpublic final PythonBinaryDescriptionArg.Builder setPlatformDeps(PatternMatchedCollection<com.google.common.collect.ImmutableSortedSet<BuildTarget>> platformDeps)
platformDeps
attribute.
If not set, this attribute will have a default value as returned by the initializer of platformDeps
.
platformDeps
- The value for platformDepsthis
builder for use in a chained invocationpublic final PythonBinaryDescriptionArg.Builder setBaseModule(String baseModule)
baseModule
to baseModule.baseModule
- The value for baseModulethis
builder for chained invocationpublic final PythonBinaryDescriptionArg.Builder setBaseModule(Optional<String> baseModule)
baseModule
to baseModule.baseModule
- The value for baseModulethis
builder for use in a chained invocationpublic final PythonBinaryDescriptionArg.Builder setZipSafe(boolean zipSafe)
zipSafe
to zipSafe.zipSafe
- The value for zipSafethis
builder for chained invocationpublic final PythonBinaryDescriptionArg.Builder setZipSafe(Optional<Boolean> zipSafe)
zipSafe
to zipSafe.zipSafe
- The value for zipSafethis
builder for use in a chained invocationpublic final PythonBinaryDescriptionArg.Builder addBuildArgs(StringWithMacros element)
buildArgs
list.element
- A buildArgs elementthis
builder for use in a chained invocationpublic final PythonBinaryDescriptionArg.Builder addBuildArgs(StringWithMacros... elements)
buildArgs
list.elements
- An array of buildArgs elementsthis
builder for use in a chained invocationpublic final PythonBinaryDescriptionArg.Builder setBuildArgs(Iterable<? extends StringWithMacros> elements)
buildArgs
list.elements
- An iterable of buildArgs elementsthis
builder for use in a chained invocationpublic final PythonBinaryDescriptionArg.Builder addAllBuildArgs(Iterable<? extends StringWithMacros> elements)
buildArgs
list.elements
- An iterable of buildArgs elementsthis
builder for use in a chained invocationpublic final PythonBinaryDescriptionArg.Builder setPlatform(String platform)
platform
to platform.platform
- The value for platformthis
builder for chained invocationpublic final PythonBinaryDescriptionArg.Builder setPlatform(Optional<String> platform)
platform
to platform.platform
- The value for platformthis
builder for use in a chained invocationpublic final PythonBinaryDescriptionArg.Builder setCxxPlatform(Flavor cxxPlatform)
cxxPlatform
to cxxPlatform.cxxPlatform
- The value for cxxPlatformthis
builder for chained invocationpublic final PythonBinaryDescriptionArg.Builder setCxxPlatform(Optional<? extends Flavor> cxxPlatform)
cxxPlatform
to cxxPlatform.cxxPlatform
- The value for cxxPlatformthis
builder for use in a chained invocationpublic final PythonBinaryDescriptionArg.Builder setPackageStyle(PythonBuckConfig.PackageStyle packageStyle)
packageStyle
to packageStyle.packageStyle
- The value for packageStylethis
builder for chained invocationpublic final PythonBinaryDescriptionArg.Builder setPackageStyle(Optional<? extends PythonBuckConfig.PackageStyle> packageStyle)
packageStyle
to packageStyle.packageStyle
- The value for packageStylethis
builder for use in a chained invocationpublic final PythonBinaryDescriptionArg.Builder addPreloadDeps(BuildTarget element)
preloadDeps
set.element
- A preloadDeps elementthis
builder for use in a chained invocationpublic final PythonBinaryDescriptionArg.Builder addPreloadDeps(BuildTarget... elements)
preloadDeps
set.elements
- An array of preloadDeps elementsthis
builder for use in a chained invocationpublic final PythonBinaryDescriptionArg.Builder setPreloadDeps(Iterable<? extends BuildTarget> elements)
preloadDeps
set.elements
- An iterable of preloadDeps elementsthis
builder for use in a chained invocationpublic final PythonBinaryDescriptionArg.Builder addAllPreloadDeps(Iterable<? extends BuildTarget> elements)
preloadDeps
set.elements
- An iterable of preloadDeps elementsthis
builder for use in a chained invocationpublic final PythonBinaryDescriptionArg.Builder addLinkerFlags(StringWithMacros element)
linkerFlags
list.element
- A linkerFlags elementthis
builder for use in a chained invocationpublic final PythonBinaryDescriptionArg.Builder addLinkerFlags(StringWithMacros... elements)
linkerFlags
list.elements
- An array of linkerFlags elementsthis
builder for use in a chained invocationpublic final PythonBinaryDescriptionArg.Builder setLinkerFlags(Iterable<? extends StringWithMacros> elements)
linkerFlags
list.elements
- An iterable of linkerFlags elementsthis
builder for use in a chained invocationpublic final PythonBinaryDescriptionArg.Builder addAllLinkerFlags(Iterable<? extends StringWithMacros> elements)
linkerFlags
list.elements
- An iterable of linkerFlags elementsthis
builder for use in a chained invocationpublic final PythonBinaryDescriptionArg.Builder setExtension(String extension)
extension
to extension.extension
- The value for extensionthis
builder for chained invocationpublic final PythonBinaryDescriptionArg.Builder setExtension(Optional<String> extension)
extension
to extension.extension
- The value for extensionthis
builder for use in a chained invocationpublic final PythonBinaryDescriptionArg.Builder setCompile(boolean compile)
compile
to compile.compile
- The value for compilethis
builder for chained invocationpublic final PythonBinaryDescriptionArg.Builder setCompile(Optional<Boolean> compile)
compile
to compile.compile
- The value for compilethis
builder for use in a chained invocationpublic final PythonBinaryDescriptionArg.Builder addCompatibleWith(UnconfiguredBuildTarget element)
compatibleWith
list.element
- A compatibleWith elementthis
builder for use in a chained invocationpublic final PythonBinaryDescriptionArg.Builder addCompatibleWith(UnconfiguredBuildTarget... elements)
compatibleWith
list.elements
- An array of compatibleWith elementsthis
builder for use in a chained invocationpublic final PythonBinaryDescriptionArg.Builder setCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
compatibleWith
list.elements
- An iterable of compatibleWith elementsthis
builder for use in a chained invocationpublic final PythonBinaryDescriptionArg.Builder addAllCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
compatibleWith
list.elements
- An iterable of compatibleWith elementsthis
builder for use in a chained invocationpublic final PythonBinaryDescriptionArg.Builder setDefaultTargetPlatform(UnconfiguredBuildTarget defaultTargetPlatform)
defaultTargetPlatform
to defaultTargetPlatform.defaultTargetPlatform
- The value for defaultTargetPlatformthis
builder for chained invocationpublic final PythonBinaryDescriptionArg.Builder setDefaultTargetPlatform(Optional<? extends UnconfiguredBuildTarget> defaultTargetPlatform)
defaultTargetPlatform
to defaultTargetPlatform.defaultTargetPlatform
- The value for defaultTargetPlatformthis
builder for use in a chained invocationpublic final PythonBinaryDescriptionArg.Builder addLabels(String element)
labels
sortedSet.element
- A labels elementthis
builder for use in a chained invocationpublic final PythonBinaryDescriptionArg.Builder addLabels(String... elements)
labels
sortedSet.elements
- An array of labels elementsthis
builder for use in a chained invocationpublic final PythonBinaryDescriptionArg.Builder setLabels(Iterable<String> elements)
labels
sortedSet.elements
- An iterable of labels elementsthis
builder for use in a chained invocationpublic final PythonBinaryDescriptionArg.Builder addAllLabels(Iterable<String> elements)
labels
sortedSet.elements
- An iterable of labels elementsthis
builder for use in a chained invocationpublic final PythonBinaryDescriptionArg.Builder addLicenses(SourcePath element)
licenses
set.element
- A licenses elementthis
builder for use in a chained invocationpublic final PythonBinaryDescriptionArg.Builder addLicenses(SourcePath... elements)
licenses
set.elements
- An array of licenses elementsthis
builder for use in a chained invocationpublic final PythonBinaryDescriptionArg.Builder setLicenses(Iterable<? extends SourcePath> elements)
licenses
set.elements
- An iterable of licenses elementsthis
builder for use in a chained invocationpublic final PythonBinaryDescriptionArg.Builder addAllLicenses(Iterable<? extends SourcePath> elements)
licenses
set.elements
- An iterable of licenses elementsthis
builder for use in a chained invocationpublic final PythonBinaryDescriptionArg.Builder setName(String name)
name
attribute.name
- The value for namethis
builder for use in a chained invocationpublic final PythonBinaryDescriptionArg.Builder addDeps(BuildTarget element)
deps
sortedSet.element
- A deps elementthis
builder for use in a chained invocationpublic final PythonBinaryDescriptionArg.Builder addDeps(BuildTarget... elements)
deps
sortedSet.elements
- An array of deps elementsthis
builder for use in a chained invocationpublic final PythonBinaryDescriptionArg.Builder setDeps(Iterable<? extends BuildTarget> elements)
deps
sortedSet.elements
- An iterable of deps elementsthis
builder for use in a chained invocationpublic final PythonBinaryDescriptionArg.Builder addAllDeps(Iterable<? extends BuildTarget> elements)
deps
sortedSet.elements
- An iterable of deps elementsthis
builder for use in a chained invocationpublic final PythonBinaryDescriptionArg.Builder addTests(BuildTarget element)
tests
sortedSet.element
- A tests elementthis
builder for use in a chained invocationpublic final PythonBinaryDescriptionArg.Builder addTests(BuildTarget... elements)
tests
sortedSet.elements
- An array of tests elementsthis
builder for use in a chained invocationpublic final PythonBinaryDescriptionArg.Builder setTests(Iterable<? extends BuildTarget> elements)
tests
sortedSet.elements
- An iterable of tests elementsthis
builder for use in a chained invocationpublic final PythonBinaryDescriptionArg.Builder addAllTests(Iterable<? extends BuildTarget> elements)
tests
sortedSet.elements
- An iterable of tests elementsthis
builder for use in a chained invocationpublic final PythonBinaryDescriptionArg.Builder setVersionUniverse(String versionUniverse)
versionUniverse
to versionUniverse.versionUniverse
- The value for versionUniversethis
builder for chained invocationpublic final PythonBinaryDescriptionArg.Builder setVersionUniverse(Optional<String> versionUniverse)
versionUniverse
to versionUniverse.versionUniverse
- The value for versionUniversethis
builder for use in a chained invocationpublic PythonBinaryDescriptionArg build()
PythonBinaryDescriptionArg
.IllegalStateException
- if any required attributes are missing