Class EndpointBddTrait.Builder
java.lang.Object
software.amazon.smithy.model.traits.AbstractTraitBuilder<EndpointBddTrait,EndpointBddTrait.Builder>
software.amazon.smithy.rulesengine.traits.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 Summary
Modifier and TypeMethodDescriptionSets the BDD structure.build()Creates an immutable object that is created from the properties that have been set on the builder.classLoader(ClassLoader classLoader) Sets the classloader used to discover endpoint extensions when the BDD is materialized.componentFactory(EndpointComponentFactory componentFactory) Sets the component factory used to resolve endpoint functions when this BDD is later re-parsed.conditions(List<Condition> conditions) Sets the conditions.parameters(Parameters parameters) Sets the parameters.Sets the results.version(RulesVersion version) Sets the rules engine version.Methods inherited from class software.amazon.smithy.model.traits.AbstractTraitBuilder
getSourceLocation, sourceLocation
-
Method Details
-
version
Sets the rules engine version.- Parameters:
version- Version to set (e.g., 1.1).- Returns:
- this builder
-
parameters
Sets the parameters.- Parameters:
parameters- the parameters- Returns:
- this builder
-
conditions
Sets the conditions.- Parameters:
conditions- the conditions in evaluation order- Returns:
- this builder
-
results
Sets the results.- Parameters:
results- the results (must have NoMatchRule at index 0)- Returns:
- this builder
-
bdd
Sets the BDD structure.- Parameters:
bdd- the BDD- Returns:
- this builder
-
classLoader
Sets the classloader used to discover endpoint extensions when the BDD is materialized. Typically the classloader used to assemble the model. May be null.- Parameters:
classLoader- the classloader, or null.- Returns:
- this builder
-
componentFactory
Sets the component factory used to resolve endpoint functions when this BDD is later re-parsed. Typically propagated from the source rule-set. May be null.- Parameters:
componentFactory- the factory, or null.- Returns:
- this builder
-
build
Description copied from interface:SmithyBuilderCreates an immutable object that is created from the properties that have been set on the builder.- Returns:
- an instance of T
-