Class EndpointBddTrait.Builder

All Implemented Interfaces:
SmithyBuilder<EndpointBddTrait>
Enclosing class:
EndpointBddTrait

public static final class EndpointBddTrait.Builder extends AbstractTraitBuilder<EndpointBddTrait,EndpointBddTrait.Builder>
Builder for BddTrait.
  • Method Details

    • version

      public EndpointBddTrait.Builder version(RulesVersion version)
      Sets the rules engine version.
      Parameters:
      version - Version to set (e.g., 1.1).
      Returns:
      this builder
    • parameters

      public EndpointBddTrait.Builder parameters(Parameters parameters)
      Sets the parameters.
      Parameters:
      parameters - the parameters
      Returns:
      this builder
    • conditions

      public EndpointBddTrait.Builder conditions(List<Condition> conditions)
      Sets the conditions.
      Parameters:
      conditions - the conditions in evaluation order
      Returns:
      this builder
    • results

      public EndpointBddTrait.Builder results(List<Rule> results)
      Sets the results.
      Parameters:
      results - the results (must have NoMatchRule at index 0)
      Returns:
      this builder
    • bdd

      public EndpointBddTrait.Builder bdd(Bdd bdd)
      Sets the BDD structure.
      Parameters:
      bdd - the BDD
      Returns:
      this builder
    • build

      public EndpointBddTrait build()
      Description copied from interface: SmithyBuilder
      Creates an immutable object that is created from the properties that have been set on the builder.
      Returns:
      an instance of T