Class ImmutableTestCaseEditionDto

java.lang.Object
com.chutneytesting.design.api.editionlock.ImmutableTestCaseEditionDto
All Implemented Interfaces:
TestCaseEditionDto

@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableTestCaseEditionDto extends Object implements TestCaseEditionDto
Immutable implementation of TestCaseEditionDto.

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

  • Method Details

    • testCaseId

      public String testCaseId()
      Specified by:
      testCaseId in interface TestCaseEditionDto
      Returns:
      The value of the testCaseId attribute
    • testCaseVersion

      public Integer testCaseVersion()
      Specified by:
      testCaseVersion in interface TestCaseEditionDto
      Returns:
      The value of the testCaseVersion attribute
    • editionStartDate

      public Instant editionStartDate()
      Specified by:
      editionStartDate in interface TestCaseEditionDto
      Returns:
      The value of the editionStartDate attribute
    • editionUser

      public String editionUser()
      Specified by:
      editionUser in interface TestCaseEditionDto
      Returns:
      The value of the editionUser attribute
    • withTestCaseId

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

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

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

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

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of ImmutableTestCaseEditionDto 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: testCaseId, testCaseVersion, editionStartDate, editionUser.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

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

      public static ImmutableTestCaseEditionDto copyOf(TestCaseEditionDto instance)
      Creates an immutable copy of a TestCaseEditionDto 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 TestCaseEditionDto instance
    • builder

      public static ImmutableTestCaseEditionDto.Builder builder()
      Creates a builder for ImmutableTestCaseEditionDto.
       ImmutableTestCaseEditionDto.builder()
          .testCaseId(String) // required testCaseId
          .testCaseVersion(Integer) // required testCaseVersion
          .editionStartDate(java.time.Instant) // required editionStartDate
          .editionUser(String) // required editionUser
          .build();
       
      Returns:
      A new ImmutableTestCaseEditionDto builder