Class ImmutableTestCaseEditionDto.Builder

java.lang.Object
com.chutneytesting.design.api.editionlock.ImmutableTestCaseEditionDto.Builder
Enclosing class:
ImmutableTestCaseEditionDto

@NotThreadSafe public static final class ImmutableTestCaseEditionDto.Builder extends Object
Builds instances of type ImmutableTestCaseEditionDto. 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 ImmutableTestCaseEditionDto.Builder from(TestCaseEditionDto instance)
      Fill a builder with attribute values from the provided TestCaseEditionDto instance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • testCaseId

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

      @CanIgnoreReturnValue public final ImmutableTestCaseEditionDto.Builder testCaseVersion(Integer testCaseVersion)
      Initializes the value for the testCaseVersion attribute.
      Parameters:
      testCaseVersion - The value for testCaseVersion
      Returns:
      this builder for use in a chained invocation
    • editionStartDate

      @CanIgnoreReturnValue public final ImmutableTestCaseEditionDto.Builder editionStartDate(Instant editionStartDate)
      Initializes the value for the editionStartDate attribute.
      Parameters:
      editionStartDate - The value for editionStartDate
      Returns:
      this builder for use in a chained invocation
    • editionUser

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

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