@NotThreadSafe public static final class NdkToolchainDescriptionArg.Builder extends Object
NdkToolchainDescriptionArg
.
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 NdkToolchainDescriptionArg.Builder from(NdkToolchainDescriptionArg instance)
NdkToolchainDescriptionArg
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final NdkToolchainDescriptionArg.Builder from(com.facebook.buck.android.NdkToolchainDescription.AbstractNdkToolchainDescriptionArg instance)
AbstractNdkToolchainDescriptionArg
instance into builder.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final NdkToolchainDescriptionArg.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 NdkToolchainDescriptionArg.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 NdkToolchainDescriptionArg.Builder setCxxToolchain(BuildTarget cxxToolchain)
cxxToolchain
attribute.cxxToolchain
- The value for cxxToolchainthis
builder for use in a chained invocationpublic final NdkToolchainDescriptionArg.Builder setSharedRuntimePath(SourcePath sharedRuntimePath)
sharedRuntimePath
to sharedRuntimePath.sharedRuntimePath
- The value for sharedRuntimePaththis
builder for chained invocationpublic final NdkToolchainDescriptionArg.Builder setSharedRuntimePath(Optional<? extends SourcePath> sharedRuntimePath)
sharedRuntimePath
to sharedRuntimePath.sharedRuntimePath
- The value for sharedRuntimePaththis
builder for use in a chained invocationpublic final NdkToolchainDescriptionArg.Builder setObjdump(SourcePath objdump)
objdump
attribute.objdump
- The value for objdumpthis
builder for use in a chained invocationpublic final NdkToolchainDescriptionArg.Builder setCxxRuntime(NdkCxxRuntime cxxRuntime)
cxxRuntime
attribute.cxxRuntime
- The value for cxxRuntimethis
builder for use in a chained invocationpublic final NdkToolchainDescriptionArg.Builder setNdkPath(SourcePath ndkPath)
ndkPath
to ndkPath.ndkPath
- The value for ndkPaththis
builder for chained invocationpublic final NdkToolchainDescriptionArg.Builder setNdkPath(Optional<? extends SourcePath> ndkPath)
ndkPath
to ndkPath.ndkPath
- The value for ndkPaththis
builder for use in a chained invocationpublic final NdkToolchainDescriptionArg.Builder addLicenses(SourcePath element)
licenses
set.element
- A licenses elementthis
builder for use in a chained invocationpublic final NdkToolchainDescriptionArg.Builder addLicenses(SourcePath... elements)
licenses
set.elements
- An array of licenses elementsthis
builder for use in a chained invocationpublic final NdkToolchainDescriptionArg.Builder setLicenses(Iterable<? extends SourcePath> elements)
licenses
set.elements
- An iterable of licenses elementsthis
builder for use in a chained invocationpublic final NdkToolchainDescriptionArg.Builder addAllLicenses(Iterable<? extends SourcePath> elements)
licenses
set.elements
- An iterable of licenses elementsthis
builder for use in a chained invocationpublic final NdkToolchainDescriptionArg.Builder addLabels(String element)
labels
sortedSet.element
- A labels elementthis
builder for use in a chained invocationpublic final NdkToolchainDescriptionArg.Builder addLabels(String... elements)
labels
sortedSet.elements
- An array of labels elementsthis
builder for use in a chained invocationpublic final NdkToolchainDescriptionArg.Builder setLabels(Iterable<String> elements)
labels
sortedSet.elements
- An iterable of labels elementsthis
builder for use in a chained invocationpublic final NdkToolchainDescriptionArg.Builder addAllLabels(Iterable<String> elements)
labels
sortedSet.elements
- An iterable of labels elementsthis
builder for use in a chained invocationpublic final NdkToolchainDescriptionArg.Builder setDefaultTargetPlatform(UnconfiguredBuildTarget defaultTargetPlatform)
defaultTargetPlatform
to defaultTargetPlatform.defaultTargetPlatform
- The value for defaultTargetPlatformthis
builder for chained invocationpublic final NdkToolchainDescriptionArg.Builder setDefaultTargetPlatform(Optional<? extends UnconfiguredBuildTarget> defaultTargetPlatform)
defaultTargetPlatform
to defaultTargetPlatform.defaultTargetPlatform
- The value for defaultTargetPlatformthis
builder for use in a chained invocationpublic final NdkToolchainDescriptionArg.Builder addCompatibleWith(UnconfiguredBuildTarget element)
compatibleWith
list.element
- A compatibleWith elementthis
builder for use in a chained invocationpublic final NdkToolchainDescriptionArg.Builder addCompatibleWith(UnconfiguredBuildTarget... elements)
compatibleWith
list.elements
- An array of compatibleWith elementsthis
builder for use in a chained invocationpublic final NdkToolchainDescriptionArg.Builder setCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
compatibleWith
list.elements
- An iterable of compatibleWith elementsthis
builder for use in a chained invocationpublic final NdkToolchainDescriptionArg.Builder addAllCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
compatibleWith
list.elements
- An iterable of compatibleWith elementsthis
builder for use in a chained invocationpublic final NdkToolchainDescriptionArg.Builder setName(String name)
name
attribute.name
- The value for namethis
builder for use in a chained invocationpublic NdkToolchainDescriptionArg build()
NdkToolchainDescriptionArg
.IllegalStateException
- if any required attributes are missing