Class ImmutableExecutionSummaryDto.Builder

  • Enclosing class:
    ImmutableExecutionSummaryDto

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

        @CanIgnoreReturnValue
        public final ImmutableExecutionSummaryDto.Builder from​(ExecutionSummaryDto instance)
        Fill a builder with attribute values from the provided com.chutneytesting.execution.api.ExecutionSummaryDto instance.
        Parameters:
        instance - The instance from which to copy values
        Returns:
        this builder for use in a chained invocation
      • from

        @CanIgnoreReturnValue
        public final ImmutableExecutionSummaryDto.Builder from​(ExecutionHistory.ExecutionProperties instance)
        Fill a builder with attribute values from the provided com.chutneytesting.server.core.domain.execution.history.ExecutionHistory.ExecutionProperties instance.
        Parameters:
        instance - The instance from which to copy values
        Returns:
        this builder for use in a chained invocation
      • from

        @CanIgnoreReturnValue
        public final ImmutableExecutionSummaryDto.Builder from​(ExecutionHistory.Attached instance)
        Fill a builder with attribute values from the provided com.chutneytesting.server.core.domain.execution.history.ExecutionHistory.Attached instance.
        Parameters:
        instance - The instance from which to copy values
        Returns:
        this builder for use in a chained invocation
      • duration

        @CanIgnoreReturnValue
        public final ImmutableExecutionSummaryDto.Builder duration​(long duration)
        Initializes the value for the duration attribute.
        Parameters:
        duration - The value for duration
        Returns:
        this builder for use in a chained invocation
      • info

        @CanIgnoreReturnValue
        public final ImmutableExecutionSummaryDto.Builder info​(String info)
        Initializes the optional value info to info.
        Parameters:
        info - The value for info
        Returns:
        this builder for chained invocation
      • error

        @CanIgnoreReturnValue
        public final ImmutableExecutionSummaryDto.Builder error​(String error)
        Initializes the optional value error to error.
        Parameters:
        error - The value for error
        Returns:
        this builder for chained invocation
      • testCaseTitle

        @CanIgnoreReturnValue
        public final ImmutableExecutionSummaryDto.Builder testCaseTitle​(String testCaseTitle)
        Initializes the value for the testCaseTitle attribute.
        Parameters:
        testCaseTitle - The value for testCaseTitle
        Returns:
        this builder for use in a chained invocation
      • environment

        @CanIgnoreReturnValue
        public final ImmutableExecutionSummaryDto.Builder environment​(String environment)
        Initializes the value for the environment attribute.
        Parameters:
        environment - The value for environment
        Returns:
        this builder for use in a chained invocation
      • datasetId

        @CanIgnoreReturnValue
        public final ImmutableExecutionSummaryDto.Builder datasetId​(String datasetId)
        Initializes the optional value datasetId to datasetId.
        Parameters:
        datasetId - The value for datasetId
        Returns:
        this builder for chained invocation
      • datasetVersion

        @CanIgnoreReturnValue
        public final ImmutableExecutionSummaryDto.Builder datasetVersion​(int datasetVersion)
        Initializes the optional value datasetVersion to datasetVersion.
        Parameters:
        datasetVersion - The value for datasetVersion
        Returns:
        this builder for chained invocation
      • user

        @CanIgnoreReturnValue
        public final ImmutableExecutionSummaryDto.Builder user​(String user)
        Initializes the value for the user attribute.
        Parameters:
        user - The value for user
        Returns:
        this builder for use in a chained invocation
      • executionId

        @CanIgnoreReturnValue
        public final ImmutableExecutionSummaryDto.Builder executionId​(Long executionId)
        Initializes the value for the executionId attribute.
        Parameters:
        executionId - The value for executionId
        Returns:
        this builder for use in a chained invocation