Class ContractTest.Builder

  • Enclosing class:
    ContractTest

    public static class ContractTest.Builder
    extends java.lang.Object
    Builder.
    • Constructor Detail

      • Builder

        public Builder()
        Instantiates a new builder.
      • Builder

        public Builder​(java.lang.String status,
                       java.util.Date lastTestedTime)
        Instantiates a new builder with required properties.
        Parameters:
        status - the status
        lastTestedTime - the lastTestedTime
    • Method Detail

      • build

        public ContractTest build()
        Builds a ContractTest.
        Returns:
        the new ContractTest instance
      • addTestSummary

        public ContractTest.Builder addTestSummary​(ContractTestSummary testSummary)
        Adds a new element to testSummary.
        Parameters:
        testSummary - the new element to be added
        Returns:
        the ContractTest builder
      • status

        public ContractTest.Builder status​(java.lang.String status)
        Set the status.
        Parameters:
        status - the status
        Returns:
        the ContractTest builder
      • lastTestedTime

        public ContractTest.Builder lastTestedTime​(java.util.Date lastTestedTime)
        Set the lastTestedTime.
        Parameters:
        lastTestedTime - the lastTestedTime
        Returns:
        the ContractTest builder
      • dataContractId

        public ContractTest.Builder dataContractId​(java.lang.String dataContractId)
        Set the dataContractId.
        Parameters:
        dataContractId - the dataContractId
        Returns:
        the ContractTest builder
      • projectId

        public ContractTest.Builder projectId​(java.lang.String projectId)
        Set the projectId.
        Parameters:
        projectId - the projectId
        Returns:
        the ContractTest builder
      • message

        public ContractTest.Builder message​(java.lang.String message)
        Set the message.
        Parameters:
        message - the message
        Returns:
        the ContractTest builder
      • testRunId

        public ContractTest.Builder testRunId​(java.lang.String testRunId)
        Set the testRunId.
        Parameters:
        testRunId - the testRunId
        Returns:
        the ContractTest builder
      • testSummary

        public ContractTest.Builder testSummary​(java.util.List<ContractTestSummary> testSummary)
        Set the testSummary. Existing testSummary will be replaced.
        Parameters:
        testSummary - the testSummary
        Returns:
        the ContractTest builder