Class ImmutableCloudProcess.Builder

  • Enclosing class:
    ImmutableCloudProcess

    public static final class ImmutableCloudProcess.Builder
    extends Object
    Builds instances of type ImmutableCloudProcess. 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.

    • Method Detail

      • from

        public final ImmutableCloudProcess.Builder from​(CloudProcess instance)
        Fill a builder with attribute values from the provided com.sap.cloudfoundry.client.facade.domain.CloudProcess instance.
        Parameters:
        instance - The instance from which to copy values
        Returns:
        this builder for use in a chained invocation
      • from

        public final ImmutableCloudProcess.Builder from​(CloudEntity instance)
        Fill a builder with attribute values from the provided com.sap.cloudfoundry.client.facade.domain.CloudEntity instance.
        Parameters:
        instance - The instance from which to copy values
        Returns:
        this builder for use in a chained invocation
      • name

        public final ImmutableCloudProcess.Builder name​(String name)
        Initializes the value for the name attribute.
        Parameters:
        name - The value for name (can be null)
        Returns:
        this builder for use in a chained invocation
      • metadata

        public final ImmutableCloudProcess.Builder metadata​(CloudMetadata metadata)
        Initializes the value for the metadata attribute.
        Parameters:
        metadata - The value for metadata (can be null)
        Returns:
        this builder for use in a chained invocation
      • v3Metadata

        public final ImmutableCloudProcess.Builder v3Metadata​(org.cloudfoundry.client.v3.Metadata v3Metadata)
        Initializes the value for the v3Metadata attribute.
        Parameters:
        v3Metadata - The value for v3Metadata (can be null)
        Returns:
        this builder for use in a chained invocation
      • command

        public final ImmutableCloudProcess.Builder command​(String command)
        Initializes the value for the command attribute.
        Parameters:
        command - The value for command
        Returns:
        this builder for use in a chained invocation
      • diskInMb

        public final ImmutableCloudProcess.Builder diskInMb​(Integer diskInMb)
        Initializes the value for the diskInMb attribute.
        Parameters:
        diskInMb - The value for diskInMb
        Returns:
        this builder for use in a chained invocation
      • instances

        public final ImmutableCloudProcess.Builder instances​(Integer instances)
        Initializes the value for the instances attribute.
        Parameters:
        instances - The value for instances
        Returns:
        this builder for use in a chained invocation
      • memoryInMb

        public final ImmutableCloudProcess.Builder memoryInMb​(Integer memoryInMb)
        Initializes the value for the memoryInMb attribute.
        Parameters:
        memoryInMb - The value for memoryInMb
        Returns:
        this builder for use in a chained invocation
      • healthCheckHttpEndpoint

        public final ImmutableCloudProcess.Builder healthCheckHttpEndpoint​(String healthCheckHttpEndpoint)
        Initializes the value for the healthCheckHttpEndpoint attribute.
        Parameters:
        healthCheckHttpEndpoint - The value for healthCheckHttpEndpoint (can be null)
        Returns:
        this builder for use in a chained invocation
      • healthCheckInvocationTimeout

        public final ImmutableCloudProcess.Builder healthCheckInvocationTimeout​(Integer healthCheckInvocationTimeout)
        Initializes the value for the healthCheckInvocationTimeout attribute.
        Parameters:
        healthCheckInvocationTimeout - The value for healthCheckInvocationTimeout (can be null)
        Returns:
        this builder for use in a chained invocation
      • healthCheckTimeout

        public final ImmutableCloudProcess.Builder healthCheckTimeout​(Integer healthCheckTimeout)
        Initializes the value for the healthCheckTimeout attribute.
        Parameters:
        healthCheckTimeout - The value for healthCheckTimeout (can be null)
        Returns:
        this builder for use in a chained invocation