@NotThreadSafe public static final class CsharpLibraryDescriptionArg.Builder extends Object
CsharpLibraryDescriptionArg
.
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 CsharpLibraryDescriptionArg.Builder from(CsharpLibraryDescriptionArg instance)
CsharpLibraryDescriptionArg
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final CsharpLibraryDescriptionArg.Builder from(com.facebook.buck.features.dotnet.CsharpLibraryDescription.AbstractCsharpLibraryDescriptionArg instance)
AbstractCsharpLibraryDescriptionArg
instance into builder.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final CsharpLibraryDescriptionArg.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 CsharpLibraryDescriptionArg.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 CsharpLibraryDescriptionArg.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 CsharpLibraryDescriptionArg.Builder setFrameworkVer(FrameworkVersion frameworkVer)
frameworkVer
attribute.frameworkVer
- The value for frameworkVerthis
builder for use in a chained invocationpublic final CsharpLibraryDescriptionArg.Builder putResources(String key, SourcePath value)
resources
map.key
- The key in the resources mapvalue
- The associated value in the resources mapthis
builder for use in a chained invocationpublic final CsharpLibraryDescriptionArg.Builder putResources(Map.Entry<String,? extends SourcePath> entry)
resources
map. Nulls are not permittedentry
- The key and value entrythis
builder for use in a chained invocationpublic final CsharpLibraryDescriptionArg.Builder setResources(Map<String,? extends SourcePath> entries)
resources
map. Nulls are not permittedentries
- The entries that will be added to the resources mapthis
builder for use in a chained invocationpublic final CsharpLibraryDescriptionArg.Builder putAllResources(Map<String,? extends SourcePath> entries)
resources
map. Nulls are not permittedentries
- The entries that will be added to the resources mapthis
builder for use in a chained invocationpublic final CsharpLibraryDescriptionArg.Builder setDllName(String dllName)
dllName
attribute.
If not set, this attribute will have a default value as returned by the initializer of dllName
.
dllName
- The value for dllNamethis
builder for use in a chained invocationpublic final CsharpLibraryDescriptionArg.Builder addDeps(Either<BuildTarget,String> element)
deps
list.element
- A deps elementthis
builder for use in a chained invocation@SafeVarargs public final CsharpLibraryDescriptionArg.Builder addDeps(Either<BuildTarget,String>... elements)
deps
list.elements
- An array of deps elementsthis
builder for use in a chained invocationpublic final CsharpLibraryDescriptionArg.Builder setDeps(Iterable<? extends Either<BuildTarget,String>> elements)
deps
list.elements
- An iterable of deps elementsthis
builder for use in a chained invocationpublic final CsharpLibraryDescriptionArg.Builder addAllDeps(Iterable<? extends Either<BuildTarget,String>> elements)
deps
list.elements
- An iterable of deps elementsthis
builder for use in a chained invocationpublic final CsharpLibraryDescriptionArg.Builder addCompilerFlags(String element)
compilerFlags
list.element
- A compilerFlags elementthis
builder for use in a chained invocationpublic final CsharpLibraryDescriptionArg.Builder addCompilerFlags(String... elements)
compilerFlags
list.elements
- An array of compilerFlags elementsthis
builder for use in a chained invocationpublic final CsharpLibraryDescriptionArg.Builder setCompilerFlags(Iterable<String> elements)
compilerFlags
list.elements
- An iterable of compilerFlags elementsthis
builder for use in a chained invocationpublic final CsharpLibraryDescriptionArg.Builder addAllCompilerFlags(Iterable<String> elements)
compilerFlags
list.elements
- An iterable of compilerFlags elementsthis
builder for use in a chained invocationpublic final CsharpLibraryDescriptionArg.Builder addCompatibleWith(UnconfiguredBuildTarget element)
compatibleWith
list.element
- A compatibleWith elementthis
builder for use in a chained invocationpublic final CsharpLibraryDescriptionArg.Builder addCompatibleWith(UnconfiguredBuildTarget... elements)
compatibleWith
list.elements
- An array of compatibleWith elementsthis
builder for use in a chained invocationpublic final CsharpLibraryDescriptionArg.Builder setCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
compatibleWith
list.elements
- An iterable of compatibleWith elementsthis
builder for use in a chained invocationpublic final CsharpLibraryDescriptionArg.Builder addAllCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
compatibleWith
list.elements
- An iterable of compatibleWith elementsthis
builder for use in a chained invocationpublic final CsharpLibraryDescriptionArg.Builder setDefaultTargetPlatform(UnconfiguredBuildTarget defaultTargetPlatform)
defaultTargetPlatform
to defaultTargetPlatform.defaultTargetPlatform
- The value for defaultTargetPlatformthis
builder for chained invocationpublic final CsharpLibraryDescriptionArg.Builder setDefaultTargetPlatform(Optional<? extends UnconfiguredBuildTarget> defaultTargetPlatform)
defaultTargetPlatform
to defaultTargetPlatform.defaultTargetPlatform
- The value for defaultTargetPlatformthis
builder for use in a chained invocationpublic final CsharpLibraryDescriptionArg.Builder addLabels(String element)
labels
sortedSet.element
- A labels elementthis
builder for use in a chained invocationpublic final CsharpLibraryDescriptionArg.Builder addLabels(String... elements)
labels
sortedSet.elements
- An array of labels elementsthis
builder for use in a chained invocationpublic final CsharpLibraryDescriptionArg.Builder setLabels(Iterable<String> elements)
labels
sortedSet.elements
- An iterable of labels elementsthis
builder for use in a chained invocationpublic final CsharpLibraryDescriptionArg.Builder addAllLabels(Iterable<String> elements)
labels
sortedSet.elements
- An iterable of labels elementsthis
builder for use in a chained invocationpublic final CsharpLibraryDescriptionArg.Builder addLicenses(SourcePath element)
licenses
set.element
- A licenses elementthis
builder for use in a chained invocationpublic final CsharpLibraryDescriptionArg.Builder addLicenses(SourcePath... elements)
licenses
set.elements
- An array of licenses elementsthis
builder for use in a chained invocationpublic final CsharpLibraryDescriptionArg.Builder setLicenses(Iterable<? extends SourcePath> elements)
licenses
set.elements
- An iterable of licenses elementsthis
builder for use in a chained invocationpublic final CsharpLibraryDescriptionArg.Builder addAllLicenses(Iterable<? extends SourcePath> elements)
licenses
set.elements
- An iterable of licenses elementsthis
builder for use in a chained invocationpublic final CsharpLibraryDescriptionArg.Builder setName(String name)
name
attribute.name
- The value for namethis
builder for use in a chained invocationpublic final CsharpLibraryDescriptionArg.Builder addSrcs(SourcePath element)
srcs
sortedSet.element
- A srcs elementthis
builder for use in a chained invocationpublic final CsharpLibraryDescriptionArg.Builder addSrcs(SourcePath... elements)
srcs
sortedSet.elements
- An array of srcs elementsthis
builder for use in a chained invocationpublic final CsharpLibraryDescriptionArg.Builder setSrcs(Iterable<? extends SourcePath> elements)
srcs
sortedSet.elements
- An iterable of srcs elementsthis
builder for use in a chained invocationpublic final CsharpLibraryDescriptionArg.Builder addAllSrcs(Iterable<? extends SourcePath> elements)
srcs
sortedSet.elements
- An iterable of srcs elementsthis
builder for use in a chained invocationpublic CsharpLibraryDescriptionArg build()
CsharpLibraryDescriptionArg
.IllegalStateException
- if any required attributes are missing