@NotThreadSafe public static final class AppleToolchainDescriptionArg.Builder extends Object
AppleToolchainDescriptionArg
.
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 AppleToolchainDescriptionArg.Builder from(AppleToolchainDescriptionArg instance)
AppleToolchainDescriptionArg
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final AppleToolchainDescriptionArg.Builder from(com.facebook.buck.apple.AppleToolchainDescription.AbstractAppleToolchainDescriptionArg instance)
AbstractAppleToolchainDescriptionArg
instance into builder.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final AppleToolchainDescriptionArg.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 AppleToolchainDescriptionArg.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 AppleToolchainDescriptionArg.Builder setSdkName(String sdkName)
sdkName
attribute.sdkName
- The value for sdkNamethis
builder for use in a chained invocationpublic final AppleToolchainDescriptionArg.Builder setArchitecture(String architecture)
architecture
attribute.architecture
- The value for architecturethis
builder for use in a chained invocationpublic final AppleToolchainDescriptionArg.Builder setPlatformPath(SourcePath platformPath)
platformPath
attribute.platformPath
- The value for platformPaththis
builder for use in a chained invocationpublic final AppleToolchainDescriptionArg.Builder setSdkPath(SourcePath sdkPath)
sdkPath
attribute.sdkPath
- The value for sdkPaththis
builder for use in a chained invocationpublic final AppleToolchainDescriptionArg.Builder setVersion(String version)
version
attribute.version
- The value for versionthis
builder for use in a chained invocationpublic final AppleToolchainDescriptionArg.Builder setBuildVersion(String buildVersion)
buildVersion
to buildVersion.buildVersion
- The value for buildVersionthis
builder for chained invocationpublic final AppleToolchainDescriptionArg.Builder setBuildVersion(Optional<String> buildVersion)
buildVersion
to buildVersion.buildVersion
- The value for buildVersionthis
builder for use in a chained invocationpublic final AppleToolchainDescriptionArg.Builder setMinVersion(String minVersion)
minVersion
attribute.minVersion
- The value for minVersionthis
builder for use in a chained invocationpublic final AppleToolchainDescriptionArg.Builder setActool(SourcePath actool)
actool
attribute.actool
- The value for actoolthis
builder for use in a chained invocationpublic final AppleToolchainDescriptionArg.Builder setDsymutil(SourcePath dsymutil)
dsymutil
attribute.dsymutil
- The value for dsymutilthis
builder for use in a chained invocationpublic final AppleToolchainDescriptionArg.Builder setIbtool(SourcePath ibtool)
ibtool
attribute.ibtool
- The value for ibtoolthis
builder for use in a chained invocationpublic final AppleToolchainDescriptionArg.Builder setLibtool(SourcePath libtool)
libtool
attribute.libtool
- The value for libtoolthis
builder for use in a chained invocationpublic final AppleToolchainDescriptionArg.Builder setLipo(SourcePath lipo)
lipo
attribute.lipo
- The value for lipothis
builder for use in a chained invocationpublic final AppleToolchainDescriptionArg.Builder setLldb(SourcePath lldb)
lldb
attribute.lldb
- The value for lldbthis
builder for use in a chained invocationpublic final AppleToolchainDescriptionArg.Builder setMomc(SourcePath momc)
momc
attribute.momc
- The value for momcthis
builder for use in a chained invocationpublic final AppleToolchainDescriptionArg.Builder setXctest(SourcePath xctest)
xctest
attribute.xctest
- The value for xctestthis
builder for use in a chained invocationpublic final AppleToolchainDescriptionArg.Builder setCopySceneKitAssets(SourcePath copySceneKitAssets)
copySceneKitAssets
to copySceneKitAssets.copySceneKitAssets
- The value for copySceneKitAssetsthis
builder for chained invocationpublic final AppleToolchainDescriptionArg.Builder setCopySceneKitAssets(Optional<? extends SourcePath> copySceneKitAssets)
copySceneKitAssets
to copySceneKitAssets.copySceneKitAssets
- The value for copySceneKitAssetsthis
builder for use in a chained invocationpublic final AppleToolchainDescriptionArg.Builder setCodesign(SourcePath codesign)
codesign
attribute.codesign
- The value for codesignthis
builder for use in a chained invocationpublic final AppleToolchainDescriptionArg.Builder setCodesignAllocate(SourcePath codesignAllocate)
codesignAllocate
attribute.codesignAllocate
- The value for codesignAllocatethis
builder for use in a chained invocationpublic final AppleToolchainDescriptionArg.Builder setCxxToolchain(BuildTarget cxxToolchain)
cxxToolchain
attribute.cxxToolchain
- The value for cxxToolchainthis
builder for use in a chained invocationpublic final AppleToolchainDescriptionArg.Builder setSwiftToolchain(BuildTarget swiftToolchain)
swiftToolchain
to swiftToolchain.swiftToolchain
- The value for swiftToolchainthis
builder for chained invocationpublic final AppleToolchainDescriptionArg.Builder setSwiftToolchain(Optional<? extends BuildTarget> swiftToolchain)
swiftToolchain
to swiftToolchain.swiftToolchain
- The value for swiftToolchainthis
builder for use in a chained invocationpublic final AppleToolchainDescriptionArg.Builder setDeveloperPath(SourcePath developerPath)
developerPath
to developerPath.developerPath
- The value for developerPaththis
builder for chained invocationpublic final AppleToolchainDescriptionArg.Builder setDeveloperPath(Optional<? extends SourcePath> developerPath)
developerPath
to developerPath.developerPath
- The value for developerPaththis
builder for use in a chained invocationpublic final AppleToolchainDescriptionArg.Builder setXcodeVersion(String xcodeVersion)
xcodeVersion
attribute.xcodeVersion
- The value for xcodeVersionthis
builder for use in a chained invocationpublic final AppleToolchainDescriptionArg.Builder setXcodeBuildVersion(String xcodeBuildVersion)
xcodeBuildVersion
attribute.xcodeBuildVersion
- The value for xcodeBuildVersionthis
builder for use in a chained invocationpublic final AppleToolchainDescriptionArg.Builder setWorkAroundDsymutilLtoStackOverflowBug(boolean workAroundDsymutilLtoStackOverflowBug)
workAroundDsymutilLtoStackOverflowBug
to workAroundDsymutilLtoStackOverflowBug.workAroundDsymutilLtoStackOverflowBug
- The value for workAroundDsymutilLtoStackOverflowBugthis
builder for chained invocationpublic final AppleToolchainDescriptionArg.Builder setWorkAroundDsymutilLtoStackOverflowBug(Optional<Boolean> workAroundDsymutilLtoStackOverflowBug)
workAroundDsymutilLtoStackOverflowBug
to workAroundDsymutilLtoStackOverflowBug.workAroundDsymutilLtoStackOverflowBug
- The value for workAroundDsymutilLtoStackOverflowBugthis
builder for use in a chained invocationpublic final AppleToolchainDescriptionArg.Builder addLicenses(SourcePath element)
licenses
set.element
- A licenses elementthis
builder for use in a chained invocationpublic final AppleToolchainDescriptionArg.Builder addLicenses(SourcePath... elements)
licenses
set.elements
- An array of licenses elementsthis
builder for use in a chained invocationpublic final AppleToolchainDescriptionArg.Builder setLicenses(Iterable<? extends SourcePath> elements)
licenses
set.elements
- An iterable of licenses elementsthis
builder for use in a chained invocationpublic final AppleToolchainDescriptionArg.Builder addAllLicenses(Iterable<? extends SourcePath> elements)
licenses
set.elements
- An iterable of licenses elementsthis
builder for use in a chained invocationpublic final AppleToolchainDescriptionArg.Builder addLabels(String element)
labels
sortedSet.element
- A labels elementthis
builder for use in a chained invocationpublic final AppleToolchainDescriptionArg.Builder addLabels(String... elements)
labels
sortedSet.elements
- An array of labels elementsthis
builder for use in a chained invocationpublic final AppleToolchainDescriptionArg.Builder setLabels(Iterable<String> elements)
labels
sortedSet.elements
- An iterable of labels elementsthis
builder for use in a chained invocationpublic final AppleToolchainDescriptionArg.Builder addAllLabels(Iterable<String> elements)
labels
sortedSet.elements
- An iterable of labels elementsthis
builder for use in a chained invocationpublic final AppleToolchainDescriptionArg.Builder setDefaultTargetPlatform(UnconfiguredBuildTarget defaultTargetPlatform)
defaultTargetPlatform
to defaultTargetPlatform.defaultTargetPlatform
- The value for defaultTargetPlatformthis
builder for chained invocationpublic final AppleToolchainDescriptionArg.Builder setDefaultTargetPlatform(Optional<? extends UnconfiguredBuildTarget> defaultTargetPlatform)
defaultTargetPlatform
to defaultTargetPlatform.defaultTargetPlatform
- The value for defaultTargetPlatformthis
builder for use in a chained invocationpublic final AppleToolchainDescriptionArg.Builder addCompatibleWith(UnconfiguredBuildTarget element)
compatibleWith
list.element
- A compatibleWith elementthis
builder for use in a chained invocationpublic final AppleToolchainDescriptionArg.Builder addCompatibleWith(UnconfiguredBuildTarget... elements)
compatibleWith
list.elements
- An array of compatibleWith elementsthis
builder for use in a chained invocationpublic final AppleToolchainDescriptionArg.Builder setCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
compatibleWith
list.elements
- An iterable of compatibleWith elementsthis
builder for use in a chained invocationpublic final AppleToolchainDescriptionArg.Builder addAllCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
compatibleWith
list.elements
- An iterable of compatibleWith elementsthis
builder for use in a chained invocationpublic final AppleToolchainDescriptionArg.Builder setName(String name)
name
attribute.name
- The value for namethis
builder for use in a chained invocationpublic AppleToolchainDescriptionArg build()
AppleToolchainDescriptionArg
.IllegalStateException
- if any required attributes are missing