Class ImmutableStaging.Builder

  • Enclosing class:
    ImmutableStaging

    public static final class ImmutableStaging.Builder
    extends Object
    Builds instances of type ImmutableStaging. 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 ImmutableStaging.Builder from​(Staging instance)
        Fill a builder with attribute values from the provided Staging instance. 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:
        this builder for use in a chained invocation
      • addBuildpack

        public final ImmutableStaging.Builder addBuildpack​(String element)
        Adds one element to buildpacks list.
        Parameters:
        element - A buildpacks element
        Returns:
        this builder for use in a chained invocation
      • addBuildpacks

        public final ImmutableStaging.Builder addBuildpacks​(String... elements)
        Adds elements to buildpacks list.
        Parameters:
        elements - An array of buildpacks elements
        Returns:
        this builder for use in a chained invocation
      • buildpacks

        public final ImmutableStaging.Builder buildpacks​(Iterable<String> elements)
        Sets or replaces all elements for buildpacks list.
        Parameters:
        elements - An iterable of buildpacks elements
        Returns:
        this builder for use in a chained invocation
      • addAllBuildpacks

        public final ImmutableStaging.Builder addAllBuildpacks​(Iterable<String> elements)
        Adds elements to buildpacks list.
        Parameters:
        elements - An iterable of buildpacks elements
        Returns:
        this builder for use in a chained invocation
      • command

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

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

        public final ImmutableStaging.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
      • healthCheckType

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

        public final ImmutableStaging.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
      • isSshEnabled

        public final ImmutableStaging.Builder isSshEnabled​(Boolean isSshEnabled)
        Initializes the value for the isSshEnabled attribute.
        Parameters:
        isSshEnabled - The value for isSshEnabled (can be null)
        Returns:
        this builder for use in a chained invocation
      • stackName

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

        public final ImmutableStaging.Builder dockerInfo​(DockerInfo dockerInfo)
        Initializes the value for the dockerInfo attribute.
        Parameters:
        dockerInfo - The value for dockerInfo (can be null)
        Returns:
        this builder for use in a chained invocation
      • invocationTimeout

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