Package com.facebook.buck.apple
Class AppleToolchainDescriptionArg.Builder
- java.lang.Object
-
- com.facebook.buck.apple.AppleToolchainDescriptionArg.Builder
-
- Enclosing class:
- AppleToolchainDescriptionArg
@NotThreadSafe public static final class AppleToolchainDescriptionArg.Builder extends Object
Builds instances of typeAppleToolchainDescriptionArg
. Initialize attributes and then invoke thebuild()
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.
-
-
Method Summary
-
-
-
Method Detail
-
from
public final AppleToolchainDescriptionArg.Builder from(AppleToolchainDescriptionArg instance)
Fill a builder with attribute values from the providedAppleToolchainDescriptionArg
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
from
public final AppleToolchainDescriptionArg.Builder from(com.facebook.buck.apple.AppleToolchainDescription.AbstractAppleToolchainDescriptionArg instance)
Copy abstract value typeAbstractAppleToolchainDescriptionArg
instance into builder.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
from
public final AppleToolchainDescriptionArg.Builder from(BuildRuleArg instance)
Fill a builder with attribute values from the providedcom.facebook.buck.core.description.arg.BuildRuleArg
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
from
public final AppleToolchainDescriptionArg.Builder from(ConstructorArg instance)
Fill a builder with attribute values from the providedcom.facebook.buck.core.description.arg.ConstructorArg
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
setSdkName
public final AppleToolchainDescriptionArg.Builder setSdkName(String sdkName)
Initializes the value for thesdkName
attribute.- Parameters:
sdkName
- The value for sdkName- Returns:
this
builder for use in a chained invocation
-
setArchitecture
public final AppleToolchainDescriptionArg.Builder setArchitecture(String architecture)
Initializes the value for thearchitecture
attribute.- Parameters:
architecture
- The value for architecture- Returns:
this
builder for use in a chained invocation
-
setPlatformPath
public final AppleToolchainDescriptionArg.Builder setPlatformPath(SourcePath platformPath)
Initializes the value for theplatformPath
attribute.- Parameters:
platformPath
- The value for platformPath- Returns:
this
builder for use in a chained invocation
-
setSdkPath
public final AppleToolchainDescriptionArg.Builder setSdkPath(SourcePath sdkPath)
Initializes the value for thesdkPath
attribute.- Parameters:
sdkPath
- The value for sdkPath- Returns:
this
builder for use in a chained invocation
-
setVersion
public final AppleToolchainDescriptionArg.Builder setVersion(String version)
Initializes the value for theversion
attribute.- Parameters:
version
- The value for version- Returns:
this
builder for use in a chained invocation
-
setBuildVersion
public final AppleToolchainDescriptionArg.Builder setBuildVersion(String buildVersion)
Initializes the optional valuebuildVersion
to buildVersion.- Parameters:
buildVersion
- The value for buildVersion- Returns:
this
builder for chained invocation
-
setBuildVersion
public final AppleToolchainDescriptionArg.Builder setBuildVersion(Optional<String> buildVersion)
Initializes the optional valuebuildVersion
to buildVersion.- Parameters:
buildVersion
- The value for buildVersion- Returns:
this
builder for use in a chained invocation
-
setMinVersion
public final AppleToolchainDescriptionArg.Builder setMinVersion(String minVersion)
Initializes the value for theminVersion
attribute.- Parameters:
minVersion
- The value for minVersion- Returns:
this
builder for use in a chained invocation
-
setActool
public final AppleToolchainDescriptionArg.Builder setActool(SourcePath actool)
Initializes the value for theactool
attribute.- Parameters:
actool
- The value for actool- Returns:
this
builder for use in a chained invocation
-
setDsymutil
public final AppleToolchainDescriptionArg.Builder setDsymutil(SourcePath dsymutil)
Initializes the value for thedsymutil
attribute.- Parameters:
dsymutil
- The value for dsymutil- Returns:
this
builder for use in a chained invocation
-
setIbtool
public final AppleToolchainDescriptionArg.Builder setIbtool(SourcePath ibtool)
Initializes the value for theibtool
attribute.- Parameters:
ibtool
- The value for ibtool- Returns:
this
builder for use in a chained invocation
-
setLibtool
public final AppleToolchainDescriptionArg.Builder setLibtool(SourcePath libtool)
Initializes the value for thelibtool
attribute.- Parameters:
libtool
- The value for libtool- Returns:
this
builder for use in a chained invocation
-
setLipo
public final AppleToolchainDescriptionArg.Builder setLipo(SourcePath lipo)
Initializes the value for thelipo
attribute.- Parameters:
lipo
- The value for lipo- Returns:
this
builder for use in a chained invocation
-
setLldb
public final AppleToolchainDescriptionArg.Builder setLldb(SourcePath lldb)
Initializes the value for thelldb
attribute.- Parameters:
lldb
- The value for lldb- Returns:
this
builder for use in a chained invocation
-
setMomc
public final AppleToolchainDescriptionArg.Builder setMomc(SourcePath momc)
Initializes the value for themomc
attribute.- Parameters:
momc
- The value for momc- Returns:
this
builder for use in a chained invocation
-
setXctest
public final AppleToolchainDescriptionArg.Builder setXctest(SourcePath xctest)
Initializes the value for thexctest
attribute.- Parameters:
xctest
- The value for xctest- Returns:
this
builder for use in a chained invocation
-
setCopySceneKitAssets
public final AppleToolchainDescriptionArg.Builder setCopySceneKitAssets(SourcePath copySceneKitAssets)
Initializes the optional valuecopySceneKitAssets
to copySceneKitAssets.- Parameters:
copySceneKitAssets
- The value for copySceneKitAssets- Returns:
this
builder for chained invocation
-
setCopySceneKitAssets
public final AppleToolchainDescriptionArg.Builder setCopySceneKitAssets(Optional<? extends SourcePath> copySceneKitAssets)
Initializes the optional valuecopySceneKitAssets
to copySceneKitAssets.- Parameters:
copySceneKitAssets
- The value for copySceneKitAssets- Returns:
this
builder for use in a chained invocation
-
setCodesign
public final AppleToolchainDescriptionArg.Builder setCodesign(SourcePath codesign)
Initializes the value for thecodesign
attribute.- Parameters:
codesign
- The value for codesign- Returns:
this
builder for use in a chained invocation
-
setCodesignAllocate
public final AppleToolchainDescriptionArg.Builder setCodesignAllocate(SourcePath codesignAllocate)
Initializes the value for thecodesignAllocate
attribute.- Parameters:
codesignAllocate
- The value for codesignAllocate- Returns:
this
builder for use in a chained invocation
-
setCxxToolchain
public final AppleToolchainDescriptionArg.Builder setCxxToolchain(BuildTarget cxxToolchain)
Initializes the value for thecxxToolchain
attribute.- Parameters:
cxxToolchain
- The value for cxxToolchain- Returns:
this
builder for use in a chained invocation
-
setSwiftToolchain
public final AppleToolchainDescriptionArg.Builder setSwiftToolchain(BuildTarget swiftToolchain)
Initializes the optional valueswiftToolchain
to swiftToolchain.- Parameters:
swiftToolchain
- The value for swiftToolchain- Returns:
this
builder for chained invocation
-
setSwiftToolchain
public final AppleToolchainDescriptionArg.Builder setSwiftToolchain(Optional<? extends BuildTarget> swiftToolchain)
Initializes the optional valueswiftToolchain
to swiftToolchain.- Parameters:
swiftToolchain
- The value for swiftToolchain- Returns:
this
builder for use in a chained invocation
-
setDeveloperPath
public final AppleToolchainDescriptionArg.Builder setDeveloperPath(SourcePath developerPath)
Initializes the optional valuedeveloperPath
to developerPath.- Parameters:
developerPath
- The value for developerPath- Returns:
this
builder for chained invocation
-
setDeveloperPath
public final AppleToolchainDescriptionArg.Builder setDeveloperPath(Optional<? extends SourcePath> developerPath)
Initializes the optional valuedeveloperPath
to developerPath.- Parameters:
developerPath
- The value for developerPath- Returns:
this
builder for use in a chained invocation
-
setXcodeVersion
public final AppleToolchainDescriptionArg.Builder setXcodeVersion(String xcodeVersion)
Initializes the value for thexcodeVersion
attribute.- Parameters:
xcodeVersion
- The value for xcodeVersion- Returns:
this
builder for use in a chained invocation
-
setXcodeBuildVersion
public final AppleToolchainDescriptionArg.Builder setXcodeBuildVersion(String xcodeBuildVersion)
Initializes the value for thexcodeBuildVersion
attribute.- Parameters:
xcodeBuildVersion
- The value for xcodeBuildVersion- Returns:
this
builder for use in a chained invocation
-
setWorkAroundDsymutilLtoStackOverflowBug
public final AppleToolchainDescriptionArg.Builder setWorkAroundDsymutilLtoStackOverflowBug(boolean workAroundDsymutilLtoStackOverflowBug)
Initializes the optional valueworkAroundDsymutilLtoStackOverflowBug
to workAroundDsymutilLtoStackOverflowBug.- Parameters:
workAroundDsymutilLtoStackOverflowBug
- The value for workAroundDsymutilLtoStackOverflowBug- Returns:
this
builder for chained invocation
-
setWorkAroundDsymutilLtoStackOverflowBug
public final AppleToolchainDescriptionArg.Builder setWorkAroundDsymutilLtoStackOverflowBug(Optional<Boolean> workAroundDsymutilLtoStackOverflowBug)
Initializes the optional valueworkAroundDsymutilLtoStackOverflowBug
to workAroundDsymutilLtoStackOverflowBug.- Parameters:
workAroundDsymutilLtoStackOverflowBug
- The value for workAroundDsymutilLtoStackOverflowBug- Returns:
this
builder for use in a chained invocation
-
addLicenses
public final AppleToolchainDescriptionArg.Builder addLicenses(SourcePath element)
Adds one element tolicenses
set.- Parameters:
element
- A licenses element- Returns:
this
builder for use in a chained invocation
-
addLicenses
public final AppleToolchainDescriptionArg.Builder addLicenses(SourcePath... elements)
Adds elements tolicenses
set.- Parameters:
elements
- An array of licenses elements- Returns:
this
builder for use in a chained invocation
-
setLicenses
public final AppleToolchainDescriptionArg.Builder setLicenses(Iterable<? extends SourcePath> elements)
Sets or replaces all elements forlicenses
set.- Parameters:
elements
- An iterable of licenses elements- Returns:
this
builder for use in a chained invocation
-
addAllLicenses
public final AppleToolchainDescriptionArg.Builder addAllLicenses(Iterable<? extends SourcePath> elements)
Adds elements tolicenses
set.- Parameters:
elements
- An iterable of licenses elements- Returns:
this
builder for use in a chained invocation
-
addLabels
public final AppleToolchainDescriptionArg.Builder addLabels(String element)
Adds one element tolabels
sortedSet.- Parameters:
element
- A labels element- Returns:
this
builder for use in a chained invocation
-
addLabels
public final AppleToolchainDescriptionArg.Builder addLabels(String... elements)
Adds elements tolabels
sortedSet.- Parameters:
elements
- An array of labels elements- Returns:
this
builder for use in a chained invocation
-
setLabels
public final AppleToolchainDescriptionArg.Builder setLabels(Iterable<String> elements)
Sets or replaces all elements forlabels
sortedSet.- Parameters:
elements
- An iterable of labels elements- Returns:
this
builder for use in a chained invocation
-
addAllLabels
public final AppleToolchainDescriptionArg.Builder addAllLabels(Iterable<String> elements)
Adds elements tolabels
sortedSet.- Parameters:
elements
- An iterable of labels elements- Returns:
this
builder for use in a chained invocation
-
setDefaultTargetPlatform
public final AppleToolchainDescriptionArg.Builder setDefaultTargetPlatform(UnconfiguredBuildTarget defaultTargetPlatform)
Initializes the optional valuedefaultTargetPlatform
to defaultTargetPlatform.- Parameters:
defaultTargetPlatform
- The value for defaultTargetPlatform- Returns:
this
builder for chained invocation
-
setDefaultTargetPlatform
public final AppleToolchainDescriptionArg.Builder setDefaultTargetPlatform(Optional<? extends UnconfiguredBuildTarget> defaultTargetPlatform)
Initializes the optional valuedefaultTargetPlatform
to defaultTargetPlatform.- Parameters:
defaultTargetPlatform
- The value for defaultTargetPlatform- Returns:
this
builder for use in a chained invocation
-
addCompatibleWith
public final AppleToolchainDescriptionArg.Builder addCompatibleWith(UnconfiguredBuildTarget element)
Adds one element tocompatibleWith
list.- Parameters:
element
- A compatibleWith element- Returns:
this
builder for use in a chained invocation
-
addCompatibleWith
public final AppleToolchainDescriptionArg.Builder addCompatibleWith(UnconfiguredBuildTarget... elements)
Adds elements tocompatibleWith
list.- Parameters:
elements
- An array of compatibleWith elements- Returns:
this
builder for use in a chained invocation
-
setCompatibleWith
public final AppleToolchainDescriptionArg.Builder setCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
Sets or replaces all elements forcompatibleWith
list.- Parameters:
elements
- An iterable of compatibleWith elements- Returns:
this
builder for use in a chained invocation
-
addAllCompatibleWith
public final AppleToolchainDescriptionArg.Builder addAllCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
Adds elements tocompatibleWith
list.- Parameters:
elements
- An iterable of compatibleWith elements- Returns:
this
builder for use in a chained invocation
-
setName
public final AppleToolchainDescriptionArg.Builder setName(String name)
Initializes the value for thename
attribute.- Parameters:
name
- The value for name- Returns:
this
builder for use in a chained invocation
-
build
public AppleToolchainDescriptionArg build()
Builds a newAppleToolchainDescriptionArg
.- Returns:
- An immutable instance of AppleToolchainDescriptionArg
- Throws:
IllegalStateException
- if any required attributes are missing
-
-