| Modifier and Type | Method and Description |
|---|---|
CnbData.Builder |
addAllBuildpacks(Iterable<String> elements)
Adds elements to
buildpacks list. |
CnbData |
build()
Builds a new
CnbData. |
CnbData.Builder |
buildpack(String element)
Adds one element to
buildpacks list. |
CnbData.Builder |
buildpacks(Iterable<String> elements)
Sets or replaces all elements for
buildpacks list. |
CnbData.Builder |
buildpacks(String... elements)
Adds elements to
buildpacks list. |
CnbData.Builder |
from(CnbData instance)
Fill a builder with attribute values from the provided
CnbData instance. |
CnbData.Builder |
stack(String stack)
Initializes the value for the
stack attribute. |
public final CnbData.Builder from(CnbData instance)
CnbData 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 CnbData.Builder buildpack(String element)
buildpacks list.element - A buildpacks elementthis builder for use in a chained invocationpublic final CnbData.Builder buildpacks(String... elements)
buildpacks list.elements - An array of buildpacks elementsthis builder for use in a chained invocationpublic final CnbData.Builder buildpacks(Iterable<String> elements)
buildpacks list.elements - An iterable of buildpacks elementsthis builder for use in a chained invocationpublic final CnbData.Builder addAllBuildpacks(Iterable<String> elements)
buildpacks list.elements - An iterable of buildpacks elementsthis builder for use in a chained invocationpublic final CnbData.Builder stack(String stack)
stack attribute.stack - The value for stack (can be null)this builder for use in a chained invocationpublic CnbData build()
CnbData.IllegalStateException - if any required attributes are missingCopyright © 2026. All rights reserved.