@NotThreadSafe public static final class AppleWrapperResourceArg.Builder extends Object
AppleWrapperResourceArg.
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.
| Modifier and Type | Method and Description |
|---|---|
AppleWrapperResourceArg.Builder |
addAllCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
Adds elements to
compatibleWith list. |
AppleWrapperResourceArg.Builder |
addAllLabels(Iterable<String> elements)
Adds elements to
labels sortedSet. |
AppleWrapperResourceArg.Builder |
addAllLicenses(Iterable<? extends SourcePath> elements)
Adds elements to
licenses set. |
AppleWrapperResourceArg.Builder |
addCompatibleWith(UnconfiguredBuildTarget... elements)
Adds elements to
compatibleWith list. |
AppleWrapperResourceArg.Builder |
addCompatibleWith(UnconfiguredBuildTarget element)
Adds one element to
compatibleWith list. |
AppleWrapperResourceArg.Builder |
addLabels(String... elements)
Adds elements to
labels sortedSet. |
AppleWrapperResourceArg.Builder |
addLabels(String element)
Adds one element to
labels sortedSet. |
AppleWrapperResourceArg.Builder |
addLicenses(SourcePath... elements)
Adds elements to
licenses set. |
AppleWrapperResourceArg.Builder |
addLicenses(SourcePath element)
Adds one element to
licenses set. |
AppleWrapperResourceArg |
build()
Builds a new
AppleWrapperResourceArg. |
AppleWrapperResourceArg.Builder |
from(com.facebook.buck.apple.AbstractAppleWrapperResourceArg instance)
Copy abstract value type
AbstractAppleWrapperResourceArg instance into builder. |
AppleWrapperResourceArg.Builder |
from(AppleWrapperResourceArg instance)
Fill a builder with attribute values from the provided
AppleWrapperResourceArg instance. |
AppleWrapperResourceArg.Builder |
from(BuildRuleArg instance)
Fill a builder with attribute values from the provided
com.facebook.buck.core.description.arg.BuildRuleArg instance. |
AppleWrapperResourceArg.Builder |
from(ConstructorArg instance)
Fill a builder with attribute values from the provided
com.facebook.buck.core.description.arg.ConstructorArg instance. |
AppleWrapperResourceArg.Builder |
setCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
Sets or replaces all elements for
compatibleWith list. |
AppleWrapperResourceArg.Builder |
setDefaultTargetPlatform(Optional<? extends UnconfiguredBuildTarget> defaultTargetPlatform)
Initializes the optional value
defaultTargetPlatform to defaultTargetPlatform. |
AppleWrapperResourceArg.Builder |
setDefaultTargetPlatform(UnconfiguredBuildTarget defaultTargetPlatform)
Initializes the optional value
defaultTargetPlatform to defaultTargetPlatform. |
AppleWrapperResourceArg.Builder |
setLabels(Iterable<String> elements)
Sets or replaces all elements for
labels sortedSet. |
AppleWrapperResourceArg.Builder |
setLicenses(Iterable<? extends SourcePath> elements)
Sets or replaces all elements for
licenses set. |
AppleWrapperResourceArg.Builder |
setName(String name)
Initializes the value for the
name attribute. |
AppleWrapperResourceArg.Builder |
setPath(Path path)
Initializes the value for the
path attribute. |
public final AppleWrapperResourceArg.Builder from(AppleWrapperResourceArg instance)
AppleWrapperResourceArg instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final AppleWrapperResourceArg.Builder from(com.facebook.buck.apple.AbstractAppleWrapperResourceArg instance)
AbstractAppleWrapperResourceArg instance into builder.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final AppleWrapperResourceArg.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 AppleWrapperResourceArg.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 AppleWrapperResourceArg.Builder setPath(Path path)
path attribute.path - The value for paththis builder for use in a chained invocationpublic final AppleWrapperResourceArg.Builder addLicenses(SourcePath element)
licenses set.element - A licenses elementthis builder for use in a chained invocationpublic final AppleWrapperResourceArg.Builder addLicenses(SourcePath... elements)
licenses set.elements - An array of licenses elementsthis builder for use in a chained invocationpublic final AppleWrapperResourceArg.Builder setLicenses(Iterable<? extends SourcePath> elements)
licenses set.elements - An iterable of licenses elementsthis builder for use in a chained invocationpublic final AppleWrapperResourceArg.Builder addAllLicenses(Iterable<? extends SourcePath> elements)
licenses set.elements - An iterable of licenses elementsthis builder for use in a chained invocationpublic final AppleWrapperResourceArg.Builder addLabels(String element)
labels sortedSet.element - A labels elementthis builder for use in a chained invocationpublic final AppleWrapperResourceArg.Builder addLabels(String... elements)
labels sortedSet.elements - An array of labels elementsthis builder for use in a chained invocationpublic final AppleWrapperResourceArg.Builder setLabels(Iterable<String> elements)
labels sortedSet.elements - An iterable of labels elementsthis builder for use in a chained invocationpublic final AppleWrapperResourceArg.Builder addAllLabels(Iterable<String> elements)
labels sortedSet.elements - An iterable of labels elementsthis builder for use in a chained invocationpublic final AppleWrapperResourceArg.Builder setDefaultTargetPlatform(UnconfiguredBuildTarget defaultTargetPlatform)
defaultTargetPlatform to defaultTargetPlatform.defaultTargetPlatform - The value for defaultTargetPlatformthis builder for chained invocationpublic final AppleWrapperResourceArg.Builder setDefaultTargetPlatform(Optional<? extends UnconfiguredBuildTarget> defaultTargetPlatform)
defaultTargetPlatform to defaultTargetPlatform.defaultTargetPlatform - The value for defaultTargetPlatformthis builder for use in a chained invocationpublic final AppleWrapperResourceArg.Builder addCompatibleWith(UnconfiguredBuildTarget element)
compatibleWith list.element - A compatibleWith elementthis builder for use in a chained invocationpublic final AppleWrapperResourceArg.Builder addCompatibleWith(UnconfiguredBuildTarget... elements)
compatibleWith list.elements - An array of compatibleWith elementsthis builder for use in a chained invocationpublic final AppleWrapperResourceArg.Builder setCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
compatibleWith list.elements - An iterable of compatibleWith elementsthis builder for use in a chained invocationpublic final AppleWrapperResourceArg.Builder addAllCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
compatibleWith list.elements - An iterable of compatibleWith elementsthis builder for use in a chained invocationpublic final AppleWrapperResourceArg.Builder setName(String name)
name attribute.name - The value for namethis builder for use in a chained invocationpublic AppleWrapperResourceArg build()
AppleWrapperResourceArg.IllegalStateException - if any required attributes are missing