@NotThreadSafe public static final class SwiftToolchainDescriptionArg.Builder extends Object
SwiftToolchainDescriptionArg
.
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 SwiftToolchainDescriptionArg.Builder from(SwiftToolchainDescriptionArg instance)
SwiftToolchainDescriptionArg
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final SwiftToolchainDescriptionArg.Builder from(com.facebook.buck.swift.SwiftToolchainDescription.AbstractSwiftToolchainDescriptionArg instance)
AbstractSwiftToolchainDescriptionArg
instance into builder.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final SwiftToolchainDescriptionArg.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 SwiftToolchainDescriptionArg.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 SwiftToolchainDescriptionArg.Builder setSwiftc(SourcePath swiftc)
swiftc
attribute.swiftc
- The value for swiftcthis
builder for use in a chained invocationpublic final SwiftToolchainDescriptionArg.Builder addSwiftcFlags(String element)
swiftcFlags
list.element
- A swiftcFlags elementthis
builder for use in a chained invocationpublic final SwiftToolchainDescriptionArg.Builder addSwiftcFlags(String... elements)
swiftcFlags
list.elements
- An array of swiftcFlags elementsthis
builder for use in a chained invocationpublic final SwiftToolchainDescriptionArg.Builder setSwiftcFlags(Iterable<String> elements)
swiftcFlags
list.elements
- An iterable of swiftcFlags elementsthis
builder for use in a chained invocationpublic final SwiftToolchainDescriptionArg.Builder addAllSwiftcFlags(Iterable<String> elements)
swiftcFlags
list.elements
- An iterable of swiftcFlags elementsthis
builder for use in a chained invocationpublic final SwiftToolchainDescriptionArg.Builder setSwiftStdlibTool(SourcePath swiftStdlibTool)
swiftStdlibTool
to swiftStdlibTool.swiftStdlibTool
- The value for swiftStdlibToolthis
builder for chained invocationpublic final SwiftToolchainDescriptionArg.Builder setSwiftStdlibTool(Optional<? extends SourcePath> swiftStdlibTool)
swiftStdlibTool
to swiftStdlibTool.swiftStdlibTool
- The value for swiftStdlibToolthis
builder for use in a chained invocationpublic final SwiftToolchainDescriptionArg.Builder addSwiftStdlibToolFlags(String element)
swiftStdlibToolFlags
list.element
- A swiftStdlibToolFlags elementthis
builder for use in a chained invocationpublic final SwiftToolchainDescriptionArg.Builder addSwiftStdlibToolFlags(String... elements)
swiftStdlibToolFlags
list.elements
- An array of swiftStdlibToolFlags elementsthis
builder for use in a chained invocationpublic final SwiftToolchainDescriptionArg.Builder setSwiftStdlibToolFlags(Iterable<String> elements)
swiftStdlibToolFlags
list.elements
- An iterable of swiftStdlibToolFlags elementsthis
builder for use in a chained invocationpublic final SwiftToolchainDescriptionArg.Builder addAllSwiftStdlibToolFlags(Iterable<String> elements)
swiftStdlibToolFlags
list.elements
- An iterable of swiftStdlibToolFlags elementsthis
builder for use in a chained invocationpublic final SwiftToolchainDescriptionArg.Builder addRuntimePathsForBundling(SourcePath element)
runtimePathsForBundling
list.element
- A runtimePathsForBundling elementthis
builder for use in a chained invocationpublic final SwiftToolchainDescriptionArg.Builder addRuntimePathsForBundling(SourcePath... elements)
runtimePathsForBundling
list.elements
- An array of runtimePathsForBundling elementsthis
builder for use in a chained invocationpublic final SwiftToolchainDescriptionArg.Builder setRuntimePathsForBundling(Iterable<? extends SourcePath> elements)
runtimePathsForBundling
list.elements
- An iterable of runtimePathsForBundling elementsthis
builder for use in a chained invocationpublic final SwiftToolchainDescriptionArg.Builder addAllRuntimePathsForBundling(Iterable<? extends SourcePath> elements)
runtimePathsForBundling
list.elements
- An iterable of runtimePathsForBundling elementsthis
builder for use in a chained invocationpublic final SwiftToolchainDescriptionArg.Builder addRuntimePathsForLinking(SourcePath element)
runtimePathsForLinking
list.element
- A runtimePathsForLinking elementthis
builder for use in a chained invocationpublic final SwiftToolchainDescriptionArg.Builder addRuntimePathsForLinking(SourcePath... elements)
runtimePathsForLinking
list.elements
- An array of runtimePathsForLinking elementsthis
builder for use in a chained invocationpublic final SwiftToolchainDescriptionArg.Builder setRuntimePathsForLinking(Iterable<? extends SourcePath> elements)
runtimePathsForLinking
list.elements
- An iterable of runtimePathsForLinking elementsthis
builder for use in a chained invocationpublic final SwiftToolchainDescriptionArg.Builder addAllRuntimePathsForLinking(Iterable<? extends SourcePath> elements)
runtimePathsForLinking
list.elements
- An iterable of runtimePathsForLinking elementsthis
builder for use in a chained invocationpublic final SwiftToolchainDescriptionArg.Builder addStaticRuntimePaths(SourcePath element)
staticRuntimePaths
list.element
- A staticRuntimePaths elementthis
builder for use in a chained invocationpublic final SwiftToolchainDescriptionArg.Builder addStaticRuntimePaths(SourcePath... elements)
staticRuntimePaths
list.elements
- An array of staticRuntimePaths elementsthis
builder for use in a chained invocationpublic final SwiftToolchainDescriptionArg.Builder setStaticRuntimePaths(Iterable<? extends SourcePath> elements)
staticRuntimePaths
list.elements
- An iterable of staticRuntimePaths elementsthis
builder for use in a chained invocationpublic final SwiftToolchainDescriptionArg.Builder addAllStaticRuntimePaths(Iterable<? extends SourcePath> elements)
staticRuntimePaths
list.elements
- An iterable of staticRuntimePaths elementsthis
builder for use in a chained invocationpublic final SwiftToolchainDescriptionArg.Builder addRuntimeRunPaths(SourcePath element)
runtimeRunPaths
list.element
- A runtimeRunPaths elementthis
builder for use in a chained invocationpublic final SwiftToolchainDescriptionArg.Builder addRuntimeRunPaths(SourcePath... elements)
runtimeRunPaths
list.elements
- An array of runtimeRunPaths elementsthis
builder for use in a chained invocationpublic final SwiftToolchainDescriptionArg.Builder setRuntimeRunPaths(Iterable<? extends SourcePath> elements)
runtimeRunPaths
list.elements
- An iterable of runtimeRunPaths elementsthis
builder for use in a chained invocationpublic final SwiftToolchainDescriptionArg.Builder addAllRuntimeRunPaths(Iterable<? extends SourcePath> elements)
runtimeRunPaths
list.elements
- An iterable of runtimeRunPaths elementsthis
builder for use in a chained invocationpublic final SwiftToolchainDescriptionArg.Builder addLicenses(SourcePath element)
licenses
set.element
- A licenses elementthis
builder for use in a chained invocationpublic final SwiftToolchainDescriptionArg.Builder addLicenses(SourcePath... elements)
licenses
set.elements
- An array of licenses elementsthis
builder for use in a chained invocationpublic final SwiftToolchainDescriptionArg.Builder setLicenses(Iterable<? extends SourcePath> elements)
licenses
set.elements
- An iterable of licenses elementsthis
builder for use in a chained invocationpublic final SwiftToolchainDescriptionArg.Builder addAllLicenses(Iterable<? extends SourcePath> elements)
licenses
set.elements
- An iterable of licenses elementsthis
builder for use in a chained invocationpublic final SwiftToolchainDescriptionArg.Builder addLabels(String element)
labels
sortedSet.element
- A labels elementthis
builder for use in a chained invocationpublic final SwiftToolchainDescriptionArg.Builder addLabels(String... elements)
labels
sortedSet.elements
- An array of labels elementsthis
builder for use in a chained invocationpublic final SwiftToolchainDescriptionArg.Builder setLabels(Iterable<String> elements)
labels
sortedSet.elements
- An iterable of labels elementsthis
builder for use in a chained invocationpublic final SwiftToolchainDescriptionArg.Builder addAllLabels(Iterable<String> elements)
labels
sortedSet.elements
- An iterable of labels elementsthis
builder for use in a chained invocationpublic final SwiftToolchainDescriptionArg.Builder setDefaultTargetPlatform(UnconfiguredBuildTarget defaultTargetPlatform)
defaultTargetPlatform
to defaultTargetPlatform.defaultTargetPlatform
- The value for defaultTargetPlatformthis
builder for chained invocationpublic final SwiftToolchainDescriptionArg.Builder setDefaultTargetPlatform(Optional<? extends UnconfiguredBuildTarget> defaultTargetPlatform)
defaultTargetPlatform
to defaultTargetPlatform.defaultTargetPlatform
- The value for defaultTargetPlatformthis
builder for use in a chained invocationpublic final SwiftToolchainDescriptionArg.Builder addCompatibleWith(UnconfiguredBuildTarget element)
compatibleWith
list.element
- A compatibleWith elementthis
builder for use in a chained invocationpublic final SwiftToolchainDescriptionArg.Builder addCompatibleWith(UnconfiguredBuildTarget... elements)
compatibleWith
list.elements
- An array of compatibleWith elementsthis
builder for use in a chained invocationpublic final SwiftToolchainDescriptionArg.Builder setCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
compatibleWith
list.elements
- An iterable of compatibleWith elementsthis
builder for use in a chained invocationpublic final SwiftToolchainDescriptionArg.Builder addAllCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
compatibleWith
list.elements
- An iterable of compatibleWith elementsthis
builder for use in a chained invocationpublic final SwiftToolchainDescriptionArg.Builder setName(String name)
name
attribute.name
- The value for namethis
builder for use in a chained invocationpublic SwiftToolchainDescriptionArg build()
SwiftToolchainDescriptionArg
.IllegalStateException
- if any required attributes are missing