@NotThreadSafe public static final class HaskellGhciDescriptionArg.Builder extends Object
HaskellGhciDescriptionArg
.
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 HaskellGhciDescriptionArg.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 HaskellGhciDescriptionArg.Builder from(HasDepsQuery instance)
com.facebook.buck.core.description.arg.HasDepsQuery
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final HaskellGhciDescriptionArg.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 HaskellGhciDescriptionArg.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 HaskellGhciDescriptionArg.Builder from(HaskellGhciDescriptionArg instance)
HaskellGhciDescriptionArg
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final HaskellGhciDescriptionArg.Builder from(com.facebook.buck.features.haskell.HaskellGhciDescription.AbstractHaskellGhciDescriptionArg instance)
AbstractHaskellGhciDescriptionArg
instance into builder.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final HaskellGhciDescriptionArg.Builder setSrcs(SourceSortedSet 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 HaskellGhciDescriptionArg.Builder addCompilerFlags(String element)
compilerFlags
list.element
- A compilerFlags elementthis
builder for use in a chained invocationpublic final HaskellGhciDescriptionArg.Builder addCompilerFlags(String... elements)
compilerFlags
list.elements
- An array of compilerFlags elementsthis
builder for use in a chained invocationpublic final HaskellGhciDescriptionArg.Builder setCompilerFlags(Iterable<String> elements)
compilerFlags
list.elements
- An iterable of compilerFlags elementsthis
builder for use in a chained invocationpublic final HaskellGhciDescriptionArg.Builder addAllCompilerFlags(Iterable<String> elements)
compilerFlags
list.elements
- An iterable of compilerFlags elementsthis
builder for use in a chained invocationpublic final HaskellGhciDescriptionArg.Builder addLinkerFlags(StringWithMacros element)
linkerFlags
list.element
- A linkerFlags elementthis
builder for use in a chained invocationpublic final HaskellGhciDescriptionArg.Builder addLinkerFlags(StringWithMacros... elements)
linkerFlags
list.elements
- An array of linkerFlags elementsthis
builder for use in a chained invocationpublic final HaskellGhciDescriptionArg.Builder setLinkerFlags(Iterable<? extends StringWithMacros> elements)
linkerFlags
list.elements
- An iterable of linkerFlags elementsthis
builder for use in a chained invocationpublic final HaskellGhciDescriptionArg.Builder addAllLinkerFlags(Iterable<? extends StringWithMacros> elements)
linkerFlags
list.elements
- An iterable of linkerFlags elementsthis
builder for use in a chained invocationpublic final HaskellGhciDescriptionArg.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 HaskellGhciDescriptionArg.Builder setEnableProfiling(boolean enableProfiling)
enableProfiling
attribute.
If not set, this attribute will have a default value as returned by the initializer of enableProfiling
.
enableProfiling
- The value for enableProfilingthis
builder for use in a chained invocationpublic final HaskellGhciDescriptionArg.Builder setGhciBinDep(BuildTarget ghciBinDep)
ghciBinDep
to ghciBinDep.ghciBinDep
- The value for ghciBinDepthis
builder for chained invocationpublic final HaskellGhciDescriptionArg.Builder setGhciBinDep(Optional<? extends BuildTarget> ghciBinDep)
ghciBinDep
to ghciBinDep.ghciBinDep
- The value for ghciBinDepthis
builder for use in a chained invocationpublic final HaskellGhciDescriptionArg.Builder setGhciInit(SourcePath ghciInit)
ghciInit
to ghciInit.ghciInit
- The value for ghciInitthis
builder for chained invocationpublic final HaskellGhciDescriptionArg.Builder setGhciInit(Optional<? extends SourcePath> ghciInit)
ghciInit
to ghciInit.ghciInit
- The value for ghciInitthis
builder for use in a chained invocationpublic final HaskellGhciDescriptionArg.Builder setPlatform(Flavor platform)
platform
to platform.platform
- The value for platformthis
builder for chained invocationpublic final HaskellGhciDescriptionArg.Builder setPlatform(Optional<? extends Flavor> platform)
platform
to platform.platform
- The value for platformthis
builder for use in a chained invocationpublic final HaskellGhciDescriptionArg.Builder addExtraScriptTemplates(SourcePath element)
extraScriptTemplates
list.element
- A extraScriptTemplates elementthis
builder for use in a chained invocationpublic final HaskellGhciDescriptionArg.Builder addExtraScriptTemplates(SourcePath... elements)
extraScriptTemplates
list.elements
- An array of extraScriptTemplates elementsthis
builder for use in a chained invocationpublic final HaskellGhciDescriptionArg.Builder setExtraScriptTemplates(Iterable<? extends SourcePath> elements)
extraScriptTemplates
list.elements
- An iterable of extraScriptTemplates elementsthis
builder for use in a chained invocationpublic final HaskellGhciDescriptionArg.Builder addAllExtraScriptTemplates(Iterable<? extends SourcePath> elements)
extraScriptTemplates
list.elements
- An iterable of extraScriptTemplates elementsthis
builder for use in a chained invocationpublic final HaskellGhciDescriptionArg.Builder setPreloadDeps(com.google.common.collect.ImmutableSortedSet<BuildTarget> preloadDeps)
preloadDeps
attribute.
If not set, this attribute will have a default value as returned by the initializer of preloadDeps
.
preloadDeps
- The value for preloadDepsthis
builder for use in a chained invocationpublic final HaskellGhciDescriptionArg.Builder setPlatformPreloadDeps(PatternMatchedCollection<com.google.common.collect.ImmutableSortedSet<BuildTarget>> platformPreloadDeps)
platformPreloadDeps
attribute.
If not set, this attribute will have a default value as returned by the initializer of platformPreloadDeps
.
platformPreloadDeps
- The value for platformPreloadDepsthis
builder for use in a chained invocationpublic final HaskellGhciDescriptionArg.Builder addCompatibleWith(UnconfiguredBuildTarget element)
compatibleWith
list.element
- A compatibleWith elementthis
builder for use in a chained invocationpublic final HaskellGhciDescriptionArg.Builder addCompatibleWith(UnconfiguredBuildTarget... elements)
compatibleWith
list.elements
- An array of compatibleWith elementsthis
builder for use in a chained invocationpublic final HaskellGhciDescriptionArg.Builder setCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
compatibleWith
list.elements
- An iterable of compatibleWith elementsthis
builder for use in a chained invocationpublic final HaskellGhciDescriptionArg.Builder addAllCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
compatibleWith
list.elements
- An iterable of compatibleWith elementsthis
builder for use in a chained invocationpublic final HaskellGhciDescriptionArg.Builder setDefaultTargetPlatform(UnconfiguredBuildTarget defaultTargetPlatform)
defaultTargetPlatform
to defaultTargetPlatform.defaultTargetPlatform
- The value for defaultTargetPlatformthis
builder for chained invocationpublic final HaskellGhciDescriptionArg.Builder setDefaultTargetPlatform(Optional<? extends UnconfiguredBuildTarget> defaultTargetPlatform)
defaultTargetPlatform
to defaultTargetPlatform.defaultTargetPlatform
- The value for defaultTargetPlatformthis
builder for use in a chained invocationpublic final HaskellGhciDescriptionArg.Builder addLabels(String element)
labels
sortedSet.element
- A labels elementthis
builder for use in a chained invocationpublic final HaskellGhciDescriptionArg.Builder addLabels(String... elements)
labels
sortedSet.elements
- An array of labels elementsthis
builder for use in a chained invocationpublic final HaskellGhciDescriptionArg.Builder setLabels(Iterable<String> elements)
labels
sortedSet.elements
- An iterable of labels elementsthis
builder for use in a chained invocationpublic final HaskellGhciDescriptionArg.Builder addAllLabels(Iterable<String> elements)
labels
sortedSet.elements
- An iterable of labels elementsthis
builder for use in a chained invocationpublic final HaskellGhciDescriptionArg.Builder addLicenses(SourcePath element)
licenses
set.element
- A licenses elementthis
builder for use in a chained invocationpublic final HaskellGhciDescriptionArg.Builder addLicenses(SourcePath... elements)
licenses
set.elements
- An array of licenses elementsthis
builder for use in a chained invocationpublic final HaskellGhciDescriptionArg.Builder setLicenses(Iterable<? extends SourcePath> elements)
licenses
set.elements
- An iterable of licenses elementsthis
builder for use in a chained invocationpublic final HaskellGhciDescriptionArg.Builder addAllLicenses(Iterable<? extends SourcePath> elements)
licenses
set.elements
- An iterable of licenses elementsthis
builder for use in a chained invocationpublic final HaskellGhciDescriptionArg.Builder setName(String name)
name
attribute.name
- The value for namethis
builder for use in a chained invocationpublic final HaskellGhciDescriptionArg.Builder setDepsQuery(Query depsQuery)
depsQuery
to depsQuery.depsQuery
- The value for depsQuerythis
builder for chained invocationpublic final HaskellGhciDescriptionArg.Builder setDepsQuery(Optional<? extends Query> depsQuery)
depsQuery
to depsQuery.depsQuery
- The value for depsQuerythis
builder for use in a chained invocationpublic final HaskellGhciDescriptionArg.Builder addDeps(BuildTarget element)
deps
sortedSet.element
- A deps elementthis
builder for use in a chained invocationpublic final HaskellGhciDescriptionArg.Builder addDeps(BuildTarget... elements)
deps
sortedSet.elements
- An array of deps elementsthis
builder for use in a chained invocationpublic final HaskellGhciDescriptionArg.Builder setDeps(Iterable<? extends BuildTarget> elements)
deps
sortedSet.elements
- An iterable of deps elementsthis
builder for use in a chained invocationpublic final HaskellGhciDescriptionArg.Builder addAllDeps(Iterable<? extends BuildTarget> elements)
deps
sortedSet.elements
- An iterable of deps elementsthis
builder for use in a chained invocationpublic HaskellGhciDescriptionArg build()
HaskellGhciDescriptionArg
.IllegalStateException
- if any required attributes are missing