Class ImmutableGwtTestCaseDto

java.lang.Object
fr.enedis.chutney.scenario.api.raw.dto.ImmutableGwtTestCaseDto
All Implemented Interfaces:
GwtTestCaseDto

@Generated(from="GwtTestCaseDto", generator="Immutables") @ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableGwtTestCaseDto extends Object implements GwtTestCaseDto
Immutable implementation of GwtTestCaseDto.

Use the builder to create immutable instances: ImmutableGwtTestCaseDto.builder().

  • Method Details

    • id

      public Optional<String> id()
      Specified by:
      id in interface GwtTestCaseDto
      Returns:
      The value of the id attribute
    • title

      public String title()
      Specified by:
      title in interface GwtTestCaseDto
      Returns:
      The value of the title attribute
    • description

      public Optional<String> description()
      Specified by:
      description in interface GwtTestCaseDto
      Returns:
      The value of the description attribute
    • repositorySource

      public Optional<String> repositorySource()
      Specified by:
      repositorySource in interface GwtTestCaseDto
      Returns:
      The value of the repositorySource attribute
    • tags

      public List<String> tags()
      Specified by:
      tags in interface GwtTestCaseDto
      Returns:
      The value of the tags attribute
    • executions

      public List<ExecutionSummaryDto> executions()
      Specified by:
      executions in interface GwtTestCaseDto
      Returns:
      The value of the executions attribute
    • creationDate

      public Optional<Instant> creationDate()
      Specified by:
      creationDate in interface GwtTestCaseDto
      Returns:
      The value of the creationDate attribute
    • scenario

      public GwtScenarioDto scenario()
      Specified by:
      scenario in interface GwtTestCaseDto
      Returns:
      The value of the scenario attribute
    • defaultDataset

      public Optional<String> defaultDataset()
      Specified by:
      defaultDataset in interface GwtTestCaseDto
      Returns:
      The value of the defaultDataset attribute
    • author

      public String author()
      Specified by:
      author in interface GwtTestCaseDto
      Returns:
      The value of the author attribute
    • updateDate

      public Instant updateDate()
      Specified by:
      updateDate in interface GwtTestCaseDto
      Returns:
      The value of the updateDate attribute
    • version

      public Integer version()
      Specified by:
      version in interface GwtTestCaseDto
      Returns:
      The value of the version attribute
    • withId

      public final ImmutableGwtTestCaseDto withId(String value)
      Copy the current immutable object by setting a present value for the optional id attribute.
      Parameters:
      value - The value for id
      Returns:
      A modified copy or this if not changed
    • withId

      public final ImmutableGwtTestCaseDto withId(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the id attribute. An equality check is used on inner value to prevent copying of the same value by returning this.
      Parameters:
      optional - An optional value for id
      Returns:
      A modified copy or this if not changed
    • withTitle

      public final ImmutableGwtTestCaseDto withTitle(String value)
      Copy the current immutable object by setting a value for the title attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for title
      Returns:
      A modified copy or the this object
    • withDescription

      public final ImmutableGwtTestCaseDto withDescription(String value)
      Copy the current immutable object by setting a present value for the optional description attribute.
      Parameters:
      value - The value for description
      Returns:
      A modified copy or this if not changed
    • withDescription

      public final ImmutableGwtTestCaseDto withDescription(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the description attribute. An equality check is used on inner value to prevent copying of the same value by returning this.
      Parameters:
      optional - An optional value for description
      Returns:
      A modified copy or this if not changed
    • withRepositorySource

      public final ImmutableGwtTestCaseDto withRepositorySource(String value)
      Copy the current immutable object by setting a present value for the optional repositorySource attribute.
      Parameters:
      value - The value for repositorySource
      Returns:
      A modified copy or this if not changed
    • withRepositorySource

      public final ImmutableGwtTestCaseDto withRepositorySource(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the repositorySource attribute. An equality check is used on inner value to prevent copying of the same value by returning this.
      Parameters:
      optional - An optional value for repositorySource
      Returns:
      A modified copy or this if not changed
    • withTags

      public final ImmutableGwtTestCaseDto withTags(String... elements)
      Copy the current immutable object with elements that replace the content of tags.
      Parameters:
      elements - The elements to set
      Returns:
      A modified copy of this object
    • withTags

      public final ImmutableGwtTestCaseDto withTags(Iterable<String> elements)
      Copy the current immutable object with elements that replace the content of tags. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      elements - An iterable of tags elements to set
      Returns:
      A modified copy or this if not changed
    • withExecutions

      public final ImmutableGwtTestCaseDto withExecutions(ExecutionSummaryDto... elements)
      Copy the current immutable object with elements that replace the content of executions.
      Parameters:
      elements - The elements to set
      Returns:
      A modified copy of this object
    • withExecutions

      public final ImmutableGwtTestCaseDto withExecutions(Iterable<? extends ExecutionSummaryDto> elements)
      Copy the current immutable object with elements that replace the content of executions. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      elements - An iterable of executions elements to set
      Returns:
      A modified copy or this if not changed
    • withCreationDate

      public final ImmutableGwtTestCaseDto withCreationDate(Instant value)
      Copy the current immutable object by setting a present value for the optional creationDate attribute.
      Parameters:
      value - The value for creationDate
      Returns:
      A modified copy or this if not changed
    • withCreationDate

      public final ImmutableGwtTestCaseDto withCreationDate(Optional<? extends Instant> optional)
      Copy the current immutable object by setting an optional value for the creationDate attribute. A shallow reference equality check on the inner value is used to prevent copying of the same value by returning this.
      Parameters:
      optional - An optional value for creationDate
      Returns:
      A modified copy or this if not changed
    • withScenario

      public final ImmutableGwtTestCaseDto withScenario(GwtScenarioDto value)
      Copy the current immutable object by setting a value for the scenario attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for scenario
      Returns:
      A modified copy or the this object
    • withDefaultDataset

      public final ImmutableGwtTestCaseDto withDefaultDataset(String value)
      Copy the current immutable object by setting a present value for the optional defaultDataset attribute.
      Parameters:
      value - The value for defaultDataset
      Returns:
      A modified copy or this if not changed
    • withDefaultDataset

      public final ImmutableGwtTestCaseDto withDefaultDataset(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the defaultDataset attribute. An equality check is used on inner value to prevent copying of the same value by returning this.
      Parameters:
      optional - An optional value for defaultDataset
      Returns:
      A modified copy or this if not changed
    • withAuthor

      public final ImmutableGwtTestCaseDto withAuthor(String value)
      Copy the current immutable object by setting a value for the author attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for author
      Returns:
      A modified copy or the this object
    • withUpdateDate

      public final ImmutableGwtTestCaseDto withUpdateDate(Instant value)
      Copy the current immutable object by setting a value for the updateDate attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for updateDate
      Returns:
      A modified copy or the this object
    • withVersion

      public final ImmutableGwtTestCaseDto withVersion(Integer value)
      Copy the current immutable object by setting a value for the version attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for version
      Returns:
      A modified copy or the this object
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of ImmutableGwtTestCaseDto that have equal attribute values.
      Overrides:
      equals in class Object
      Returns:
      true if this is equal to another instance
    • hashCode

      public int hashCode()
      Computes a hash code from attributes: id, title, description, repositorySource, tags, executions, creationDate, scenario, defaultDataset, author, updateDate, version.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

      public String toString()
      Prints the immutable value GwtTestCaseDto with attribute values.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • copyOf

      public static ImmutableGwtTestCaseDto copyOf(GwtTestCaseDto instance)
      Creates an immutable copy of a GwtTestCaseDto value. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.
      Parameters:
      instance - The instance to copy
      Returns:
      A copied immutable GwtTestCaseDto instance
    • builder

      public static ImmutableGwtTestCaseDto.Builder builder()
      Creates a builder for ImmutableGwtTestCaseDto.
       ImmutableGwtTestCaseDto.builder()
          .id(Optional<String>) // optional id
          .title(String) // required title
          .description(Optional<String>) // optional description
          .repositorySource(Optional<String>) // optional repositorySource
          .addTags|addAllTags(String) // tags elements
          .addExecutions|addAllExecutions(fr.enedis.chutney.execution.api.ExecutionSummaryDto) // executions elements
          .creationDate(Optional<java.time.Instant>) // optional creationDate
          .scenario(fr.enedis.chutney.scenario.api.raw.dto.GwtScenarioDto) // required scenario
          .defaultDataset(Optional<String>) // optional defaultDataset
          .author(String) // optional author
          .updateDate(java.time.Instant) // optional updateDate
          .version(Integer) // optional version
          .build();
       
      Returns:
      A new ImmutableGwtTestCaseDto builder