@NotThreadSafe public static final class AppleAssetCatalogsCompilationOptions.Builder extends Object
AppleAssetCatalogsCompilationOptions
.
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 AppleAssetCatalogsCompilationOptions.Builder from(AppleAssetCatalogsCompilationOptions instance)
AppleAssetCatalogsCompilationOptions
instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.
Collection elements and entries will be added, not replaced.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final AppleAssetCatalogsCompilationOptions.Builder setNotices(boolean notices)
notices
attribute.
If not set, this attribute will have a default value as returned by the initializer of notices
.
notices
- The value for noticesthis
builder for use in a chained invocationpublic final AppleAssetCatalogsCompilationOptions.Builder setWarnings(boolean warnings)
warnings
attribute.
If not set, this attribute will have a default value as returned by the initializer of warnings
.
warnings
- The value for warningsthis
builder for use in a chained invocationpublic final AppleAssetCatalogsCompilationOptions.Builder setErrors(boolean errors)
errors
attribute.
If not set, this attribute will have a default value as returned by the initializer of errors
.
errors
- The value for errorsthis
builder for use in a chained invocationpublic final AppleAssetCatalogsCompilationOptions.Builder setCompressPngs(boolean compressPngs)
compressPngs
attribute.
If not set, this attribute will have a default value as returned by the initializer of compressPngs
.
compressPngs
- The value for compressPngsthis
builder for use in a chained invocationpublic final AppleAssetCatalogsCompilationOptions.Builder setOptimization(com.facebook.buck.apple.AbstractAppleAssetCatalogsCompilationOptions.Optimization optimization)
optimization
attribute.
If not set, this attribute will have a default value as returned by the initializer of optimization
.
optimization
- The value for optimizationthis
builder for use in a chained invocationpublic final AppleAssetCatalogsCompilationOptions.Builder setOutputFormat(com.facebook.buck.apple.AbstractAppleAssetCatalogsCompilationOptions.OutputFormat outputFormat)
outputFormat
attribute.
If not set, this attribute will have a default value as returned by the initializer of outputFormat
.
outputFormat
- The value for outputFormatthis
builder for use in a chained invocationpublic final AppleAssetCatalogsCompilationOptions.Builder addExtraFlags(String element)
extraFlags
list.element
- A extraFlags elementthis
builder for use in a chained invocationpublic final AppleAssetCatalogsCompilationOptions.Builder addExtraFlags(String... elements)
extraFlags
list.elements
- An array of extraFlags elementsthis
builder for use in a chained invocationpublic final AppleAssetCatalogsCompilationOptions.Builder setExtraFlags(Iterable<String> elements)
extraFlags
list.elements
- An iterable of extraFlags elementsthis
builder for use in a chained invocationpublic final AppleAssetCatalogsCompilationOptions.Builder addAllExtraFlags(Iterable<String> elements)
extraFlags
list.elements
- An iterable of extraFlags elementsthis
builder for use in a chained invocationpublic AppleAssetCatalogsCompilationOptions build()
AppleAssetCatalogsCompilationOptions
.IllegalStateException
- if any required attributes are missing