@NotThreadSafe public static final class GwtBinaryDescriptionArg.Builder extends Object
GwtBinaryDescriptionArg
.
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 GwtBinaryDescriptionArg.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 GwtBinaryDescriptionArg.Builder from(GwtBinaryDescriptionArg instance)
GwtBinaryDescriptionArg
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final GwtBinaryDescriptionArg.Builder from(com.facebook.buck.features.gwt.GwtBinaryDescription.AbstractGwtBinaryDescriptionArg instance)
AbstractGwtBinaryDescriptionArg
instance into builder.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final GwtBinaryDescriptionArg.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 GwtBinaryDescriptionArg.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 GwtBinaryDescriptionArg.Builder addModules(String element)
modules
sortedSet.element
- A modules elementthis
builder for use in a chained invocationpublic final GwtBinaryDescriptionArg.Builder addModules(String... elements)
modules
sortedSet.elements
- An array of modules elementsthis
builder for use in a chained invocationpublic final GwtBinaryDescriptionArg.Builder setModules(Iterable<String> elements)
modules
sortedSet.elements
- An iterable of modules elementsthis
builder for use in a chained invocationpublic final GwtBinaryDescriptionArg.Builder addAllModules(Iterable<String> elements)
modules
sortedSet.elements
- An iterable of modules elementsthis
builder for use in a chained invocationpublic final GwtBinaryDescriptionArg.Builder addModuleDeps(BuildTarget element)
moduleDeps
sortedSet.element
- A moduleDeps elementthis
builder for use in a chained invocationpublic final GwtBinaryDescriptionArg.Builder addModuleDeps(BuildTarget... elements)
moduleDeps
sortedSet.elements
- An array of moduleDeps elementsthis
builder for use in a chained invocationpublic final GwtBinaryDescriptionArg.Builder setModuleDeps(Iterable<? extends BuildTarget> elements)
moduleDeps
sortedSet.elements
- An iterable of moduleDeps elementsthis
builder for use in a chained invocationpublic final GwtBinaryDescriptionArg.Builder addAllModuleDeps(Iterable<? extends BuildTarget> elements)
moduleDeps
sortedSet.elements
- An iterable of moduleDeps elementsthis
builder for use in a chained invocationpublic final GwtBinaryDescriptionArg.Builder addVmArgs(String element)
vmArgs
list.element
- A vmArgs elementthis
builder for use in a chained invocationpublic final GwtBinaryDescriptionArg.Builder addVmArgs(String... elements)
vmArgs
list.elements
- An array of vmArgs elementsthis
builder for use in a chained invocationpublic final GwtBinaryDescriptionArg.Builder setVmArgs(Iterable<String> elements)
vmArgs
list.elements
- An iterable of vmArgs elementsthis
builder for use in a chained invocationpublic final GwtBinaryDescriptionArg.Builder addAllVmArgs(Iterable<String> elements)
vmArgs
list.elements
- An iterable of vmArgs elementsthis
builder for use in a chained invocationpublic final GwtBinaryDescriptionArg.Builder setStyle(com.facebook.buck.features.gwt.GwtBinary.Style style)
style
to style.style
- The value for stylethis
builder for chained invocationpublic final GwtBinaryDescriptionArg.Builder setStyle(Optional<? extends com.facebook.buck.features.gwt.GwtBinary.Style> style)
style
to style.style
- The value for stylethis
builder for use in a chained invocationpublic final GwtBinaryDescriptionArg.Builder setDraftCompile(boolean draftCompile)
draftCompile
to draftCompile.draftCompile
- The value for draftCompilethis
builder for chained invocationpublic final GwtBinaryDescriptionArg.Builder setDraftCompile(Optional<Boolean> draftCompile)
draftCompile
to draftCompile.draftCompile
- The value for draftCompilethis
builder for use in a chained invocationpublic final GwtBinaryDescriptionArg.Builder setOptimize(int optimize)
optimize
to optimize.optimize
- The value for optimizethis
builder for chained invocationpublic final GwtBinaryDescriptionArg.Builder setOptimize(Optional<Integer> optimize)
optimize
to optimize.optimize
- The value for optimizethis
builder for use in a chained invocationpublic final GwtBinaryDescriptionArg.Builder setLocalWorkers(int localWorkers)
localWorkers
to localWorkers.localWorkers
- The value for localWorkersthis
builder for chained invocationpublic final GwtBinaryDescriptionArg.Builder setLocalWorkers(Optional<Integer> localWorkers)
localWorkers
to localWorkers.localWorkers
- The value for localWorkersthis
builder for use in a chained invocationpublic final GwtBinaryDescriptionArg.Builder setStrict(boolean strict)
strict
to strict.strict
- The value for strictthis
builder for chained invocationpublic final GwtBinaryDescriptionArg.Builder setStrict(Optional<Boolean> strict)
strict
to strict.strict
- The value for strictthis
builder for use in a chained invocationpublic final GwtBinaryDescriptionArg.Builder addExperimentalArgs(String element)
experimentalArgs
list.element
- A experimentalArgs elementthis
builder for use in a chained invocationpublic final GwtBinaryDescriptionArg.Builder addExperimentalArgs(String... elements)
experimentalArgs
list.elements
- An array of experimentalArgs elementsthis
builder for use in a chained invocationpublic final GwtBinaryDescriptionArg.Builder setExperimentalArgs(Iterable<String> elements)
experimentalArgs
list.elements
- An iterable of experimentalArgs elementsthis
builder for use in a chained invocationpublic final GwtBinaryDescriptionArg.Builder addAllExperimentalArgs(Iterable<String> elements)
experimentalArgs
list.elements
- An iterable of experimentalArgs elementsthis
builder for use in a chained invocationpublic final GwtBinaryDescriptionArg.Builder addCompatibleWith(UnconfiguredBuildTarget element)
compatibleWith
list.element
- A compatibleWith elementthis
builder for use in a chained invocationpublic final GwtBinaryDescriptionArg.Builder addCompatibleWith(UnconfiguredBuildTarget... elements)
compatibleWith
list.elements
- An array of compatibleWith elementsthis
builder for use in a chained invocationpublic final GwtBinaryDescriptionArg.Builder setCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
compatibleWith
list.elements
- An iterable of compatibleWith elementsthis
builder for use in a chained invocationpublic final GwtBinaryDescriptionArg.Builder addAllCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
compatibleWith
list.elements
- An iterable of compatibleWith elementsthis
builder for use in a chained invocationpublic final GwtBinaryDescriptionArg.Builder setDefaultTargetPlatform(UnconfiguredBuildTarget defaultTargetPlatform)
defaultTargetPlatform
to defaultTargetPlatform.defaultTargetPlatform
- The value for defaultTargetPlatformthis
builder for chained invocationpublic final GwtBinaryDescriptionArg.Builder setDefaultTargetPlatform(Optional<? extends UnconfiguredBuildTarget> defaultTargetPlatform)
defaultTargetPlatform
to defaultTargetPlatform.defaultTargetPlatform
- The value for defaultTargetPlatformthis
builder for use in a chained invocationpublic final GwtBinaryDescriptionArg.Builder addLabels(String element)
labels
sortedSet.element
- A labels elementthis
builder for use in a chained invocationpublic final GwtBinaryDescriptionArg.Builder addLabels(String... elements)
labels
sortedSet.elements
- An array of labels elementsthis
builder for use in a chained invocationpublic final GwtBinaryDescriptionArg.Builder setLabels(Iterable<String> elements)
labels
sortedSet.elements
- An iterable of labels elementsthis
builder for use in a chained invocationpublic final GwtBinaryDescriptionArg.Builder addAllLabels(Iterable<String> elements)
labels
sortedSet.elements
- An iterable of labels elementsthis
builder for use in a chained invocationpublic final GwtBinaryDescriptionArg.Builder addLicenses(SourcePath element)
licenses
set.element
- A licenses elementthis
builder for use in a chained invocationpublic final GwtBinaryDescriptionArg.Builder addLicenses(SourcePath... elements)
licenses
set.elements
- An array of licenses elementsthis
builder for use in a chained invocationpublic final GwtBinaryDescriptionArg.Builder setLicenses(Iterable<? extends SourcePath> elements)
licenses
set.elements
- An iterable of licenses elementsthis
builder for use in a chained invocationpublic final GwtBinaryDescriptionArg.Builder addAllLicenses(Iterable<? extends SourcePath> elements)
licenses
set.elements
- An iterable of licenses elementsthis
builder for use in a chained invocationpublic final GwtBinaryDescriptionArg.Builder setName(String name)
name
attribute.name
- The value for namethis
builder for use in a chained invocationpublic final GwtBinaryDescriptionArg.Builder addDeps(BuildTarget element)
deps
sortedSet.element
- A deps elementthis
builder for use in a chained invocationpublic final GwtBinaryDescriptionArg.Builder addDeps(BuildTarget... elements)
deps
sortedSet.elements
- An array of deps elementsthis
builder for use in a chained invocationpublic final GwtBinaryDescriptionArg.Builder setDeps(Iterable<? extends BuildTarget> elements)
deps
sortedSet.elements
- An iterable of deps elementsthis
builder for use in a chained invocationpublic final GwtBinaryDescriptionArg.Builder addAllDeps(Iterable<? extends BuildTarget> elements)
deps
sortedSet.elements
- An iterable of deps elementsthis
builder for use in a chained invocationpublic GwtBinaryDescriptionArg build()
GwtBinaryDescriptionArg
.IllegalStateException
- if any required attributes are missing