Class EndpointRuleSet.Builder
java.lang.Object
software.amazon.smithy.rulesengine.language.RulesComponentBuilder<EndpointRuleSet.Builder,EndpointRuleSet>
 
software.amazon.smithy.rulesengine.language.EndpointRuleSet.Builder
- All Implemented Interfaces:
 FromSourceLocation,SmithyBuilder<EndpointRuleSet>
- Enclosing class:
 - EndpointRuleSet
 
public static class EndpointRuleSet.Builder
extends RulesComponentBuilder<EndpointRuleSet.Builder,EndpointRuleSet> 
A builder used to create a 
EndpointRuleSet class.- 
Constructor Summary
ConstructorsConstructorDescriptionBuilder(FromSourceLocation sourceLocation) Construct a builder from aSourceLocation. - 
Method Summary
Modifier and TypeMethodDescriptionInserts a rule into the ruleset.Adds a rule to this ruleset.build()Creates an immutable object that is created from the properties that have been set on the builder.parameters(Parameters parameters) Set the parameters for thisEndpointRuleSet.rules(Collection<Rule> rules) Add rules to this ruleset.Sets the version for theEndpointRuleSet.Methods inherited from class software.amazon.smithy.rulesengine.language.RulesComponentBuilder
getSourceLocation, javaLocation, sourceLocation 
- 
Constructor Details
- 
Builder
Construct a builder from aSourceLocation.- Parameters:
 sourceLocation- The source location
 
 - 
 - 
Method Details
- 
version
Sets the version for theEndpointRuleSet. If not set, the version will default to the latest version.- Parameters:
 version- The version to set- Returns:
 - the 
EndpointRuleSet.Builder 
 - 
addRule
Adds a rule to this ruleset. The rule be evaluated if all previous rules do not match.- Parameters:
 rule- TheRuleto add- Returns:
 - the 
EndpointRuleSet.Builder 
 - 
addRule
Inserts a rule into the ruleset.- Parameters:
 index- the position to add the rule at.rule- TheRuleto add- Returns:
 - the 
EndpointRuleSet.Builder 
 - 
rules
Add rules to this ruleset. The rules be evaluated if all previous rules do not match.- Parameters:
 rules- The Collection ofRuleto add- Returns:
 - the 
EndpointRuleSet.Builder 
 - 
parameters
Set the parameters for thisEndpointRuleSet.- Parameters:
 parameters-Parametersto set- Returns:
 - the 
EndpointRuleSet.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
 
 
 -