@NotThreadSafe public static final class XcodeScriptDescriptionArg.Builder extends Object
XcodeScriptDescriptionArg
.
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 XcodeScriptDescriptionArg.Builder from(XcodeScriptDescriptionArg instance)
XcodeScriptDescriptionArg
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final XcodeScriptDescriptionArg.Builder from(com.facebook.buck.apple.AbstractXcodeScriptDescriptionArg instance)
AbstractXcodeScriptDescriptionArg
instance into builder.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final XcodeScriptDescriptionArg.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 XcodeScriptDescriptionArg.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 XcodeScriptDescriptionArg.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 XcodeScriptDescriptionArg.Builder addInputs(String element)
inputs
sortedSet.element
- A inputs elementthis
builder for use in a chained invocationpublic final XcodeScriptDescriptionArg.Builder addInputs(String... elements)
inputs
sortedSet.elements
- An array of inputs elementsthis
builder for use in a chained invocationpublic final XcodeScriptDescriptionArg.Builder setInputs(Iterable<String> elements)
inputs
sortedSet.elements
- An iterable of inputs elementsthis
builder for use in a chained invocationpublic final XcodeScriptDescriptionArg.Builder addAllInputs(Iterable<String> elements)
inputs
sortedSet.elements
- An iterable of inputs elementsthis
builder for use in a chained invocationpublic final XcodeScriptDescriptionArg.Builder addInputFileLists(String element)
inputFileLists
sortedSet.element
- A inputFileLists elementthis
builder for use in a chained invocationpublic final XcodeScriptDescriptionArg.Builder addInputFileLists(String... elements)
inputFileLists
sortedSet.elements
- An array of inputFileLists elementsthis
builder for use in a chained invocationpublic final XcodeScriptDescriptionArg.Builder setInputFileLists(Iterable<String> elements)
inputFileLists
sortedSet.elements
- An iterable of inputFileLists elementsthis
builder for use in a chained invocationpublic final XcodeScriptDescriptionArg.Builder addAllInputFileLists(Iterable<String> elements)
inputFileLists
sortedSet.elements
- An iterable of inputFileLists elementsthis
builder for use in a chained invocationpublic final XcodeScriptDescriptionArg.Builder addOutputs(String element)
outputs
sortedSet.element
- A outputs elementthis
builder for use in a chained invocationpublic final XcodeScriptDescriptionArg.Builder addOutputs(String... elements)
outputs
sortedSet.elements
- An array of outputs elementsthis
builder for use in a chained invocationpublic final XcodeScriptDescriptionArg.Builder setOutputs(Iterable<String> elements)
outputs
sortedSet.elements
- An iterable of outputs elementsthis
builder for use in a chained invocationpublic final XcodeScriptDescriptionArg.Builder addAllOutputs(Iterable<String> elements)
outputs
sortedSet.elements
- An iterable of outputs elementsthis
builder for use in a chained invocationpublic final XcodeScriptDescriptionArg.Builder addOutputFileLists(String element)
outputFileLists
sortedSet.element
- A outputFileLists elementthis
builder for use in a chained invocationpublic final XcodeScriptDescriptionArg.Builder addOutputFileLists(String... elements)
outputFileLists
sortedSet.elements
- An array of outputFileLists elementsthis
builder for use in a chained invocationpublic final XcodeScriptDescriptionArg.Builder setOutputFileLists(Iterable<String> elements)
outputFileLists
sortedSet.elements
- An iterable of outputFileLists elementsthis
builder for use in a chained invocationpublic final XcodeScriptDescriptionArg.Builder addAllOutputFileLists(Iterable<String> elements)
outputFileLists
sortedSet.elements
- An iterable of outputFileLists elementsthis
builder for use in a chained invocationpublic final XcodeScriptDescriptionArg.Builder setCmd(String cmd)
cmd
attribute.cmd
- The value for cmdthis
builder for use in a chained invocationpublic final XcodeScriptDescriptionArg.Builder addLicenses(SourcePath element)
licenses
set.element
- A licenses elementthis
builder for use in a chained invocationpublic final XcodeScriptDescriptionArg.Builder addLicenses(SourcePath... elements)
licenses
set.elements
- An array of licenses elementsthis
builder for use in a chained invocationpublic final XcodeScriptDescriptionArg.Builder setLicenses(Iterable<? extends SourcePath> elements)
licenses
set.elements
- An iterable of licenses elementsthis
builder for use in a chained invocationpublic final XcodeScriptDescriptionArg.Builder addAllLicenses(Iterable<? extends SourcePath> elements)
licenses
set.elements
- An iterable of licenses elementsthis
builder for use in a chained invocationpublic final XcodeScriptDescriptionArg.Builder addLabels(String element)
labels
sortedSet.element
- A labels elementthis
builder for use in a chained invocationpublic final XcodeScriptDescriptionArg.Builder addLabels(String... elements)
labels
sortedSet.elements
- An array of labels elementsthis
builder for use in a chained invocationpublic final XcodeScriptDescriptionArg.Builder setLabels(Iterable<String> elements)
labels
sortedSet.elements
- An iterable of labels elementsthis
builder for use in a chained invocationpublic final XcodeScriptDescriptionArg.Builder addAllLabels(Iterable<String> elements)
labels
sortedSet.elements
- An iterable of labels elementsthis
builder for use in a chained invocationpublic final XcodeScriptDescriptionArg.Builder setDefaultTargetPlatform(UnconfiguredBuildTarget defaultTargetPlatform)
defaultTargetPlatform
to defaultTargetPlatform.defaultTargetPlatform
- The value for defaultTargetPlatformthis
builder for chained invocationpublic final XcodeScriptDescriptionArg.Builder setDefaultTargetPlatform(Optional<? extends UnconfiguredBuildTarget> defaultTargetPlatform)
defaultTargetPlatform
to defaultTargetPlatform.defaultTargetPlatform
- The value for defaultTargetPlatformthis
builder for use in a chained invocationpublic final XcodeScriptDescriptionArg.Builder addCompatibleWith(UnconfiguredBuildTarget element)
compatibleWith
list.element
- A compatibleWith elementthis
builder for use in a chained invocationpublic final XcodeScriptDescriptionArg.Builder addCompatibleWith(UnconfiguredBuildTarget... elements)
compatibleWith
list.elements
- An array of compatibleWith elementsthis
builder for use in a chained invocationpublic final XcodeScriptDescriptionArg.Builder setCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
compatibleWith
list.elements
- An iterable of compatibleWith elementsthis
builder for use in a chained invocationpublic final XcodeScriptDescriptionArg.Builder addAllCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
compatibleWith
list.elements
- An iterable of compatibleWith elementsthis
builder for use in a chained invocationpublic final XcodeScriptDescriptionArg.Builder setName(String name)
name
attribute.name
- The value for namethis
builder for use in a chained invocationpublic final XcodeScriptDescriptionArg.Builder addSrcs(SourcePath element)
srcs
sortedSet.element
- A srcs elementthis
builder for use in a chained invocationpublic final XcodeScriptDescriptionArg.Builder addSrcs(SourcePath... elements)
srcs
sortedSet.elements
- An array of srcs elementsthis
builder for use in a chained invocationpublic final XcodeScriptDescriptionArg.Builder setSrcs(Iterable<? extends SourcePath> elements)
srcs
sortedSet.elements
- An iterable of srcs elementsthis
builder for use in a chained invocationpublic final XcodeScriptDescriptionArg.Builder addAllSrcs(Iterable<? extends SourcePath> elements)
srcs
sortedSet.elements
- An iterable of srcs elementsthis
builder for use in a chained invocationpublic XcodeScriptDescriptionArg build()
XcodeScriptDescriptionArg
.IllegalStateException
- if any required attributes are missing