@NotThreadSafe public static final class RustBinaryDescriptionArg.Builder extends Object
RustBinaryDescriptionArg
.
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 |
---|---|
RustBinaryDescriptionArg.Builder |
addAllCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
Adds elements to
compatibleWith list. |
RustBinaryDescriptionArg.Builder |
addAllDeps(Iterable<? extends BuildTarget> elements)
Adds elements to
deps sortedSet. |
RustBinaryDescriptionArg.Builder |
addAllFeatures(Iterable<String> elements)
Adds elements to
features sortedSet. |
RustBinaryDescriptionArg.Builder |
addAllLabels(Iterable<String> elements)
Adds elements to
labels sortedSet. |
RustBinaryDescriptionArg.Builder |
addAllLicenses(Iterable<? extends SourcePath> elements)
Adds elements to
licenses set. |
RustBinaryDescriptionArg.Builder |
addAllLinkerFlags(Iterable<? extends StringWithMacros> elements)
Adds elements to
linkerFlags list. |
RustBinaryDescriptionArg.Builder |
addAllRustcFlags(Iterable<? extends StringWithMacros> elements)
Adds elements to
rustcFlags list. |
RustBinaryDescriptionArg.Builder |
addAllSrcs(Iterable<? extends SourcePath> elements)
Adds elements to
srcs sortedSet. |
RustBinaryDescriptionArg.Builder |
addAllTests(Iterable<? extends BuildTarget> elements)
Adds elements to
tests sortedSet. |
RustBinaryDescriptionArg.Builder |
addCompatibleWith(UnconfiguredBuildTarget... elements)
Adds elements to
compatibleWith list. |
RustBinaryDescriptionArg.Builder |
addCompatibleWith(UnconfiguredBuildTarget element)
Adds one element to
compatibleWith list. |
RustBinaryDescriptionArg.Builder |
addDeps(BuildTarget... elements)
Adds elements to
deps sortedSet. |
RustBinaryDescriptionArg.Builder |
addDeps(BuildTarget element)
Adds one element to
deps sortedSet. |
RustBinaryDescriptionArg.Builder |
addFeatures(String... elements)
Adds elements to
features sortedSet. |
RustBinaryDescriptionArg.Builder |
addFeatures(String element)
Adds one element to
features sortedSet. |
RustBinaryDescriptionArg.Builder |
addLabels(String... elements)
Adds elements to
labels sortedSet. |
RustBinaryDescriptionArg.Builder |
addLabels(String element)
Adds one element to
labels sortedSet. |
RustBinaryDescriptionArg.Builder |
addLicenses(SourcePath... elements)
Adds elements to
licenses set. |
RustBinaryDescriptionArg.Builder |
addLicenses(SourcePath element)
Adds one element to
licenses set. |
RustBinaryDescriptionArg.Builder |
addLinkerFlags(StringWithMacros... elements)
Adds elements to
linkerFlags list. |
RustBinaryDescriptionArg.Builder |
addLinkerFlags(StringWithMacros element)
Adds one element to
linkerFlags list. |
RustBinaryDescriptionArg.Builder |
addRustcFlags(StringWithMacros... elements)
Adds elements to
rustcFlags list. |
RustBinaryDescriptionArg.Builder |
addRustcFlags(StringWithMacros element)
Adds one element to
rustcFlags list. |
RustBinaryDescriptionArg.Builder |
addSrcs(SourcePath... elements)
Adds elements to
srcs sortedSet. |
RustBinaryDescriptionArg.Builder |
addSrcs(SourcePath element)
Adds one element to
srcs sortedSet. |
RustBinaryDescriptionArg.Builder |
addTests(BuildTarget... elements)
Adds elements to
tests sortedSet. |
RustBinaryDescriptionArg.Builder |
addTests(BuildTarget element)
Adds one element to
tests sortedSet. |
RustBinaryDescriptionArg |
build()
Builds a new
RustBinaryDescriptionArg . |
RustBinaryDescriptionArg.Builder |
from(BuildRuleArg instance)
Fill a builder with attribute values from the provided
com.facebook.buck.core.description.arg.BuildRuleArg instance. |
RustBinaryDescriptionArg.Builder |
from(ConstructorArg instance)
Fill a builder with attribute values from the provided
com.facebook.buck.core.description.arg.ConstructorArg instance. |
RustBinaryDescriptionArg.Builder |
from(HasDeclaredDeps instance)
Fill a builder with attribute values from the provided
com.facebook.buck.core.description.arg.HasDeclaredDeps instance. |
RustBinaryDescriptionArg.Builder |
from(HasDefaultPlatform instance)
Fill a builder with attribute values from the provided
com.facebook.buck.core.description.arg.HasDefaultPlatform instance. |
RustBinaryDescriptionArg.Builder |
from(HasNamedDeclaredDeps instance)
Fill a builder with attribute values from the provided
com.facebook.buck.features.rust.HasNamedDeclaredDeps instance. |
RustBinaryDescriptionArg.Builder |
from(HasSrcs instance)
Fill a builder with attribute values from the provided
com.facebook.buck.core.description.arg.HasSrcs instance. |
RustBinaryDescriptionArg.Builder |
from(HasTests instance)
Fill a builder with attribute values from the provided
com.facebook.buck.core.description.arg.HasTests instance. |
RustBinaryDescriptionArg.Builder |
from(HasVersionUniverse instance)
Fill a builder with attribute values from the provided
com.facebook.buck.versions.HasVersionUniverse instance. |
RustBinaryDescriptionArg.Builder |
from(com.facebook.buck.features.rust.RustBinaryDescription.AbstractRustBinaryDescriptionArg instance)
Copy abstract value type
AbstractRustBinaryDescriptionArg instance into builder. |
RustBinaryDescriptionArg.Builder |
from(RustBinaryDescriptionArg instance)
Fill a builder with attribute values from the provided
RustBinaryDescriptionArg instance. |
RustBinaryDescriptionArg.Builder |
from(RustCommonArgs instance)
Fill a builder with attribute values from the provided
com.facebook.buck.features.rust.RustCommonArgs instance. |
RustBinaryDescriptionArg.Builder |
putAllEnv(Map<String,? extends StringWithMacros> entries)
Put all mappings from the specified map as entries to
env map. |
RustBinaryDescriptionArg.Builder |
putAllMappedSrcs(Map<? extends SourcePath,? extends String> entries)
Put all mappings from the specified map as entries to
mappedSrcs map. |
RustBinaryDescriptionArg.Builder |
putAllNamedDeps(Map<String,? extends BuildTarget> entries)
Put all mappings from the specified map as entries to
namedDeps map. |
RustBinaryDescriptionArg.Builder |
putEnv(Map.Entry<String,? extends StringWithMacros> entry)
Put one entry to the
env map. |
RustBinaryDescriptionArg.Builder |
putEnv(String key,
StringWithMacros value)
Put one entry to the
env map. |
RustBinaryDescriptionArg.Builder |
putMappedSrcs(Map.Entry<? extends SourcePath,? extends String> entry)
Put one entry to the
mappedSrcs map. |
RustBinaryDescriptionArg.Builder |
putMappedSrcs(SourcePath key,
String value)
Put one entry to the
mappedSrcs map. |
RustBinaryDescriptionArg.Builder |
putNamedDeps(Map.Entry<String,? extends BuildTarget> entry)
Put one entry to the
namedDeps map. |
RustBinaryDescriptionArg.Builder |
putNamedDeps(String key,
BuildTarget value)
Put one entry to the
namedDeps map. |
RustBinaryDescriptionArg.Builder |
setCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
Sets or replaces all elements for
compatibleWith list. |
RustBinaryDescriptionArg.Builder |
setCrate(Optional<String> crate)
Initializes the optional value
crate to crate. |
RustBinaryDescriptionArg.Builder |
setCrate(String crate)
Initializes the optional value
crate to crate. |
RustBinaryDescriptionArg.Builder |
setCrateRoot(Optional<String> crateRoot)
Initializes the optional value
crateRoot to crateRoot. |
RustBinaryDescriptionArg.Builder |
setCrateRoot(String crateRoot)
Initializes the optional value
crateRoot to crateRoot. |
RustBinaryDescriptionArg.Builder |
setDefaultPlatform(Flavor defaultPlatform)
Initializes the optional value
defaultPlatform to defaultPlatform. |
RustBinaryDescriptionArg.Builder |
setDefaultPlatform(Optional<? extends Flavor> defaultPlatform)
Initializes the optional value
defaultPlatform to defaultPlatform. |
RustBinaryDescriptionArg.Builder |
setDefaultTargetPlatform(Optional<? extends UnconfiguredBuildTarget> defaultTargetPlatform)
Initializes the optional value
defaultTargetPlatform to defaultTargetPlatform. |
RustBinaryDescriptionArg.Builder |
setDefaultTargetPlatform(UnconfiguredBuildTarget defaultTargetPlatform)
Initializes the optional value
defaultTargetPlatform to defaultTargetPlatform. |
RustBinaryDescriptionArg.Builder |
setDeps(Iterable<? extends BuildTarget> elements)
Sets or replaces all elements for
deps sortedSet. |
RustBinaryDescriptionArg.Builder |
setEdition(Optional<String> edition)
Initializes the optional value
edition to edition. |
RustBinaryDescriptionArg.Builder |
setEdition(String edition)
Initializes the optional value
edition to edition. |
RustBinaryDescriptionArg.Builder |
setEnv(Map<String,? extends StringWithMacros> entries)
Sets or replaces all mappings from the specified map as entries for the
env map. |
RustBinaryDescriptionArg.Builder |
setFeatures(Iterable<String> elements)
Sets or replaces all elements for
features sortedSet. |
RustBinaryDescriptionArg.Builder |
setLabels(Iterable<String> elements)
Sets or replaces all elements for
labels sortedSet. |
RustBinaryDescriptionArg.Builder |
setLicenses(Iterable<? extends SourcePath> elements)
Sets or replaces all elements for
licenses set. |
RustBinaryDescriptionArg.Builder |
setLinkerFlags(Iterable<? extends StringWithMacros> elements)
Sets or replaces all elements for
linkerFlags list. |
RustBinaryDescriptionArg.Builder |
setLinkStyle(Linker.LinkableDepType linkStyle)
Initializes the optional value
linkStyle to linkStyle. |
RustBinaryDescriptionArg.Builder |
setLinkStyle(Optional<? extends Linker.LinkableDepType> linkStyle)
Initializes the optional value
linkStyle to linkStyle. |
RustBinaryDescriptionArg.Builder |
setMappedSrcs(Map<? extends SourcePath,? extends String> entries)
Sets or replaces all mappings from the specified map as entries for the
mappedSrcs map. |
RustBinaryDescriptionArg.Builder |
setName(String name)
Initializes the value for the
name attribute. |
RustBinaryDescriptionArg.Builder |
setNamedDeps(Map<String,? extends BuildTarget> entries)
Sets or replaces all mappings from the specified map as entries for the
namedDeps map. |
RustBinaryDescriptionArg.Builder |
setPlatformDeps(PatternMatchedCollection<com.google.common.collect.ImmutableSortedSet<BuildTarget>> platformDeps)
Initializes the value for the
platformDeps attribute. |
RustBinaryDescriptionArg.Builder |
setRpath(boolean rpath)
Initializes the value for the
rpath attribute. |
RustBinaryDescriptionArg.Builder |
setRustcFlags(Iterable<? extends StringWithMacros> elements)
Sets or replaces all elements for
rustcFlags list. |
RustBinaryDescriptionArg.Builder |
setSrcs(Iterable<? extends SourcePath> elements)
Sets or replaces all elements for
srcs sortedSet. |
RustBinaryDescriptionArg.Builder |
setTests(Iterable<? extends BuildTarget> elements)
Sets or replaces all elements for
tests sortedSet. |
RustBinaryDescriptionArg.Builder |
setVersionUniverse(Optional<String> versionUniverse)
Initializes the optional value
versionUniverse to versionUniverse. |
RustBinaryDescriptionArg.Builder |
setVersionUniverse(String versionUniverse)
Initializes the optional value
versionUniverse to versionUniverse. |
public final RustBinaryDescriptionArg.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 RustBinaryDescriptionArg.Builder from(HasNamedDeclaredDeps instance)
com.facebook.buck.features.rust.HasNamedDeclaredDeps
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final RustBinaryDescriptionArg.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 RustBinaryDescriptionArg.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 RustBinaryDescriptionArg.Builder from(HasDefaultPlatform instance)
com.facebook.buck.core.description.arg.HasDefaultPlatform
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final RustBinaryDescriptionArg.Builder from(RustCommonArgs instance)
com.facebook.buck.features.rust.RustCommonArgs
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final RustBinaryDescriptionArg.Builder from(RustBinaryDescriptionArg instance)
RustBinaryDescriptionArg
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final RustBinaryDescriptionArg.Builder from(com.facebook.buck.features.rust.RustBinaryDescription.AbstractRustBinaryDescriptionArg instance)
AbstractRustBinaryDescriptionArg
instance into builder.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final RustBinaryDescriptionArg.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 RustBinaryDescriptionArg.Builder from(HasSrcs instance)
com.facebook.buck.core.description.arg.HasSrcs
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final RustBinaryDescriptionArg.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 RustBinaryDescriptionArg.Builder addLinkerFlags(StringWithMacros element)
linkerFlags
list.element
- A linkerFlags elementthis
builder for use in a chained invocationpublic final RustBinaryDescriptionArg.Builder addLinkerFlags(StringWithMacros... elements)
linkerFlags
list.elements
- An array of linkerFlags elementsthis
builder for use in a chained invocationpublic final RustBinaryDescriptionArg.Builder setLinkerFlags(Iterable<? extends StringWithMacros> elements)
linkerFlags
list.elements
- An iterable of linkerFlags elementsthis
builder for use in a chained invocationpublic final RustBinaryDescriptionArg.Builder addAllLinkerFlags(Iterable<? extends StringWithMacros> elements)
linkerFlags
list.elements
- An iterable of linkerFlags elementsthis
builder for use in a chained invocationpublic final RustBinaryDescriptionArg.Builder setLinkStyle(Linker.LinkableDepType linkStyle)
linkStyle
to linkStyle.linkStyle
- The value for linkStylethis
builder for chained invocationpublic final RustBinaryDescriptionArg.Builder setLinkStyle(Optional<? extends Linker.LinkableDepType> linkStyle)
linkStyle
to linkStyle.linkStyle
- The value for linkStylethis
builder for use in a chained invocationpublic final RustBinaryDescriptionArg.Builder setRpath(boolean rpath)
rpath
attribute.
If not set, this attribute will have a default value as returned by the initializer of rpath
.
rpath
- The value for rpaththis
builder for use in a chained invocationpublic final RustBinaryDescriptionArg.Builder putMappedSrcs(SourcePath key, String value)
mappedSrcs
map.key
- The key in the mappedSrcs mapvalue
- The associated value in the mappedSrcs mapthis
builder for use in a chained invocationpublic final RustBinaryDescriptionArg.Builder putMappedSrcs(Map.Entry<? extends SourcePath,? extends String> entry)
mappedSrcs
map. Nulls are not permittedentry
- The key and value entrythis
builder for use in a chained invocationpublic final RustBinaryDescriptionArg.Builder setMappedSrcs(Map<? extends SourcePath,? extends String> entries)
mappedSrcs
map. Nulls are not permittedentries
- The entries that will be added to the mappedSrcs mapthis
builder for use in a chained invocationpublic final RustBinaryDescriptionArg.Builder putAllMappedSrcs(Map<? extends SourcePath,? extends String> entries)
mappedSrcs
map. Nulls are not permittedentries
- The entries that will be added to the mappedSrcs mapthis
builder for use in a chained invocationpublic final RustBinaryDescriptionArg.Builder putEnv(String key, StringWithMacros value)
env
map.key
- The key in the env mapvalue
- The associated value in the env mapthis
builder for use in a chained invocationpublic final RustBinaryDescriptionArg.Builder putEnv(Map.Entry<String,? extends StringWithMacros> entry)
env
map. Nulls are not permittedentry
- The key and value entrythis
builder for use in a chained invocationpublic final RustBinaryDescriptionArg.Builder setEnv(Map<String,? extends StringWithMacros> entries)
env
map. Nulls are not permittedentries
- The entries that will be added to the env mapthis
builder for use in a chained invocationpublic final RustBinaryDescriptionArg.Builder putAllEnv(Map<String,? extends StringWithMacros> entries)
env
map. Nulls are not permittedentries
- The entries that will be added to the env mapthis
builder for use in a chained invocationpublic final RustBinaryDescriptionArg.Builder setEdition(String edition)
edition
to edition.edition
- The value for editionthis
builder for chained invocationpublic final RustBinaryDescriptionArg.Builder setEdition(Optional<String> edition)
edition
to edition.edition
- The value for editionthis
builder for use in a chained invocationpublic final RustBinaryDescriptionArg.Builder addFeatures(String element)
features
sortedSet.element
- A features elementthis
builder for use in a chained invocationpublic final RustBinaryDescriptionArg.Builder addFeatures(String... elements)
features
sortedSet.elements
- An array of features elementsthis
builder for use in a chained invocationpublic final RustBinaryDescriptionArg.Builder setFeatures(Iterable<String> elements)
features
sortedSet.elements
- An iterable of features elementsthis
builder for use in a chained invocationpublic final RustBinaryDescriptionArg.Builder addAllFeatures(Iterable<String> elements)
features
sortedSet.elements
- An iterable of features elementsthis
builder for use in a chained invocationpublic final RustBinaryDescriptionArg.Builder addRustcFlags(StringWithMacros element)
rustcFlags
list.element
- A rustcFlags elementthis
builder for use in a chained invocationpublic final RustBinaryDescriptionArg.Builder addRustcFlags(StringWithMacros... elements)
rustcFlags
list.elements
- An array of rustcFlags elementsthis
builder for use in a chained invocationpublic final RustBinaryDescriptionArg.Builder setRustcFlags(Iterable<? extends StringWithMacros> elements)
rustcFlags
list.elements
- An iterable of rustcFlags elementsthis
builder for use in a chained invocationpublic final RustBinaryDescriptionArg.Builder addAllRustcFlags(Iterable<? extends StringWithMacros> elements)
rustcFlags
list.elements
- An iterable of rustcFlags elementsthis
builder for use in a chained invocationpublic final RustBinaryDescriptionArg.Builder setCrate(String crate)
crate
to crate.crate
- The value for cratethis
builder for chained invocationpublic final RustBinaryDescriptionArg.Builder setCrate(Optional<String> crate)
crate
to crate.crate
- The value for cratethis
builder for use in a chained invocationpublic final RustBinaryDescriptionArg.Builder setCrateRoot(String crateRoot)
crateRoot
to crateRoot.crateRoot
- The value for crateRootthis
builder for chained invocationpublic final RustBinaryDescriptionArg.Builder setCrateRoot(Optional<String> crateRoot)
crateRoot
to crateRoot.crateRoot
- The value for crateRootthis
builder for use in a chained invocationpublic final RustBinaryDescriptionArg.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 RustBinaryDescriptionArg.Builder addCompatibleWith(UnconfiguredBuildTarget element)
compatibleWith
list.element
- A compatibleWith elementthis
builder for use in a chained invocationpublic final RustBinaryDescriptionArg.Builder addCompatibleWith(UnconfiguredBuildTarget... elements)
compatibleWith
list.elements
- An array of compatibleWith elementsthis
builder for use in a chained invocationpublic final RustBinaryDescriptionArg.Builder setCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
compatibleWith
list.elements
- An iterable of compatibleWith elementsthis
builder for use in a chained invocationpublic final RustBinaryDescriptionArg.Builder addAllCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
compatibleWith
list.elements
- An iterable of compatibleWith elementsthis
builder for use in a chained invocationpublic final RustBinaryDescriptionArg.Builder setDefaultTargetPlatform(UnconfiguredBuildTarget defaultTargetPlatform)
defaultTargetPlatform
to defaultTargetPlatform.defaultTargetPlatform
- The value for defaultTargetPlatformthis
builder for chained invocationpublic final RustBinaryDescriptionArg.Builder setDefaultTargetPlatform(Optional<? extends UnconfiguredBuildTarget> defaultTargetPlatform)
defaultTargetPlatform
to defaultTargetPlatform.defaultTargetPlatform
- The value for defaultTargetPlatformthis
builder for use in a chained invocationpublic final RustBinaryDescriptionArg.Builder addLabels(String element)
labels
sortedSet.element
- A labels elementthis
builder for use in a chained invocationpublic final RustBinaryDescriptionArg.Builder addLabels(String... elements)
labels
sortedSet.elements
- An array of labels elementsthis
builder for use in a chained invocationpublic final RustBinaryDescriptionArg.Builder setLabels(Iterable<String> elements)
labels
sortedSet.elements
- An iterable of labels elementsthis
builder for use in a chained invocationpublic final RustBinaryDescriptionArg.Builder addAllLabels(Iterable<String> elements)
labels
sortedSet.elements
- An iterable of labels elementsthis
builder for use in a chained invocationpublic final RustBinaryDescriptionArg.Builder addLicenses(SourcePath element)
licenses
set.element
- A licenses elementthis
builder for use in a chained invocationpublic final RustBinaryDescriptionArg.Builder addLicenses(SourcePath... elements)
licenses
set.elements
- An array of licenses elementsthis
builder for use in a chained invocationpublic final RustBinaryDescriptionArg.Builder setLicenses(Iterable<? extends SourcePath> elements)
licenses
set.elements
- An iterable of licenses elementsthis
builder for use in a chained invocationpublic final RustBinaryDescriptionArg.Builder addAllLicenses(Iterable<? extends SourcePath> elements)
licenses
set.elements
- An iterable of licenses elementsthis
builder for use in a chained invocationpublic final RustBinaryDescriptionArg.Builder setName(String name)
name
attribute.name
- The value for namethis
builder for use in a chained invocationpublic final RustBinaryDescriptionArg.Builder putNamedDeps(String key, BuildTarget value)
namedDeps
map.key
- The key in the namedDeps mapvalue
- The associated value in the namedDeps mapthis
builder for use in a chained invocationpublic final RustBinaryDescriptionArg.Builder putNamedDeps(Map.Entry<String,? extends BuildTarget> entry)
namedDeps
map. Nulls are not permittedentry
- The key and value entrythis
builder for use in a chained invocationpublic final RustBinaryDescriptionArg.Builder setNamedDeps(Map<String,? extends BuildTarget> entries)
namedDeps
map. Nulls are not permittedentries
- The entries that will be added to the namedDeps mapthis
builder for use in a chained invocationpublic final RustBinaryDescriptionArg.Builder putAllNamedDeps(Map<String,? extends BuildTarget> entries)
namedDeps
map. Nulls are not permittedentries
- The entries that will be added to the namedDeps mapthis
builder for use in a chained invocationpublic final RustBinaryDescriptionArg.Builder addDeps(BuildTarget element)
deps
sortedSet.element
- A deps elementthis
builder for use in a chained invocationpublic final RustBinaryDescriptionArg.Builder addDeps(BuildTarget... elements)
deps
sortedSet.elements
- An array of deps elementsthis
builder for use in a chained invocationpublic final RustBinaryDescriptionArg.Builder setDeps(Iterable<? extends BuildTarget> elements)
deps
sortedSet.elements
- An iterable of deps elementsthis
builder for use in a chained invocationpublic final RustBinaryDescriptionArg.Builder addAllDeps(Iterable<? extends BuildTarget> elements)
deps
sortedSet.elements
- An iterable of deps elementsthis
builder for use in a chained invocationpublic final RustBinaryDescriptionArg.Builder addSrcs(SourcePath element)
srcs
sortedSet.element
- A srcs elementthis
builder for use in a chained invocationpublic final RustBinaryDescriptionArg.Builder addSrcs(SourcePath... elements)
srcs
sortedSet.elements
- An array of srcs elementsthis
builder for use in a chained invocationpublic final RustBinaryDescriptionArg.Builder setSrcs(Iterable<? extends SourcePath> elements)
srcs
sortedSet.elements
- An iterable of srcs elementsthis
builder for use in a chained invocationpublic final RustBinaryDescriptionArg.Builder addAllSrcs(Iterable<? extends SourcePath> elements)
srcs
sortedSet.elements
- An iterable of srcs elementsthis
builder for use in a chained invocationpublic final RustBinaryDescriptionArg.Builder setDefaultPlatform(Flavor defaultPlatform)
defaultPlatform
to defaultPlatform.defaultPlatform
- The value for defaultPlatformthis
builder for chained invocationpublic final RustBinaryDescriptionArg.Builder setDefaultPlatform(Optional<? extends Flavor> defaultPlatform)
defaultPlatform
to defaultPlatform.defaultPlatform
- The value for defaultPlatformthis
builder for use in a chained invocationpublic final RustBinaryDescriptionArg.Builder addTests(BuildTarget element)
tests
sortedSet.element
- A tests elementthis
builder for use in a chained invocationpublic final RustBinaryDescriptionArg.Builder addTests(BuildTarget... elements)
tests
sortedSet.elements
- An array of tests elementsthis
builder for use in a chained invocationpublic final RustBinaryDescriptionArg.Builder setTests(Iterable<? extends BuildTarget> elements)
tests
sortedSet.elements
- An iterable of tests elementsthis
builder for use in a chained invocationpublic final RustBinaryDescriptionArg.Builder addAllTests(Iterable<? extends BuildTarget> elements)
tests
sortedSet.elements
- An iterable of tests elementsthis
builder for use in a chained invocationpublic final RustBinaryDescriptionArg.Builder setVersionUniverse(String versionUniverse)
versionUniverse
to versionUniverse.versionUniverse
- The value for versionUniversethis
builder for chained invocationpublic final RustBinaryDescriptionArg.Builder setVersionUniverse(Optional<String> versionUniverse)
versionUniverse
to versionUniverse.versionUniverse
- The value for versionUniversethis
builder for use in a chained invocationpublic RustBinaryDescriptionArg build()
RustBinaryDescriptionArg
.IllegalStateException
- if any required attributes are missing