Class EndpointRuleSet.Builder
java.lang.Object
software.amazon.smithy.rulesengine.language.util.SourceLocationTrackingBuilder<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 SourceLocationTrackingBuilder<EndpointRuleSet.Builder,EndpointRuleSet> 
- 
Field SummaryFields inherited from class software.amazon.smithy.rulesengine.language.util.SourceLocationTrackingBuildersourceLocation
- 
Constructor SummaryConstructorsConstructorDescriptionBuilder(FromSourceLocation sourceLocation) Construct a builder from aSourceLocation.
- 
Method SummaryModifier 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.util.SourceLocationTrackingBuildergetSourceLocation, sourceLocation
- 
Constructor Details- 
BuilderConstruct a builder from aSourceLocation.- Parameters:
- sourceLocation- The source location
 
 
- 
- 
Method Details- 
versionSets 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
 
- 
addRuleAdds a rule to this ruleset. The rule be evaluated if all previous rules do not match.- Parameters:
- rule- The- Ruleto add
- Returns:
- the EndpointRuleSet.Builder
 
- 
addRuleInserts a rule into the ruleset.- Parameters:
- index- the position to add the rule at.
- rule- The- Ruleto add
- Returns:
- the EndpointRuleSet.Builder
 
- 
rulesAdd rules to this ruleset. The rules be evaluated if all previous rules do not match.- Parameters:
- rules- The Collection of- Ruleto add
- Returns:
- the EndpointRuleSet.Builder
 
- 
parametersSet the parameters for thisEndpointRuleSet.- Parameters:
- parameters-- Parametersto set
- Returns:
- the EndpointRuleSet.Builder
 
- 
buildDescription 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
 
 
-