public static final class ImmutableStaging.Builder extends Object
ImmutableStaging.
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 |
|---|---|
ImmutableStaging.Builder |
addAllBuildpacks(Iterable<String> elements)
Adds elements to
buildpacks list. |
ImmutableStaging.Builder |
addBuildpack(String element)
Adds one element to
buildpacks list. |
ImmutableStaging.Builder |
addBuildpacks(String... elements)
Adds elements to
buildpacks list. |
ImmutableStaging |
build()
Builds a new
ImmutableStaging. |
ImmutableStaging.Builder |
buildpacks(Iterable<String> elements)
Sets or replaces all elements for
buildpacks list. |
ImmutableStaging.Builder |
command(String command)
Initializes the value for the
command attribute. |
ImmutableStaging.Builder |
detectedBuildpack(String detectedBuildpack)
Initializes the value for the
detectedBuildpack attribute. |
ImmutableStaging.Builder |
dockerInfo(DockerInfo dockerInfo)
Initializes the value for the
dockerInfo attribute. |
ImmutableStaging.Builder |
from(Staging instance)
Fill a builder with attribute values from the provided
Staging instance. |
ImmutableStaging.Builder |
healthCheckHttpEndpoint(String healthCheckHttpEndpoint)
Initializes the value for the
healthCheckHttpEndpoint attribute. |
ImmutableStaging.Builder |
healthCheckTimeout(Integer healthCheckTimeout)
Initializes the value for the
healthCheckTimeout attribute. |
ImmutableStaging.Builder |
healthCheckType(String healthCheckType)
Initializes the value for the
healthCheckType attribute. |
ImmutableStaging.Builder |
isSshEnabled(Boolean isSshEnabled)
Initializes the value for the
isSshEnabled attribute. |
ImmutableStaging.Builder |
stack(String stack)
Initializes the value for the
stack attribute. |
public final ImmutableStaging.Builder from(Staging instance)
Staging 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 ImmutableStaging.Builder addBuildpack(String element)
buildpacks list.element - A buildpacks elementthis builder for use in a chained invocationpublic final ImmutableStaging.Builder addBuildpacks(String... elements)
buildpacks list.elements - An array of buildpacks elementsthis builder for use in a chained invocationpublic final ImmutableStaging.Builder buildpacks(Iterable<String> elements)
buildpacks list.elements - An iterable of buildpacks elementsthis builder for use in a chained invocationpublic final ImmutableStaging.Builder addAllBuildpacks(Iterable<String> elements)
buildpacks list.elements - An iterable of buildpacks elementsthis builder for use in a chained invocationpublic final ImmutableStaging.Builder command(String command)
command attribute.command - The value for command (can be null)this builder for use in a chained invocationpublic final ImmutableStaging.Builder detectedBuildpack(String detectedBuildpack)
detectedBuildpack attribute.detectedBuildpack - The value for detectedBuildpack (can be null)this builder for use in a chained invocationpublic final ImmutableStaging.Builder healthCheckTimeout(Integer healthCheckTimeout)
healthCheckTimeout attribute.healthCheckTimeout - The value for healthCheckTimeout (can be null)this builder for use in a chained invocationpublic final ImmutableStaging.Builder healthCheckType(String healthCheckType)
healthCheckType attribute.healthCheckType - The value for healthCheckType (can be null)this builder for use in a chained invocationpublic final ImmutableStaging.Builder healthCheckHttpEndpoint(String healthCheckHttpEndpoint)
healthCheckHttpEndpoint attribute.healthCheckHttpEndpoint - The value for healthCheckHttpEndpoint (can be null)this builder for use in a chained invocationpublic final ImmutableStaging.Builder isSshEnabled(Boolean isSshEnabled)
isSshEnabled attribute.isSshEnabled - The value for isSshEnabled (can be null)this builder for use in a chained invocationpublic final ImmutableStaging.Builder stack(String stack)
stack attribute.stack - The value for stack (can be null)this builder for use in a chained invocationpublic final ImmutableStaging.Builder dockerInfo(DockerInfo dockerInfo)
dockerInfo attribute.dockerInfo - The value for dockerInfo (can be null)this builder for use in a chained invocationpublic ImmutableStaging build()
ImmutableStaging.IllegalStateException - if any required attributes are missingCopyright © 2020 SAP SE. All rights reserved.