public static final class StagedResult.Builder extends Object
StagedResult.
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 |
|---|---|
StagedResult.Builder |
addAllBuildpacks(Iterable<String> elements)
Adds elements to
buildpacks list. |
StagedResult |
build()
Builds a new
StagedResult. |
StagedResult.Builder |
buildpack(String... elements)
Adds elements to
buildpacks list. |
StagedResult.Builder |
buildpack(String element)
Adds one element to
buildpacks list. |
StagedResult.Builder |
buildpacks(Iterable<String> elements)
Sets or replaces all elements for
buildpacks list. |
StagedResult.Builder |
executionMetadata(String executionMetadata)
Initializes the value for the
executionMetadata attribute. |
StagedResult.Builder |
from(StagedResult instance)
Fill a builder with attribute values from the provided
StagedResult instance. |
StagedResult.Builder |
hash(Hash hash)
Initializes the value for the
hash attribute. |
StagedResult.Builder |
processType(Map.Entry<String,? extends String> entry)
Put one entry to the
processTypes map. |
StagedResult.Builder |
processType(String key,
String value)
Put one entry to the
processTypes map. |
StagedResult.Builder |
processTypes(Map<String,? extends String> processTypes)
Sets or replaces all mappings from the specified map as entries for the
processTypes map. |
StagedResult.Builder |
putAllProcessTypes(Map<String,? extends String> processTypes)
Put all mappings from the specified map as entries to
processTypes map. |
StagedResult.Builder |
stack(String stack)
Initializes the value for the
stack attribute. |
public final StagedResult.Builder from(StagedResult instance)
StagedResult 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 StagedResult.Builder buildpack(String element)
buildpacks list.element - A buildpacks elementthis builder for use in a chained invocationpublic final StagedResult.Builder buildpack(String... elements)
buildpacks list.elements - An array of buildpacks elementsthis builder for use in a chained invocationpublic final StagedResult.Builder buildpacks(Iterable<String> elements)
buildpacks list.elements - An iterable of buildpacks elementsthis builder for use in a chained invocationpublic final StagedResult.Builder addAllBuildpacks(Iterable<String> elements)
buildpacks list.elements - An iterable of buildpacks elementsthis builder for use in a chained invocationpublic final StagedResult.Builder executionMetadata(String executionMetadata)
executionMetadata attribute.executionMetadata - The value for executionMetadata (can be null)this builder for use in a chained invocationpublic final StagedResult.Builder hash(Hash hash)
hash attribute.hash - The value for hash (can be null)this builder for use in a chained invocationpublic final StagedResult.Builder processType(String key, String value)
processTypes map.key - The key in the processTypes mapvalue - The associated value in the processTypes mapthis builder for use in a chained invocationpublic final StagedResult.Builder processType(Map.Entry<String,? extends String> entry)
processTypes map. Nulls are not permittedentry - The key and value entrythis builder for use in a chained invocationpublic final StagedResult.Builder processTypes(Map<String,? extends String> processTypes)
processTypes map. Nulls are not permitted as keys or values, but parameter itself can be nullprocessTypes - The entries that will be added to the processTypes mapthis builder for use in a chained invocationpublic final StagedResult.Builder putAllProcessTypes(Map<String,? extends String> processTypes)
processTypes map. Nulls are not permittedprocessTypes - The entries that will be added to the processTypes mapthis builder for use in a chained invocationpublic final StagedResult.Builder stack(String stack)
stack attribute.stack - The value for stack (can be null)this builder for use in a chained invocationpublic StagedResult build()
StagedResult.IllegalStateException - if any required attributes are missingCopyright © 2017 Pivotal Software, Inc.. All rights reserved.