@NotThreadSafe public static final class SwiftLibraryDescriptionArg.Builder extends Object
SwiftLibraryDescriptionArg.
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 SwiftLibraryDescriptionArg.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 SwiftLibraryDescriptionArg.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 SwiftLibraryDescriptionArg.Builder from(SwiftLibraryDescriptionArg instance)
SwiftLibraryDescriptionArg instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final SwiftLibraryDescriptionArg.Builder from(com.facebook.buck.swift.SwiftLibraryDescription.AbstractSwiftLibraryDescriptionArg instance)
AbstractSwiftLibraryDescriptionArg instance into builder.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final SwiftLibraryDescriptionArg.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 SwiftLibraryDescriptionArg.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 SwiftLibraryDescriptionArg.Builder setModuleName(String moduleName)
moduleName to moduleName.moduleName - The value for moduleNamethis builder for chained invocationpublic final SwiftLibraryDescriptionArg.Builder setModuleName(Optional<String> moduleName)
moduleName to moduleName.moduleName - The value for moduleNamethis builder for use in a chained invocationpublic final SwiftLibraryDescriptionArg.Builder addCompilerFlags(StringWithMacros element)
compilerFlags list.element - A compilerFlags elementthis builder for use in a chained invocationpublic final SwiftLibraryDescriptionArg.Builder addCompilerFlags(StringWithMacros... elements)
compilerFlags list.elements - An array of compilerFlags elementsthis builder for use in a chained invocationpublic final SwiftLibraryDescriptionArg.Builder setCompilerFlags(Iterable<? extends StringWithMacros> elements)
compilerFlags list.elements - An iterable of compilerFlags elementsthis builder for use in a chained invocationpublic final SwiftLibraryDescriptionArg.Builder addAllCompilerFlags(Iterable<? extends StringWithMacros> elements)
compilerFlags list.elements - An iterable of compilerFlags elementsthis builder for use in a chained invocationpublic final SwiftLibraryDescriptionArg.Builder setVersion(String version)
version to version.version - The value for versionthis builder for chained invocationpublic final SwiftLibraryDescriptionArg.Builder setVersion(Optional<String> version)
version to version.version - The value for versionthis builder for use in a chained invocationpublic final SwiftLibraryDescriptionArg.Builder addFrameworks(FrameworkPath element)
frameworks sortedSet.element - A frameworks elementthis builder for use in a chained invocationpublic final SwiftLibraryDescriptionArg.Builder addFrameworks(FrameworkPath... elements)
frameworks sortedSet.elements - An array of frameworks elementsthis builder for use in a chained invocationpublic final SwiftLibraryDescriptionArg.Builder setFrameworks(Iterable<? extends FrameworkPath> elements)
frameworks sortedSet.elements - An iterable of frameworks elementsthis builder for use in a chained invocationpublic final SwiftLibraryDescriptionArg.Builder addAllFrameworks(Iterable<? extends FrameworkPath> elements)
frameworks sortedSet.elements - An iterable of frameworks elementsthis builder for use in a chained invocationpublic final SwiftLibraryDescriptionArg.Builder addLibraries(FrameworkPath element)
libraries sortedSet.element - A libraries elementthis builder for use in a chained invocationpublic final SwiftLibraryDescriptionArg.Builder addLibraries(FrameworkPath... elements)
libraries sortedSet.elements - An array of libraries elementsthis builder for use in a chained invocationpublic final SwiftLibraryDescriptionArg.Builder setLibraries(Iterable<? extends FrameworkPath> elements)
libraries sortedSet.elements - An iterable of libraries elementsthis builder for use in a chained invocationpublic final SwiftLibraryDescriptionArg.Builder addAllLibraries(Iterable<? extends FrameworkPath> elements)
libraries sortedSet.elements - An iterable of libraries elementsthis builder for use in a chained invocationpublic final SwiftLibraryDescriptionArg.Builder setEnableObjcInterop(boolean enableObjcInterop)
enableObjcInterop to enableObjcInterop.enableObjcInterop - The value for enableObjcInteropthis builder for chained invocationpublic final SwiftLibraryDescriptionArg.Builder setEnableObjcInterop(Optional<Boolean> enableObjcInterop)
enableObjcInterop to enableObjcInterop.enableObjcInterop - The value for enableObjcInteropthis builder for use in a chained invocationpublic final SwiftLibraryDescriptionArg.Builder setSupportedPlatformsRegex(Pattern supportedPlatformsRegex)
supportedPlatformsRegex to supportedPlatformsRegex.supportedPlatformsRegex - The value for supportedPlatformsRegexthis builder for chained invocationpublic final SwiftLibraryDescriptionArg.Builder setSupportedPlatformsRegex(Optional<? extends Pattern> supportedPlatformsRegex)
supportedPlatformsRegex to supportedPlatformsRegex.supportedPlatformsRegex - The value for supportedPlatformsRegexthis builder for use in a chained invocationpublic final SwiftLibraryDescriptionArg.Builder setSoname(String soname)
soname to soname.soname - The value for sonamethis builder for chained invocationpublic final SwiftLibraryDescriptionArg.Builder setSoname(Optional<String> soname)
soname to soname.soname - The value for sonamethis builder for use in a chained invocationpublic final SwiftLibraryDescriptionArg.Builder setBridgingHeader(SourcePath bridgingHeader)
bridgingHeader to bridgingHeader.bridgingHeader - The value for bridgingHeaderthis builder for chained invocationpublic final SwiftLibraryDescriptionArg.Builder setBridgingHeader(Optional<? extends SourcePath> bridgingHeader)
bridgingHeader to bridgingHeader.bridgingHeader - The value for bridgingHeaderthis builder for use in a chained invocationpublic final SwiftLibraryDescriptionArg.Builder setPreferredLinkage(NativeLinkableGroup.Linkage preferredLinkage)
preferredLinkage to preferredLinkage.preferredLinkage - The value for preferredLinkagethis builder for chained invocationpublic final SwiftLibraryDescriptionArg.Builder setPreferredLinkage(Optional<? extends NativeLinkableGroup.Linkage> preferredLinkage)
preferredLinkage to preferredLinkage.preferredLinkage - The value for preferredLinkagethis builder for use in a chained invocationpublic final SwiftLibraryDescriptionArg.Builder setTargetSdkVersion(String targetSdkVersion)
targetSdkVersion to targetSdkVersion.targetSdkVersion - The value for targetSdkVersionthis builder for chained invocationpublic final SwiftLibraryDescriptionArg.Builder setTargetSdkVersion(Optional<String> targetSdkVersion)
targetSdkVersion to targetSdkVersion.targetSdkVersion - The value for targetSdkVersionthis builder for use in a chained invocationpublic final SwiftLibraryDescriptionArg.Builder addLicenses(SourcePath element)
licenses set.element - A licenses elementthis builder for use in a chained invocationpublic final SwiftLibraryDescriptionArg.Builder addLicenses(SourcePath... elements)
licenses set.elements - An array of licenses elementsthis builder for use in a chained invocationpublic final SwiftLibraryDescriptionArg.Builder setLicenses(Iterable<? extends SourcePath> elements)
licenses set.elements - An iterable of licenses elementsthis builder for use in a chained invocationpublic final SwiftLibraryDescriptionArg.Builder addAllLicenses(Iterable<? extends SourcePath> elements)
licenses set.elements - An iterable of licenses elementsthis builder for use in a chained invocationpublic final SwiftLibraryDescriptionArg.Builder addLabels(String element)
labels sortedSet.element - A labels elementthis builder for use in a chained invocationpublic final SwiftLibraryDescriptionArg.Builder addLabels(String... elements)
labels sortedSet.elements - An array of labels elementsthis builder for use in a chained invocationpublic final SwiftLibraryDescriptionArg.Builder setLabels(Iterable<String> elements)
labels sortedSet.elements - An iterable of labels elementsthis builder for use in a chained invocationpublic final SwiftLibraryDescriptionArg.Builder addAllLabels(Iterable<String> elements)
labels sortedSet.elements - An iterable of labels elementsthis builder for use in a chained invocationpublic final SwiftLibraryDescriptionArg.Builder setDefaultTargetPlatform(UnconfiguredBuildTarget defaultTargetPlatform)
defaultTargetPlatform to defaultTargetPlatform.defaultTargetPlatform - The value for defaultTargetPlatformthis builder for chained invocationpublic final SwiftLibraryDescriptionArg.Builder setDefaultTargetPlatform(Optional<? extends UnconfiguredBuildTarget> defaultTargetPlatform)
defaultTargetPlatform to defaultTargetPlatform.defaultTargetPlatform - The value for defaultTargetPlatformthis builder for use in a chained invocationpublic final SwiftLibraryDescriptionArg.Builder addCompatibleWith(UnconfiguredBuildTarget element)
compatibleWith list.element - A compatibleWith elementthis builder for use in a chained invocationpublic final SwiftLibraryDescriptionArg.Builder addCompatibleWith(UnconfiguredBuildTarget... elements)
compatibleWith list.elements - An array of compatibleWith elementsthis builder for use in a chained invocationpublic final SwiftLibraryDescriptionArg.Builder setCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
compatibleWith list.elements - An iterable of compatibleWith elementsthis builder for use in a chained invocationpublic final SwiftLibraryDescriptionArg.Builder addAllCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
compatibleWith list.elements - An iterable of compatibleWith elementsthis builder for use in a chained invocationpublic final SwiftLibraryDescriptionArg.Builder setName(String name)
name attribute.name - The value for namethis builder for use in a chained invocationpublic final SwiftLibraryDescriptionArg.Builder addDeps(BuildTarget element)
deps sortedSet.element - A deps elementthis builder for use in a chained invocationpublic final SwiftLibraryDescriptionArg.Builder addDeps(BuildTarget... elements)
deps sortedSet.elements - An array of deps elementsthis builder for use in a chained invocationpublic final SwiftLibraryDescriptionArg.Builder setDeps(Iterable<? extends BuildTarget> elements)
deps sortedSet.elements - An iterable of deps elementsthis builder for use in a chained invocationpublic final SwiftLibraryDescriptionArg.Builder addAllDeps(Iterable<? extends BuildTarget> elements)
deps sortedSet.elements - An iterable of deps elementsthis builder for use in a chained invocationpublic final SwiftLibraryDescriptionArg.Builder addSrcs(SourcePath element)
srcs sortedSet.element - A srcs elementthis builder for use in a chained invocationpublic final SwiftLibraryDescriptionArg.Builder addSrcs(SourcePath... elements)
srcs sortedSet.elements - An array of srcs elementsthis builder for use in a chained invocationpublic final SwiftLibraryDescriptionArg.Builder setSrcs(Iterable<? extends SourcePath> elements)
srcs sortedSet.elements - An iterable of srcs elementsthis builder for use in a chained invocationpublic final SwiftLibraryDescriptionArg.Builder addAllSrcs(Iterable<? extends SourcePath> elements)
srcs sortedSet.elements - An iterable of srcs elementsthis builder for use in a chained invocationpublic SwiftLibraryDescriptionArg build()
SwiftLibraryDescriptionArg.IllegalStateException - if any required attributes are missing