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
      • addTags

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

        public ContractQualityRule.Builder addValidValues​(java.lang.String validValues)
        Adds a new element to validValues.
        Parameters:
        validValues - the new element to be added
        Returns:
        the ContractQualityRule builder
      • 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
      • addAuthoritativeDefinitions

        public ContractQualityRule.Builder addAuthoritativeDefinitions​(ContractAuthoritativeDefinition authoritativeDefinitions)
        Adds a new element to authoritativeDefinitions.
        Parameters:
        authoritativeDefinitions - the new element to be added
        Returns:
        the ContractQualityRule builder
      • id

        public ContractQualityRule.Builder id​(java.lang.String id)
        Set the id.
        Parameters:
        id - the id
        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
      • tags

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

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

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

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

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

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

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

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

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

        public ContractQualityRule.Builder schedule​(java.lang.String schedule)
        Set the schedule.
        Parameters:
        schedule - the schedule
        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
      • customProperties

        public ContractQualityRule.Builder customProperties​(java.util.List<ContractTemplateCustomProperty> customProperties)
        Set the customProperties. Existing customProperties will be replaced.
        Parameters:
        customProperties - the customProperties
        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
      • arguments

        public ContractQualityRule.Builder arguments​(java.util.Map<java.lang.String,​java.lang.Object> arguments)
        Set the arguments.
        Parameters:
        arguments - the arguments
        Returns:
        the ContractQualityRule builder
      • authoritativeDefinitions

        public ContractQualityRule.Builder authoritativeDefinitions​(java.util.List<ContractAuthoritativeDefinition> authoritativeDefinitions)
        Set the authoritativeDefinitions. Existing authoritativeDefinitions will be replaced.
        Parameters:
        authoritativeDefinitions - the authoritativeDefinitions
        Returns:
        the ContractQualityRule builder