Class ImmutableExecutionSummaryDto.Builder

java.lang.Object
fr.enedis.chutney.execution.api.ImmutableExecutionSummaryDto.Builder
Enclosing class:
ImmutableExecutionSummaryDto

@Generated(from="ExecutionSummaryDto", generator="Immutables") @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 Details

    • from

      @CanIgnoreReturnValue public final ImmutableExecutionSummaryDto.Builder from(fr.enedis.chutney.server.core.domain.execution.history.ExecutionHistory.WithScenario instance)
      Fill a builder with attribute values from the provided fr.enedis.chutney.server.core.domain.execution.history.ExecutionHistory.WithScenario 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(ExecutionSummaryDto instance)
      Fill a builder with attribute values from the provided fr.enedis.chutney.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(fr.enedis.chutney.server.core.domain.execution.history.ExecutionHistory.Attached instance)
      Fill a builder with attribute values from the provided fr.enedis.chutney.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
    • from

      @CanIgnoreReturnValue public final ImmutableExecutionSummaryDto.Builder from(fr.enedis.chutney.server.core.domain.execution.history.ExecutionHistory.ExecutionProperties instance)
      Fill a builder with attribute values from the provided fr.enedis.chutney.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
    • time

      @CanIgnoreReturnValue public final ImmutableExecutionSummaryDto.Builder time(LocalDateTime time)
      Initializes the value for the time attribute.
      Parameters:
      time - The value for time
      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
    • status

      @CanIgnoreReturnValue public final ImmutableExecutionSummaryDto.Builder status(fr.enedis.chutney.server.core.domain.execution.report.ServerReportStatus status)
      Initializes the value for the status attribute.
      Parameters:
      status - The value for status
      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
    • info

      @CanIgnoreReturnValue public final ImmutableExecutionSummaryDto.Builder info(Optional<String> info)
      Initializes the optional value info to info.
      Parameters:
      info - The value for info
      Returns:
      this builder for use in a 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
    • error

      @CanIgnoreReturnValue public final ImmutableExecutionSummaryDto.Builder error(Optional<String> error)
      Initializes the optional value error to error.
      Parameters:
      error - The value for error
      Returns:
      this builder for use in a 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
    • dataset

      @CanIgnoreReturnValue public final ImmutableExecutionSummaryDto.Builder dataset(fr.enedis.chutney.server.core.domain.dataset.DataSet dataset)
      Initializes the optional value dataset to dataset.
      Parameters:
      dataset - The value for dataset
      Returns:
      this builder for chained invocation
    • dataset

      @CanIgnoreReturnValue public final ImmutableExecutionSummaryDto.Builder dataset(Optional<? extends fr.enedis.chutney.server.core.domain.dataset.DataSet> dataset)
      Initializes the optional value dataset to dataset.
      Parameters:
      dataset - The value for dataset
      Returns:
      this builder for use in a 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
    • campaignReport

      @CanIgnoreReturnValue public final ImmutableExecutionSummaryDto.Builder campaignReport(fr.enedis.chutney.server.core.domain.scenario.campaign.CampaignExecution campaignReport)
      Initializes the optional value campaignReport to campaignReport.
      Parameters:
      campaignReport - The value for campaignReport
      Returns:
      this builder for chained invocation
    • campaignReport

      @CanIgnoreReturnValue public final ImmutableExecutionSummaryDto.Builder campaignReport(Optional<? extends fr.enedis.chutney.server.core.domain.scenario.campaign.CampaignExecution> campaignReport)
      Initializes the optional value campaignReport to campaignReport.
      Parameters:
      campaignReport - The value for campaignReport
      Returns:
      this builder for use in a chained invocation
    • tags

      @CanIgnoreReturnValue public final ImmutableExecutionSummaryDto.Builder tags(Set<String> tags)
      Initializes the optional value tags to tags.
      Parameters:
      tags - The value for tags
      Returns:
      this builder for chained invocation
    • tags

      @CanIgnoreReturnValue public final ImmutableExecutionSummaryDto.Builder tags(Optional<? extends Set<String>> tags)
      Initializes the optional value tags to tags.
      Parameters:
      tags - The value for tags
      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
    • scenarioId

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

      Returns:
      An immutable instance of ExecutionSummaryDto
      Throws:
      IllegalStateException - if any required attributes are missing