Class ImmutableCloudProcess.Builder
- java.lang.Object
-
- com.sap.cloudfoundry.client.facade.domain.ImmutableCloudProcess.Builder
-
- Enclosing class:
- ImmutableCloudProcess
public static final class ImmutableCloudProcess.Builder extends Object
Builds instances of typeImmutableCloudProcess. 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 ImmutableCloudProcessbuild()Builds a newImmutableCloudProcess.ImmutableCloudProcess.Buildercommand(String command)Initializes the value for thecommandattribute.ImmutableCloudProcess.BuilderdiskInMb(Integer diskInMb)Initializes the value for thediskInMbattribute.ImmutableCloudProcess.Builderfrom(CloudEntity instance)Fill a builder with attribute values from the providedcom.sap.cloudfoundry.client.facade.domain.CloudEntityinstance.ImmutableCloudProcess.Builderfrom(CloudProcess instance)Fill a builder with attribute values from the providedcom.sap.cloudfoundry.client.facade.domain.CloudProcessinstance.ImmutableCloudProcess.BuilderhealthCheckHttpEndpoint(String healthCheckHttpEndpoint)Initializes the value for thehealthCheckHttpEndpointattribute.ImmutableCloudProcess.BuilderhealthCheckInvocationTimeout(Integer healthCheckInvocationTimeout)Initializes the value for thehealthCheckInvocationTimeoutattribute.ImmutableCloudProcess.BuilderhealthCheckTimeout(Integer healthCheckTimeout)Initializes the value for thehealthCheckTimeoutattribute.ImmutableCloudProcess.BuilderhealthCheckType(HealthCheckType healthCheckType)Initializes the value for thehealthCheckTypeattribute.ImmutableCloudProcess.Builderinstances(Integer instances)Initializes the value for theinstancesattribute.ImmutableCloudProcess.BuildermemoryInMb(Integer memoryInMb)Initializes the value for thememoryInMbattribute.ImmutableCloudProcess.Buildermetadata(CloudMetadata metadata)Initializes the value for themetadataattribute.ImmutableCloudProcess.Buildername(String name)Initializes the value for thenameattribute.ImmutableCloudProcess.Builderv3Metadata(org.cloudfoundry.client.v3.Metadata v3Metadata)Initializes the value for thev3Metadataattribute.
-
-
-
Method Detail
-
from
public final ImmutableCloudProcess.Builder from(CloudProcess instance)
Fill a builder with attribute values from the providedcom.sap.cloudfoundry.client.facade.domain.CloudProcessinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
public final ImmutableCloudProcess.Builder from(CloudEntity instance)
Fill a builder with attribute values from the providedcom.sap.cloudfoundry.client.facade.domain.CloudEntityinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
name
public final ImmutableCloudProcess.Builder name(String name)
Initializes the value for thenameattribute.- Parameters:
name- The value for name (can benull)- Returns:
thisbuilder for use in a chained invocation
-
metadata
public final ImmutableCloudProcess.Builder metadata(CloudMetadata metadata)
Initializes the value for themetadataattribute.- Parameters:
metadata- The value for metadata (can benull)- Returns:
thisbuilder for use in a chained invocation
-
v3Metadata
public final ImmutableCloudProcess.Builder v3Metadata(org.cloudfoundry.client.v3.Metadata v3Metadata)
Initializes the value for thev3Metadataattribute.- Parameters:
v3Metadata- The value for v3Metadata (can benull)- Returns:
thisbuilder for use in a chained invocation
-
command
public final ImmutableCloudProcess.Builder command(String command)
Initializes the value for thecommandattribute.- Parameters:
command- The value for command- Returns:
thisbuilder for use in a chained invocation
-
diskInMb
public final ImmutableCloudProcess.Builder diskInMb(Integer diskInMb)
Initializes the value for thediskInMbattribute.- Parameters:
diskInMb- The value for diskInMb- Returns:
thisbuilder for use in a chained invocation
-
instances
public final ImmutableCloudProcess.Builder instances(Integer instances)
Initializes the value for theinstancesattribute.- Parameters:
instances- The value for instances- Returns:
thisbuilder for use in a chained invocation
-
memoryInMb
public final ImmutableCloudProcess.Builder memoryInMb(Integer memoryInMb)
Initializes the value for thememoryInMbattribute.- Parameters:
memoryInMb- The value for memoryInMb- Returns:
thisbuilder for use in a chained invocation
-
healthCheckType
public final ImmutableCloudProcess.Builder healthCheckType(HealthCheckType healthCheckType)
Initializes the value for thehealthCheckTypeattribute.- Parameters:
healthCheckType- The value for healthCheckType- Returns:
thisbuilder for use in a chained invocation
-
healthCheckHttpEndpoint
public final ImmutableCloudProcess.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
-
healthCheckInvocationTimeout
public final ImmutableCloudProcess.Builder healthCheckInvocationTimeout(Integer healthCheckInvocationTimeout)
Initializes the value for thehealthCheckInvocationTimeoutattribute.- Parameters:
healthCheckInvocationTimeout- The value for healthCheckInvocationTimeout (can benull)- Returns:
thisbuilder for use in a chained invocation
-
healthCheckTimeout
public final ImmutableCloudProcess.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
-
build
public ImmutableCloudProcess build()
Builds a newImmutableCloudProcess.- Returns:
- An immutable instance of CloudProcess
- Throws:
IllegalStateException- if any required attributes are missing
-
-