Class ImmutableGwtTestCaseDto.Builder

java.lang.Object
fr.enedis.chutney.scenario.api.raw.dto.ImmutableGwtTestCaseDto.Builder
Enclosing class:
ImmutableGwtTestCaseDto

@Generated(from="GwtTestCaseDto", generator="Immutables") @NotThreadSafe public static final class ImmutableGwtTestCaseDto.Builder extends Object
Builds instances of type ImmutableGwtTestCaseDto. 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 ImmutableGwtTestCaseDto.Builder from(GwtTestCaseDto instance)
      Fill a builder with attribute values from the provided GwtTestCaseDto 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
    • id

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

      @CanIgnoreReturnValue public final ImmutableGwtTestCaseDto.Builder id(Optional<String> id)
      Initializes the optional value id to id.
      Parameters:
      id - The value for id
      Returns:
      this builder for use in a chained invocation
    • title

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

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

      @CanIgnoreReturnValue public final ImmutableGwtTestCaseDto.Builder description(Optional<String> description)
      Initializes the optional value description to description.
      Parameters:
      description - The value for description
      Returns:
      this builder for use in a chained invocation
    • repositorySource

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

      @CanIgnoreReturnValue public final ImmutableGwtTestCaseDto.Builder repositorySource(Optional<String> repositorySource)
      Initializes the optional value repositorySource to repositorySource.
      Parameters:
      repositorySource - The value for repositorySource
      Returns:
      this builder for use in a chained invocation
    • addTags

      @CanIgnoreReturnValue public final ImmutableGwtTestCaseDto.Builder addTags(String element)
      Adds one element to tags list.
      Parameters:
      element - A tags element
      Returns:
      this builder for use in a chained invocation
    • addTags

      @CanIgnoreReturnValue public final ImmutableGwtTestCaseDto.Builder addTags(String... elements)
      Adds elements to tags list.
      Parameters:
      elements - An array of tags elements
      Returns:
      this builder for use in a chained invocation
    • tags

      @CanIgnoreReturnValue public final ImmutableGwtTestCaseDto.Builder tags(Iterable<String> elements)
      Sets or replaces all elements for tags list.
      Parameters:
      elements - An iterable of tags elements
      Returns:
      this builder for use in a chained invocation
    • addAllTags

      @CanIgnoreReturnValue public final ImmutableGwtTestCaseDto.Builder addAllTags(Iterable<String> elements)
      Adds elements to tags list.
      Parameters:
      elements - An iterable of tags elements
      Returns:
      this builder for use in a chained invocation
    • addExecutions

      @CanIgnoreReturnValue public final ImmutableGwtTestCaseDto.Builder addExecutions(ExecutionSummaryDto element)
      Adds one element to executions list.
      Parameters:
      element - A executions element
      Returns:
      this builder for use in a chained invocation
    • addExecutions

      @CanIgnoreReturnValue public final ImmutableGwtTestCaseDto.Builder addExecutions(ExecutionSummaryDto... elements)
      Adds elements to executions list.
      Parameters:
      elements - An array of executions elements
      Returns:
      this builder for use in a chained invocation
    • executions

      @CanIgnoreReturnValue public final ImmutableGwtTestCaseDto.Builder executions(Iterable<? extends ExecutionSummaryDto> elements)
      Sets or replaces all elements for executions list.
      Parameters:
      elements - An iterable of executions elements
      Returns:
      this builder for use in a chained invocation
    • addAllExecutions

      @CanIgnoreReturnValue public final ImmutableGwtTestCaseDto.Builder addAllExecutions(Iterable<? extends ExecutionSummaryDto> elements)
      Adds elements to executions list.
      Parameters:
      elements - An iterable of executions elements
      Returns:
      this builder for use in a chained invocation
    • creationDate

      @CanIgnoreReturnValue public final ImmutableGwtTestCaseDto.Builder creationDate(Instant creationDate)
      Initializes the optional value creationDate to creationDate.
      Parameters:
      creationDate - The value for creationDate
      Returns:
      this builder for chained invocation
    • creationDate

      @CanIgnoreReturnValue public final ImmutableGwtTestCaseDto.Builder creationDate(Optional<? extends Instant> creationDate)
      Initializes the optional value creationDate to creationDate.
      Parameters:
      creationDate - The value for creationDate
      Returns:
      this builder for use in a chained invocation
    • scenario

      @CanIgnoreReturnValue public final ImmutableGwtTestCaseDto.Builder scenario(GwtScenarioDto scenario)
      Initializes the value for the scenario attribute.
      Parameters:
      scenario - The value for scenario
      Returns:
      this builder for use in a chained invocation
    • defaultDataset

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

      @CanIgnoreReturnValue public final ImmutableGwtTestCaseDto.Builder defaultDataset(Optional<String> defaultDataset)
      Initializes the optional value defaultDataset to defaultDataset.
      Parameters:
      defaultDataset - The value for defaultDataset
      Returns:
      this builder for use in a chained invocation
    • author

      @CanIgnoreReturnValue public final ImmutableGwtTestCaseDto.Builder author(String author)
      Initializes the value for the author attribute.

      If not set, this attribute will have a default value as returned by the initializer of author.

      Parameters:
      author - The value for author
      Returns:
      this builder for use in a chained invocation
    • updateDate

      @CanIgnoreReturnValue public final ImmutableGwtTestCaseDto.Builder updateDate(Instant updateDate)
      Initializes the value for the updateDate attribute.

      If not set, this attribute will have a default value as returned by the initializer of updateDate.

      Parameters:
      updateDate - The value for updateDate
      Returns:
      this builder for use in a chained invocation
    • version

      @CanIgnoreReturnValue public final ImmutableGwtTestCaseDto.Builder version(Integer version)
      Initializes the value for the version attribute.

      If not set, this attribute will have a default value as returned by the initializer of version.

      Parameters:
      version - The value for version
      Returns:
      this builder for use in a chained invocation
    • build

      public ImmutableGwtTestCaseDto build()
      Returns:
      An immutable instance of GwtTestCaseDto
      Throws:
      IllegalStateException - if any required attributes are missing