| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableStaging.Builder
Builds instances of type
ImmutableStaging. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableStaging.Builder |
builder()
Creates a builder for
ImmutableStaging. |
static ImmutableStaging |
copyOf(Staging instance)
Creates an immutable copy of a
Staging value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableStaging that have equal attribute values. |
List<String> |
getBuildpacks() |
String |
getCommand() |
String |
getDetectedBuildpack() |
DockerInfo |
getDockerInfo() |
String |
getHealthCheckHttpEndpoint() |
Integer |
getHealthCheckTimeout() |
String |
getHealthCheckType() |
String |
getStack() |
int |
hashCode()
Computes a hash code from attributes:
buildpacks, command, detectedBuildpack, healthCheckTimeout, healthCheckType, healthCheckHttpEndpoint, isSshEnabled, stack, dockerInfo. |
Boolean |
isSshEnabled() |
String |
toString()
Prints the immutable value
Staging with attribute values. |
ImmutableStaging |
withBuildpacks(Iterable<String> elements)
Copy the current immutable object with elements that replace the content of
buildpacks. |
ImmutableStaging |
withBuildpacks(String... elements)
Copy the current immutable object with elements that replace the content of
buildpacks. |
ImmutableStaging |
withCommand(String value)
Copy the current immutable object by setting a value for the
command attribute. |
ImmutableStaging |
withDetectedBuildpack(String value)
Copy the current immutable object by setting a value for the
detectedBuildpack attribute. |
ImmutableStaging |
withDockerInfo(DockerInfo value)
Copy the current immutable object by setting a value for the
dockerInfo attribute. |
ImmutableStaging |
withHealthCheckHttpEndpoint(String value)
Copy the current immutable object by setting a value for the
healthCheckHttpEndpoint attribute. |
ImmutableStaging |
withHealthCheckTimeout(Integer value)
Copy the current immutable object by setting a value for the
healthCheckTimeout attribute. |
ImmutableStaging |
withHealthCheckType(String value)
Copy the current immutable object by setting a value for the
healthCheckType attribute. |
ImmutableStaging |
withIsSshEnabled(Boolean value)
Copy the current immutable object by setting a value for the
isSshEnabled attribute. |
ImmutableStaging |
withStack(String value)
Copy the current immutable object by setting a value for the
stack attribute. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetBuildpackpublic List<String> getBuildpacks()
getBuildpacks in interface Stagingpublic String getCommand()
getCommand in interface Stagingpublic String getDetectedBuildpack()
getDetectedBuildpack in interface Stagingpublic Integer getHealthCheckTimeout()
getHealthCheckTimeout in interface Stagingpublic String getHealthCheckType()
getHealthCheckType in interface Stagingpublic String getHealthCheckHttpEndpoint()
getHealthCheckHttpEndpoint in interface Stagingpublic Boolean isSshEnabled()
isSshEnabled in interface Stagingpublic String getStack()
public DockerInfo getDockerInfo()
getDockerInfo in interface StagingdockerInfo attributepublic final ImmutableStaging withBuildpacks(String... elements)
buildpacks.elements - The elements to setthis objectpublic final ImmutableStaging withBuildpacks(Iterable<String> elements)
buildpacks.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of buildpacks elements to setthis objectpublic final ImmutableStaging withCommand(String value)
command attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for command (can be null)this objectpublic final ImmutableStaging withDetectedBuildpack(String value)
detectedBuildpack attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for detectedBuildpack (can be null)this objectpublic final ImmutableStaging withHealthCheckTimeout(Integer value)
healthCheckTimeout attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for healthCheckTimeout (can be null)this objectpublic final ImmutableStaging withHealthCheckType(String value)
healthCheckType attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for healthCheckType (can be null)this objectpublic final ImmutableStaging withHealthCheckHttpEndpoint(String value)
healthCheckHttpEndpoint attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for healthCheckHttpEndpoint (can be null)this objectpublic final ImmutableStaging withIsSshEnabled(Boolean value)
isSshEnabled attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for isSshEnabled (can be null)this objectpublic final ImmutableStaging withStack(String value)
stack attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for stack (can be null)this objectpublic final ImmutableStaging withDockerInfo(DockerInfo value)
dockerInfo attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for dockerInfo (can be null)this objectpublic boolean equals(Object another)
ImmutableStaging that have equal attribute values.public int hashCode()
buildpacks, command, detectedBuildpack, healthCheckTimeout, healthCheckType, healthCheckHttpEndpoint, isSshEnabled, stack, dockerInfo.public String toString()
Staging with attribute values.public static ImmutableStaging copyOf(Staging instance)
Staging value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static ImmutableStaging.Builder builder()
ImmutableStaging.
ImmutableStaging.builder()
.addBuildpack|addAllBuildpacks(String) // buildpacks elements
.command(String | null) // nullable command
.detectedBuildpack(String | null) // nullable detectedBuildpack
.healthCheckTimeout(Integer | null) // nullable healthCheckTimeout
.healthCheckType(String | null) // nullable healthCheckType
.healthCheckHttpEndpoint(String | null) // nullable healthCheckHttpEndpoint
.isSshEnabled(Boolean | null) // nullable isSshEnabled
.stack(String | null) // nullable stack
.dockerInfo(org.cloudfoundry.client.lib.domain.DockerInfo | null) // nullable dockerInfo
.build();
Copyright © 2020 SAP SE. All rights reserved.