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