Class ImmutableStaging
- java.lang.Object
-
- com.sap.cloudfoundry.client.facade.domain.ImmutableStaging
-
- All Implemented Interfaces:
Staging
@Generated("org.immutables.processor.ProxyProcessor") public final class ImmutableStaging extends Object implements Staging
Immutable implementation ofStaging.Use the builder to create immutable instances:
ImmutableStaging.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableStaging.BuilderBuilds instances of typeImmutableStaging.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableStaging.Builderbuilder()Creates a builder forImmutableStaging.static ImmutableStagingcopyOf(Staging instance)Creates an immutable copy of aStagingvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableStagingthat have equal attribute values.List<String>getBuildpacks()StringgetCommand()StringgetDetectedBuildpack()DockerInfogetDockerInfo()StringgetHealthCheckHttpEndpoint()IntegergetHealthCheckTimeout()StringgetHealthCheckType()StringgetStack()inthashCode()Computes a hash code from attributes:buildpacks,command,detectedBuildpack,healthCheckTimeout,healthCheckType,healthCheckHttpEndpoint,isSshEnabled,stack,dockerInfo.BooleanisSshEnabled()StringtoString()Prints the immutable valueStagingwith attribute values.ImmutableStagingwithBuildpacks(Iterable<String> elements)Copy the current immutable object with elements that replace the content ofbuildpacks.ImmutableStagingwithBuildpacks(String... elements)Copy the current immutable object with elements that replace the content ofbuildpacks.ImmutableStagingwithCommand(String value)Copy the current immutable object by setting a value for thecommandattribute.ImmutableStagingwithDetectedBuildpack(String value)Copy the current immutable object by setting a value for thedetectedBuildpackattribute.ImmutableStagingwithDockerInfo(DockerInfo value)Copy the current immutable object by setting a value for thedockerInfoattribute.ImmutableStagingwithHealthCheckHttpEndpoint(String value)Copy the current immutable object by setting a value for thehealthCheckHttpEndpointattribute.ImmutableStagingwithHealthCheckTimeout(Integer value)Copy the current immutable object by setting a value for thehealthCheckTimeoutattribute.ImmutableStagingwithHealthCheckType(String value)Copy the current immutable object by setting a value for thehealthCheckTypeattribute.ImmutableStagingwithIsSshEnabled(Boolean value)Copy the current immutable object by setting a value for theisSshEnabledattribute.ImmutableStagingwithStack(String value)Copy the current immutable object by setting a value for thestackattribute.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.sap.cloudfoundry.client.facade.domain.Staging
getBuildpack
-
-
-
-
Method Detail
-
getBuildpacks
public List<String> getBuildpacks()
- Specified by:
getBuildpacksin interfaceStaging- Returns:
- The buildpacks, or empty to use the default buildpack detected based on application content
-
getCommand
public String getCommand()
- Specified by:
getCommandin interfaceStaging- Returns:
- The start command to use
-
getDetectedBuildpack
public String getDetectedBuildpack()
- Specified by:
getDetectedBuildpackin interfaceStaging- Returns:
- Raw, free-form information regarding a detected buildpack, or null if no detected buildpack was resolved. For example, if the application is stopped, the detected buildpack may be null.
-
getHealthCheckTimeout
public Integer getHealthCheckTimeout()
- Specified by:
getHealthCheckTimeoutin interfaceStaging- Returns:
- the health check timeout value
-
getHealthCheckType
public String getHealthCheckType()
- Specified by:
getHealthCheckTypein interfaceStaging- Returns:
- health check type
-
getHealthCheckHttpEndpoint
public String getHealthCheckHttpEndpoint()
- Specified by:
getHealthCheckHttpEndpointin interfaceStaging- Returns:
- health check http endpoint value
-
isSshEnabled
public Boolean isSshEnabled()
- Specified by:
isSshEnabledin interfaceStaging- Returns:
- boolean value to see if ssh is enabled
-
getStack
public String getStack()
-
getDockerInfo
public DockerInfo getDockerInfo()
- Specified by:
getDockerInfoin interfaceStaging- Returns:
- The value of the
dockerInfoattribute
-
withBuildpacks
public final ImmutableStaging withBuildpacks(String... elements)
Copy the current immutable object with elements that replace the content ofbuildpacks.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withBuildpacks
public final ImmutableStaging withBuildpacks(Iterable<String> elements)
Copy the current immutable object with elements that replace the content ofbuildpacks. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of buildpacks elements to set- Returns:
- A modified copy of
thisobject
-
withCommand
public final ImmutableStaging withCommand(String value)
Copy the current immutable object by setting a value for thecommandattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for command (can benull)- Returns:
- A modified copy of the
thisobject
-
withDetectedBuildpack
public final ImmutableStaging withDetectedBuildpack(String value)
Copy the current immutable object by setting a value for thedetectedBuildpackattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for detectedBuildpack (can benull)- Returns:
- A modified copy of the
thisobject
-
withHealthCheckTimeout
public final ImmutableStaging withHealthCheckTimeout(Integer value)
Copy the current immutable object by setting a value for thehealthCheckTimeoutattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for healthCheckTimeout (can benull)- Returns:
- A modified copy of the
thisobject
-
withHealthCheckType
public final ImmutableStaging withHealthCheckType(String value)
Copy the current immutable object by setting a value for thehealthCheckTypeattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for healthCheckType (can benull)- Returns:
- A modified copy of the
thisobject
-
withHealthCheckHttpEndpoint
public final ImmutableStaging withHealthCheckHttpEndpoint(String value)
Copy the current immutable object by setting a value for thehealthCheckHttpEndpointattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for healthCheckHttpEndpoint (can benull)- Returns:
- A modified copy of the
thisobject
-
withIsSshEnabled
public final ImmutableStaging withIsSshEnabled(Boolean value)
Copy the current immutable object by setting a value for theisSshEnabledattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for isSshEnabled (can benull)- Returns:
- A modified copy of the
thisobject
-
withStack
public final ImmutableStaging withStack(String value)
Copy the current immutable object by setting a value for thestackattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for stack (can benull)- Returns:
- A modified copy of the
thisobject
-
withDockerInfo
public final ImmutableStaging withDockerInfo(DockerInfo value)
Copy the current immutable object by setting a value for thedockerInfoattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for dockerInfo (can benull)- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(Object another)
This instance is equal to all instances ofImmutableStagingthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:buildpacks,command,detectedBuildpack,healthCheckTimeout,healthCheckType,healthCheckHttpEndpoint,isSshEnabled,stack,dockerInfo.
-
toString
public String toString()
Prints the immutable valueStagingwith attribute values.
-
copyOf
public static ImmutableStaging copyOf(Staging instance)
Creates an immutable copy of aStagingvalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable Staging instance
-
builder
public static ImmutableStaging.Builder builder()
Creates a builder forImmutableStaging.ImmutableStaging.builder() .addBuildpack|addAllBuildpacks(String) //buildpackselements .command(String | null) // nullablecommand.detectedBuildpack(String | null) // nullabledetectedBuildpack.healthCheckTimeout(Integer | null) // nullablehealthCheckTimeout.healthCheckType(String | null) // nullablehealthCheckType.healthCheckHttpEndpoint(String | null) // nullablehealthCheckHttpEndpoint.isSshEnabled(Boolean | null) // nullableisSshEnabled.stack(String | null) // nullablestack.dockerInfo(com.sap.cloudfoundry.client.facade.domain.DockerInfo | null) // nullabledockerInfo.build();- Returns:
- A new ImmutableStaging builder
-
-