@NotThreadSafe public static final class AppleAssetCatalogDescriptionArg.Builder extends Object
AppleAssetCatalogDescriptionArg
.
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 AppleAssetCatalogDescriptionArg.Builder from(AppleAssetCatalogDescriptionArg instance)
AppleAssetCatalogDescriptionArg
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final AppleAssetCatalogDescriptionArg.Builder from(com.facebook.buck.apple.AppleAssetCatalogDescription.AbstractAppleAssetCatalogDescriptionArg instance)
AbstractAppleAssetCatalogDescriptionArg
instance into builder.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final AppleAssetCatalogDescriptionArg.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 AppleAssetCatalogDescriptionArg.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 AppleAssetCatalogDescriptionArg.Builder addDirs(SourcePath element)
dirs
sortedSet.element
- A dirs elementthis
builder for use in a chained invocationpublic final AppleAssetCatalogDescriptionArg.Builder addDirs(SourcePath... elements)
dirs
sortedSet.elements
- An array of dirs elementsthis
builder for use in a chained invocationpublic final AppleAssetCatalogDescriptionArg.Builder setDirs(Iterable<? extends SourcePath> elements)
dirs
sortedSet.elements
- An iterable of dirs elementsthis
builder for use in a chained invocationpublic final AppleAssetCatalogDescriptionArg.Builder addAllDirs(Iterable<? extends SourcePath> elements)
dirs
sortedSet.elements
- An iterable of dirs elementsthis
builder for use in a chained invocationpublic final AppleAssetCatalogDescriptionArg.Builder setAppIcon(String appIcon)
appIcon
to appIcon.appIcon
- The value for appIconthis
builder for chained invocationpublic final AppleAssetCatalogDescriptionArg.Builder setAppIcon(Optional<String> appIcon)
appIcon
to appIcon.appIcon
- The value for appIconthis
builder for use in a chained invocationpublic final AppleAssetCatalogDescriptionArg.Builder setLaunchImage(String launchImage)
launchImage
to launchImage.launchImage
- The value for launchImagethis
builder for chained invocationpublic final AppleAssetCatalogDescriptionArg.Builder setLaunchImage(Optional<String> launchImage)
launchImage
to launchImage.launchImage
- The value for launchImagethis
builder for use in a chained invocationpublic final AppleAssetCatalogDescriptionArg.Builder addLicenses(SourcePath element)
licenses
set.element
- A licenses elementthis
builder for use in a chained invocationpublic final AppleAssetCatalogDescriptionArg.Builder addLicenses(SourcePath... elements)
licenses
set.elements
- An array of licenses elementsthis
builder for use in a chained invocationpublic final AppleAssetCatalogDescriptionArg.Builder setLicenses(Iterable<? extends SourcePath> elements)
licenses
set.elements
- An iterable of licenses elementsthis
builder for use in a chained invocationpublic final AppleAssetCatalogDescriptionArg.Builder addAllLicenses(Iterable<? extends SourcePath> elements)
licenses
set.elements
- An iterable of licenses elementsthis
builder for use in a chained invocationpublic final AppleAssetCatalogDescriptionArg.Builder addLabels(String element)
labels
sortedSet.element
- A labels elementthis
builder for use in a chained invocationpublic final AppleAssetCatalogDescriptionArg.Builder addLabels(String... elements)
labels
sortedSet.elements
- An array of labels elementsthis
builder for use in a chained invocationpublic final AppleAssetCatalogDescriptionArg.Builder setLabels(Iterable<String> elements)
labels
sortedSet.elements
- An iterable of labels elementsthis
builder for use in a chained invocationpublic final AppleAssetCatalogDescriptionArg.Builder addAllLabels(Iterable<String> elements)
labels
sortedSet.elements
- An iterable of labels elementsthis
builder for use in a chained invocationpublic final AppleAssetCatalogDescriptionArg.Builder setDefaultTargetPlatform(UnconfiguredBuildTarget defaultTargetPlatform)
defaultTargetPlatform
to defaultTargetPlatform.defaultTargetPlatform
- The value for defaultTargetPlatformthis
builder for chained invocationpublic final AppleAssetCatalogDescriptionArg.Builder setDefaultTargetPlatform(Optional<? extends UnconfiguredBuildTarget> defaultTargetPlatform)
defaultTargetPlatform
to defaultTargetPlatform.defaultTargetPlatform
- The value for defaultTargetPlatformthis
builder for use in a chained invocationpublic final AppleAssetCatalogDescriptionArg.Builder addCompatibleWith(UnconfiguredBuildTarget element)
compatibleWith
list.element
- A compatibleWith elementthis
builder for use in a chained invocationpublic final AppleAssetCatalogDescriptionArg.Builder addCompatibleWith(UnconfiguredBuildTarget... elements)
compatibleWith
list.elements
- An array of compatibleWith elementsthis
builder for use in a chained invocationpublic final AppleAssetCatalogDescriptionArg.Builder setCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
compatibleWith
list.elements
- An iterable of compatibleWith elementsthis
builder for use in a chained invocationpublic final AppleAssetCatalogDescriptionArg.Builder addAllCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
compatibleWith
list.elements
- An iterable of compatibleWith elementsthis
builder for use in a chained invocationpublic final AppleAssetCatalogDescriptionArg.Builder setName(String name)
name
attribute.name
- The value for namethis
builder for use in a chained invocationpublic AppleAssetCatalogDescriptionArg build()
AppleAssetCatalogDescriptionArg
.IllegalStateException
- if any required attributes are missing