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.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
-
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
-