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