public static final class ManifestV3.Builder extends Object
ManifestV3.
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 |
|---|---|
ManifestV3.Builder |
addAllApplications(Iterable<? extends ManifestV3Application> elements)
Adds elements to
applications list. |
ManifestV3.Builder |
application(ManifestV3Application element)
Adds one element to
applications list. |
ManifestV3.Builder |
applications(Iterable<? extends ManifestV3Application> elements)
Sets or replaces all elements for
applications list. |
ManifestV3.Builder |
applications(ManifestV3Application... elements)
Adds elements to
applications list. |
ManifestV3 |
build()
Builds a new
ManifestV3. |
ManifestV3.Builder |
from(ManifestV3 instance)
Fill a builder with attribute values from the provided
ManifestV3 instance. |
ManifestV3.Builder |
version(Integer version)
Initializes the value for the
version attribute. |
public final ManifestV3.Builder from(ManifestV3 instance)
ManifestV3 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 ManifestV3.Builder application(ManifestV3Application element)
applications list.element - A applications elementthis builder for use in a chained invocationpublic final ManifestV3.Builder applications(ManifestV3Application... elements)
applications list.elements - An array of applications elementsthis builder for use in a chained invocationpublic final ManifestV3.Builder applications(Iterable<? extends ManifestV3Application> elements)
applications list.elements - An iterable of applications elementsthis builder for use in a chained invocationpublic final ManifestV3.Builder addAllApplications(Iterable<? extends ManifestV3Application> elements)
applications list.elements - An iterable of applications elementsthis builder for use in a chained invocationpublic final ManifestV3.Builder version(Integer version)
version attribute.
If not set, this attribute will have a default value as returned by the initializer of version.
version - The value for versionthis builder for use in a chained invocationpublic ManifestV3 build()
ManifestV3.IllegalStateException - if any required attributes are missingCopyright © 2024. All rights reserved.