Class ImmutableStaging.Builder
- java.lang.Object
-
- com.sap.cloudfoundry.client.facade.domain.ImmutableStaging.Builder
-
- Enclosing class:
- ImmutableStaging
public static final class ImmutableStaging.Builder extends Object
Builds instances of typeImmutableStaging. Initialize attributes and then invoke thebuild()method to create an immutable instance.Builderis not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImmutableStaging.BuilderaddAllBuildpacks(Iterable<String> elements)Adds elements tobuildpackslist.ImmutableStaging.BuilderaddBuildpack(String element)Adds one element tobuildpackslist.ImmutableStaging.BuilderaddBuildpacks(String... elements)Adds elements tobuildpackslist.ImmutableStagingbuild()Builds a newImmutableStaging.ImmutableStaging.Builderbuildpacks(Iterable<String> elements)Sets or replaces all elements forbuildpackslist.ImmutableStaging.Buildercommand(String command)Initializes the value for thecommandattribute.ImmutableStaging.BuilderdetectedBuildpack(String detectedBuildpack)Initializes the value for thedetectedBuildpackattribute.ImmutableStaging.BuilderdockerInfo(DockerInfo dockerInfo)Initializes the value for thedockerInfoattribute.ImmutableStaging.Builderfrom(Staging instance)Fill a builder with attribute values from the providedStaginginstance.ImmutableStaging.BuilderhealthCheckHttpEndpoint(String healthCheckHttpEndpoint)Initializes the value for thehealthCheckHttpEndpointattribute.ImmutableStaging.BuilderhealthCheckTimeout(Integer healthCheckTimeout)Initializes the value for thehealthCheckTimeoutattribute.ImmutableStaging.BuilderhealthCheckType(String healthCheckType)Initializes the value for thehealthCheckTypeattribute.ImmutableStaging.BuilderinvocationTimeout(Integer invocationTimeout)Initializes the value for theinvocationTimeoutattribute.ImmutableStaging.BuilderisSshEnabled(Boolean isSshEnabled)Initializes the value for theisSshEnabledattribute.ImmutableStaging.BuilderstackName(String stackName)Initializes the value for thestackNameattribute.
-
-
-
Method Detail
-
from
public final ImmutableStaging.Builder from(Staging instance)
Fill a builder with attribute values from the providedStaginginstance. 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.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
addBuildpack
public final ImmutableStaging.Builder addBuildpack(String element)
Adds one element tobuildpackslist.- Parameters:
element- A buildpacks element- Returns:
thisbuilder for use in a chained invocation
-
addBuildpacks
public final ImmutableStaging.Builder addBuildpacks(String... elements)
Adds elements tobuildpackslist.- Parameters:
elements- An array of buildpacks elements- Returns:
thisbuilder for use in a chained invocation
-
buildpacks
public final ImmutableStaging.Builder buildpacks(Iterable<String> elements)
Sets or replaces all elements forbuildpackslist.- Parameters:
elements- An iterable of buildpacks elements- Returns:
thisbuilder for use in a chained invocation
-
addAllBuildpacks
public final ImmutableStaging.Builder addAllBuildpacks(Iterable<String> elements)
Adds elements tobuildpackslist.- Parameters:
elements- An iterable of buildpacks elements- Returns:
thisbuilder for use in a chained invocation
-
command
public final ImmutableStaging.Builder command(String command)
Initializes the value for thecommandattribute.- Parameters:
command- The value for command (can benull)- Returns:
thisbuilder for use in a chained invocation
-
detectedBuildpack
public final ImmutableStaging.Builder detectedBuildpack(String detectedBuildpack)
Initializes the value for thedetectedBuildpackattribute.- Parameters:
detectedBuildpack- The value for detectedBuildpack (can benull)- Returns:
thisbuilder for use in a chained invocation
-
healthCheckTimeout
public final ImmutableStaging.Builder healthCheckTimeout(Integer healthCheckTimeout)
Initializes the value for thehealthCheckTimeoutattribute.- Parameters:
healthCheckTimeout- The value for healthCheckTimeout (can benull)- Returns:
thisbuilder for use in a chained invocation
-
healthCheckType
public final ImmutableStaging.Builder healthCheckType(String healthCheckType)
Initializes the value for thehealthCheckTypeattribute.- Parameters:
healthCheckType- The value for healthCheckType (can benull)- Returns:
thisbuilder for use in a chained invocation
-
healthCheckHttpEndpoint
public final ImmutableStaging.Builder healthCheckHttpEndpoint(String healthCheckHttpEndpoint)
Initializes the value for thehealthCheckHttpEndpointattribute.- Parameters:
healthCheckHttpEndpoint- The value for healthCheckHttpEndpoint (can benull)- Returns:
thisbuilder for use in a chained invocation
-
isSshEnabled
public final ImmutableStaging.Builder isSshEnabled(Boolean isSshEnabled)
Initializes the value for theisSshEnabledattribute.- Parameters:
isSshEnabled- The value for isSshEnabled (can benull)- Returns:
thisbuilder for use in a chained invocation
-
stackName
public final ImmutableStaging.Builder stackName(String stackName)
Initializes the value for thestackNameattribute.- Parameters:
stackName- The value for stackName (can benull)- Returns:
thisbuilder for use in a chained invocation
-
dockerInfo
public final ImmutableStaging.Builder dockerInfo(DockerInfo dockerInfo)
Initializes the value for thedockerInfoattribute.- Parameters:
dockerInfo- The value for dockerInfo (can benull)- Returns:
thisbuilder for use in a chained invocation
-
invocationTimeout
public final ImmutableStaging.Builder invocationTimeout(Integer invocationTimeout)
Initializes the value for theinvocationTimeoutattribute.- Parameters:
invocationTimeout- The value for invocationTimeout (can benull)- Returns:
thisbuilder for use in a chained invocation
-
build
public ImmutableStaging build()
Builds a newImmutableStaging.- Returns:
- An immutable instance of Staging
- Throws:
IllegalStateException- if any required attributes are missing
-
-