@NotThreadSafe public static final class PrebuiltCxxLibraryGroupDescriptionArg.Builder extends Object
PrebuiltCxxLibraryGroupDescriptionArg
.
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 PrebuiltCxxLibraryGroupDescriptionArg.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 PrebuiltCxxLibraryGroupDescriptionArg.Builder from(PrebuiltCxxLibraryGroupDescriptionArg instance)
PrebuiltCxxLibraryGroupDescriptionArg
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final PrebuiltCxxLibraryGroupDescriptionArg.Builder from(com.facebook.buck.cxx.PrebuiltCxxLibraryGroupDescription.AbstractPrebuiltCxxLibraryGroupDescriptionArg instance)
AbstractPrebuiltCxxLibraryGroupDescriptionArg
instance into builder.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final PrebuiltCxxLibraryGroupDescriptionArg.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 PrebuiltCxxLibraryGroupDescriptionArg.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 PrebuiltCxxLibraryGroupDescriptionArg.Builder addExportedPreprocessorFlags(String element)
exportedPreprocessorFlags
list.element
- A exportedPreprocessorFlags elementthis
builder for use in a chained invocationpublic final PrebuiltCxxLibraryGroupDescriptionArg.Builder addExportedPreprocessorFlags(String... elements)
exportedPreprocessorFlags
list.elements
- An array of exportedPreprocessorFlags elementsthis
builder for use in a chained invocationpublic final PrebuiltCxxLibraryGroupDescriptionArg.Builder setExportedPreprocessorFlags(Iterable<String> elements)
exportedPreprocessorFlags
list.elements
- An iterable of exportedPreprocessorFlags elementsthis
builder for use in a chained invocationpublic final PrebuiltCxxLibraryGroupDescriptionArg.Builder addAllExportedPreprocessorFlags(Iterable<String> elements)
exportedPreprocessorFlags
list.elements
- An iterable of exportedPreprocessorFlags elementsthis
builder for use in a chained invocationpublic final PrebuiltCxxLibraryGroupDescriptionArg.Builder addIncludeDirs(SourcePath element)
includeDirs
list.element
- A includeDirs elementthis
builder for use in a chained invocationpublic final PrebuiltCxxLibraryGroupDescriptionArg.Builder addIncludeDirs(SourcePath... elements)
includeDirs
list.elements
- An array of includeDirs elementsthis
builder for use in a chained invocationpublic final PrebuiltCxxLibraryGroupDescriptionArg.Builder setIncludeDirs(Iterable<? extends SourcePath> elements)
includeDirs
list.elements
- An iterable of includeDirs elementsthis
builder for use in a chained invocationpublic final PrebuiltCxxLibraryGroupDescriptionArg.Builder addAllIncludeDirs(Iterable<? extends SourcePath> elements)
includeDirs
list.elements
- An iterable of includeDirs elementsthis
builder for use in a chained invocationpublic final PrebuiltCxxLibraryGroupDescriptionArg.Builder addStaticLink(String element)
staticLink
list.element
- A staticLink elementthis
builder for use in a chained invocationpublic final PrebuiltCxxLibraryGroupDescriptionArg.Builder addStaticLink(String... elements)
staticLink
list.elements
- An array of staticLink elementsthis
builder for use in a chained invocationpublic final PrebuiltCxxLibraryGroupDescriptionArg.Builder setStaticLink(Iterable<String> elements)
staticLink
list.elements
- An iterable of staticLink elementsthis
builder for use in a chained invocationpublic final PrebuiltCxxLibraryGroupDescriptionArg.Builder addAllStaticLink(Iterable<String> elements)
staticLink
list.elements
- An iterable of staticLink elementsthis
builder for use in a chained invocationpublic final PrebuiltCxxLibraryGroupDescriptionArg.Builder addStaticLibs(SourcePath element)
staticLibs
list.element
- A staticLibs elementthis
builder for use in a chained invocationpublic final PrebuiltCxxLibraryGroupDescriptionArg.Builder addStaticLibs(SourcePath... elements)
staticLibs
list.elements
- An array of staticLibs elementsthis
builder for use in a chained invocationpublic final PrebuiltCxxLibraryGroupDescriptionArg.Builder setStaticLibs(Iterable<? extends SourcePath> elements)
staticLibs
list.elements
- An iterable of staticLibs elementsthis
builder for use in a chained invocationpublic final PrebuiltCxxLibraryGroupDescriptionArg.Builder addAllStaticLibs(Iterable<? extends SourcePath> elements)
staticLibs
list.elements
- An iterable of staticLibs elementsthis
builder for use in a chained invocationpublic final PrebuiltCxxLibraryGroupDescriptionArg.Builder addStaticPicLink(String element)
staticPicLink
list.element
- A staticPicLink elementthis
builder for use in a chained invocationpublic final PrebuiltCxxLibraryGroupDescriptionArg.Builder addStaticPicLink(String... elements)
staticPicLink
list.elements
- An array of staticPicLink elementsthis
builder for use in a chained invocationpublic final PrebuiltCxxLibraryGroupDescriptionArg.Builder setStaticPicLink(Iterable<String> elements)
staticPicLink
list.elements
- An iterable of staticPicLink elementsthis
builder for use in a chained invocationpublic final PrebuiltCxxLibraryGroupDescriptionArg.Builder addAllStaticPicLink(Iterable<String> elements)
staticPicLink
list.elements
- An iterable of staticPicLink elementsthis
builder for use in a chained invocationpublic final PrebuiltCxxLibraryGroupDescriptionArg.Builder addStaticPicLibs(SourcePath element)
staticPicLibs
list.element
- A staticPicLibs elementthis
builder for use in a chained invocationpublic final PrebuiltCxxLibraryGroupDescriptionArg.Builder addStaticPicLibs(SourcePath... elements)
staticPicLibs
list.elements
- An array of staticPicLibs elementsthis
builder for use in a chained invocationpublic final PrebuiltCxxLibraryGroupDescriptionArg.Builder setStaticPicLibs(Iterable<? extends SourcePath> elements)
staticPicLibs
list.elements
- An iterable of staticPicLibs elementsthis
builder for use in a chained invocationpublic final PrebuiltCxxLibraryGroupDescriptionArg.Builder addAllStaticPicLibs(Iterable<? extends SourcePath> elements)
staticPicLibs
list.elements
- An iterable of staticPicLibs elementsthis
builder for use in a chained invocationpublic final PrebuiltCxxLibraryGroupDescriptionArg.Builder addSharedLink(String element)
sharedLink
list.element
- A sharedLink elementthis
builder for use in a chained invocationpublic final PrebuiltCxxLibraryGroupDescriptionArg.Builder addSharedLink(String... elements)
sharedLink
list.elements
- An array of sharedLink elementsthis
builder for use in a chained invocationpublic final PrebuiltCxxLibraryGroupDescriptionArg.Builder setSharedLink(Iterable<String> elements)
sharedLink
list.elements
- An iterable of sharedLink elementsthis
builder for use in a chained invocationpublic final PrebuiltCxxLibraryGroupDescriptionArg.Builder addAllSharedLink(Iterable<String> elements)
sharedLink
list.elements
- An iterable of sharedLink elementsthis
builder for use in a chained invocationpublic final PrebuiltCxxLibraryGroupDescriptionArg.Builder putSharedLibs(String key, SourcePath value)
sharedLibs
map.key
- The key in the sharedLibs mapvalue
- The associated value in the sharedLibs mapthis
builder for use in a chained invocationpublic final PrebuiltCxxLibraryGroupDescriptionArg.Builder putSharedLibs(Map.Entry<String,? extends SourcePath> entry)
sharedLibs
map. Nulls are not permittedentry
- The key and value entrythis
builder for use in a chained invocationpublic final PrebuiltCxxLibraryGroupDescriptionArg.Builder setSharedLibs(Map<String,? extends SourcePath> entries)
sharedLibs
map. Nulls are not permittedentries
- The entries that will be added to the sharedLibs mapthis
builder for use in a chained invocationpublic final PrebuiltCxxLibraryGroupDescriptionArg.Builder putAllSharedLibs(Map<String,? extends SourcePath> entries)
sharedLibs
map. Nulls are not permittedentries
- The entries that will be added to the sharedLibs mapthis
builder for use in a chained invocationpublic final PrebuiltCxxLibraryGroupDescriptionArg.Builder putImportLibs(String key, SourcePath value)
importLibs
map.key
- The key in the importLibs mapvalue
- The associated value in the importLibs mapthis
builder for use in a chained invocationpublic final PrebuiltCxxLibraryGroupDescriptionArg.Builder putImportLibs(Map.Entry<String,? extends SourcePath> entry)
importLibs
map. Nulls are not permittedentry
- The key and value entrythis
builder for use in a chained invocationpublic final PrebuiltCxxLibraryGroupDescriptionArg.Builder setImportLibs(Map<String,? extends SourcePath> entries)
importLibs
map. Nulls are not permittedentries
- The entries that will be added to the importLibs mapthis
builder for use in a chained invocationpublic final PrebuiltCxxLibraryGroupDescriptionArg.Builder putAllImportLibs(Map<String,? extends SourcePath> entries)
importLibs
map. Nulls are not permittedentries
- The entries that will be added to the importLibs mapthis
builder for use in a chained invocationpublic final PrebuiltCxxLibraryGroupDescriptionArg.Builder putProvidedSharedLibs(String key, SourcePath value)
providedSharedLibs
map.key
- The key in the providedSharedLibs mapvalue
- The associated value in the providedSharedLibs mapthis
builder for use in a chained invocationpublic final PrebuiltCxxLibraryGroupDescriptionArg.Builder putProvidedSharedLibs(Map.Entry<String,? extends SourcePath> entry)
providedSharedLibs
map. Nulls are not permittedentry
- The key and value entrythis
builder for use in a chained invocationpublic final PrebuiltCxxLibraryGroupDescriptionArg.Builder setProvidedSharedLibs(Map<String,? extends SourcePath> entries)
providedSharedLibs
map. Nulls are not permittedentries
- The entries that will be added to the providedSharedLibs mapthis
builder for use in a chained invocationpublic final PrebuiltCxxLibraryGroupDescriptionArg.Builder putAllProvidedSharedLibs(Map<String,? extends SourcePath> entries)
providedSharedLibs
map. Nulls are not permittedentries
- The entries that will be added to the providedSharedLibs mapthis
builder for use in a chained invocationpublic final PrebuiltCxxLibraryGroupDescriptionArg.Builder addExportedDeps(BuildTarget element)
exportedDeps
sortedSet.element
- A exportedDeps elementthis
builder for use in a chained invocationpublic final PrebuiltCxxLibraryGroupDescriptionArg.Builder addExportedDeps(BuildTarget... elements)
exportedDeps
sortedSet.elements
- An array of exportedDeps elementsthis
builder for use in a chained invocationpublic final PrebuiltCxxLibraryGroupDescriptionArg.Builder setExportedDeps(Iterable<? extends BuildTarget> elements)
exportedDeps
sortedSet.elements
- An iterable of exportedDeps elementsthis
builder for use in a chained invocationpublic final PrebuiltCxxLibraryGroupDescriptionArg.Builder addAllExportedDeps(Iterable<? extends BuildTarget> elements)
exportedDeps
sortedSet.elements
- An iterable of exportedDeps elementsthis
builder for use in a chained invocationpublic final PrebuiltCxxLibraryGroupDescriptionArg.Builder setExportedPlatformDeps(PatternMatchedCollection<com.google.common.collect.ImmutableSortedSet<BuildTarget>> exportedPlatformDeps)
exportedPlatformDeps
attribute.
If not set, this attribute will have a default value as returned by the initializer of exportedPlatformDeps
.
exportedPlatformDeps
- The value for exportedPlatformDepsthis
builder for use in a chained invocationpublic final PrebuiltCxxLibraryGroupDescriptionArg.Builder setSupportedPlatformsRegex(Pattern supportedPlatformsRegex)
supportedPlatformsRegex
to supportedPlatformsRegex.supportedPlatformsRegex
- The value for supportedPlatformsRegexthis
builder for chained invocationpublic final PrebuiltCxxLibraryGroupDescriptionArg.Builder setSupportedPlatformsRegex(Optional<? extends Pattern> supportedPlatformsRegex)
supportedPlatformsRegex
to supportedPlatformsRegex.supportedPlatformsRegex
- The value for supportedPlatformsRegexthis
builder for use in a chained invocationpublic final PrebuiltCxxLibraryGroupDescriptionArg.Builder addLicenses(SourcePath element)
licenses
set.element
- A licenses elementthis
builder for use in a chained invocationpublic final PrebuiltCxxLibraryGroupDescriptionArg.Builder addLicenses(SourcePath... elements)
licenses
set.elements
- An array of licenses elementsthis
builder for use in a chained invocationpublic final PrebuiltCxxLibraryGroupDescriptionArg.Builder setLicenses(Iterable<? extends SourcePath> elements)
licenses
set.elements
- An iterable of licenses elementsthis
builder for use in a chained invocationpublic final PrebuiltCxxLibraryGroupDescriptionArg.Builder addAllLicenses(Iterable<? extends SourcePath> elements)
licenses
set.elements
- An iterable of licenses elementsthis
builder for use in a chained invocationpublic final PrebuiltCxxLibraryGroupDescriptionArg.Builder addLabels(String element)
labels
sortedSet.element
- A labels elementthis
builder for use in a chained invocationpublic final PrebuiltCxxLibraryGroupDescriptionArg.Builder addLabels(String... elements)
labels
sortedSet.elements
- An array of labels elementsthis
builder for use in a chained invocationpublic final PrebuiltCxxLibraryGroupDescriptionArg.Builder setLabels(Iterable<String> elements)
labels
sortedSet.elements
- An iterable of labels elementsthis
builder for use in a chained invocationpublic final PrebuiltCxxLibraryGroupDescriptionArg.Builder addAllLabels(Iterable<String> elements)
labels
sortedSet.elements
- An iterable of labels elementsthis
builder for use in a chained invocationpublic final PrebuiltCxxLibraryGroupDescriptionArg.Builder setDefaultTargetPlatform(UnconfiguredBuildTarget defaultTargetPlatform)
defaultTargetPlatform
to defaultTargetPlatform.defaultTargetPlatform
- The value for defaultTargetPlatformthis
builder for chained invocationpublic final PrebuiltCxxLibraryGroupDescriptionArg.Builder setDefaultTargetPlatform(Optional<? extends UnconfiguredBuildTarget> defaultTargetPlatform)
defaultTargetPlatform
to defaultTargetPlatform.defaultTargetPlatform
- The value for defaultTargetPlatformthis
builder for use in a chained invocationpublic final PrebuiltCxxLibraryGroupDescriptionArg.Builder addCompatibleWith(UnconfiguredBuildTarget element)
compatibleWith
list.element
- A compatibleWith elementthis
builder for use in a chained invocationpublic final PrebuiltCxxLibraryGroupDescriptionArg.Builder addCompatibleWith(UnconfiguredBuildTarget... elements)
compatibleWith
list.elements
- An array of compatibleWith elementsthis
builder for use in a chained invocationpublic final PrebuiltCxxLibraryGroupDescriptionArg.Builder setCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
compatibleWith
list.elements
- An iterable of compatibleWith elementsthis
builder for use in a chained invocationpublic final PrebuiltCxxLibraryGroupDescriptionArg.Builder addAllCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
compatibleWith
list.elements
- An iterable of compatibleWith elementsthis
builder for use in a chained invocationpublic final PrebuiltCxxLibraryGroupDescriptionArg.Builder setName(String name)
name
attribute.name
- The value for namethis
builder for use in a chained invocationpublic final PrebuiltCxxLibraryGroupDescriptionArg.Builder addDeps(BuildTarget element)
deps
sortedSet.element
- A deps elementthis
builder for use in a chained invocationpublic final PrebuiltCxxLibraryGroupDescriptionArg.Builder addDeps(BuildTarget... elements)
deps
sortedSet.elements
- An array of deps elementsthis
builder for use in a chained invocationpublic final PrebuiltCxxLibraryGroupDescriptionArg.Builder setDeps(Iterable<? extends BuildTarget> elements)
deps
sortedSet.elements
- An iterable of deps elementsthis
builder for use in a chained invocationpublic final PrebuiltCxxLibraryGroupDescriptionArg.Builder addAllDeps(Iterable<? extends BuildTarget> elements)
deps
sortedSet.elements
- An iterable of deps elementsthis
builder for use in a chained invocationpublic PrebuiltCxxLibraryGroupDescriptionArg build()
PrebuiltCxxLibraryGroupDescriptionArg
.IllegalStateException
- if any required attributes are missing