Class ContractQualityRule.Builder

  • Enclosing class:
    ContractQualityRule

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

      • Builder

        public Builder()
        Instantiates a new builder.
      • Builder

        public Builder​(java.lang.String type)
        Instantiates a new builder with required properties.
        Parameters:
        type - the type
    • Method Detail

      • build

        public ContractQualityRule build()
        Builds a ContractQualityRule.
        Returns:
        the new ContractQualityRule instance
      • addMustBeBetween

        public ContractQualityRule.Builder addMustBeBetween​(java.lang.String mustBeBetween)
        Adds a new element to mustBeBetween.
        Parameters:
        mustBeBetween - the new element to be added
        Returns:
        the ContractQualityRule builder
      • addMustNotBeBetween

        public ContractQualityRule.Builder addMustNotBeBetween​(java.lang.String mustNotBeBetween)
        Adds a new element to mustNotBeBetween.
        Parameters:
        mustNotBeBetween - the new element to be added
        Returns:
        the ContractQualityRule builder
      • type

        public ContractQualityRule.Builder type​(java.lang.String type)
        Set the type.
        Parameters:
        type - the type
        Returns:
        the ContractQualityRule builder
      • description

        public ContractQualityRule.Builder description​(java.lang.String description)
        Set the description.
        Parameters:
        description - the description
        Returns:
        the ContractQualityRule builder
      • rule

        public ContractQualityRule.Builder rule​(java.lang.String rule)
        Set the rule.
        Parameters:
        rule - the rule
        Returns:
        the ContractQualityRule builder
      • implementation

        public ContractQualityRule.Builder implementation​(java.lang.String implementation)
        Set the implementation.
        Parameters:
        implementation - the implementation
        Returns:
        the ContractQualityRule builder
      • engine

        public ContractQualityRule.Builder engine​(java.lang.String engine)
        Set the engine.
        Parameters:
        engine - the engine
        Returns:
        the ContractQualityRule builder
      • mustBeLessThan

        public ContractQualityRule.Builder mustBeLessThan​(java.lang.String mustBeLessThan)
        Set the mustBeLessThan.
        Parameters:
        mustBeLessThan - the mustBeLessThan
        Returns:
        the ContractQualityRule builder
      • mustBeLessOrEqualTo

        public ContractQualityRule.Builder mustBeLessOrEqualTo​(java.lang.String mustBeLessOrEqualTo)
        Set the mustBeLessOrEqualTo.
        Parameters:
        mustBeLessOrEqualTo - the mustBeLessOrEqualTo
        Returns:
        the ContractQualityRule builder
      • mustBeGreaterThan

        public ContractQualityRule.Builder mustBeGreaterThan​(java.lang.String mustBeGreaterThan)
        Set the mustBeGreaterThan.
        Parameters:
        mustBeGreaterThan - the mustBeGreaterThan
        Returns:
        the ContractQualityRule builder
      • mustBeGreaterOrEqualTo

        public ContractQualityRule.Builder mustBeGreaterOrEqualTo​(java.lang.String mustBeGreaterOrEqualTo)
        Set the mustBeGreaterOrEqualTo.
        Parameters:
        mustBeGreaterOrEqualTo - the mustBeGreaterOrEqualTo
        Returns:
        the ContractQualityRule builder
      • mustBeBetween

        public ContractQualityRule.Builder mustBeBetween​(java.util.List<java.lang.String> mustBeBetween)
        Set the mustBeBetween. Existing mustBeBetween will be replaced.
        Parameters:
        mustBeBetween - the mustBeBetween
        Returns:
        the ContractQualityRule builder
      • mustNotBeBetween

        public ContractQualityRule.Builder mustNotBeBetween​(java.util.List<java.lang.String> mustNotBeBetween)
        Set the mustNotBeBetween. Existing mustNotBeBetween will be replaced.
        Parameters:
        mustNotBeBetween - the mustNotBeBetween
        Returns:
        the ContractQualityRule builder
      • mustBe

        public ContractQualityRule.Builder mustBe​(java.lang.String mustBe)
        Set the mustBe.
        Parameters:
        mustBe - the mustBe
        Returns:
        the ContractQualityRule builder
      • mustNotBe

        public ContractQualityRule.Builder mustNotBe​(java.lang.String mustNotBe)
        Set the mustNotBe.
        Parameters:
        mustNotBe - the mustNotBe
        Returns:
        the ContractQualityRule builder
      • name

        public ContractQualityRule.Builder name​(java.lang.String name)
        Set the name.
        Parameters:
        name - the name
        Returns:
        the ContractQualityRule builder
      • unit

        public ContractQualityRule.Builder unit​(java.lang.String unit)
        Set the unit.
        Parameters:
        unit - the unit
        Returns:
        the ContractQualityRule builder
      • query

        public ContractQualityRule.Builder query​(java.lang.String query)
        Set the query.
        Parameters:
        query - the query
        Returns:
        the ContractQualityRule builder