Class EndpointRuleSet
java.lang.Object
software.amazon.smithy.rulesengine.language.EndpointRuleSet
- All Implemented Interfaces:
FromSourceLocation,ToNode,TypeCheck,ToSmithyBuilder<EndpointRuleSet>
public final class EndpointRuleSet
extends Object
implements FromSourceLocation, ToNode, ToSmithyBuilder<EndpointRuleSet>, TypeCheck
A set of EndpointRules. EndpointType Rules describe the endpoint resolution behavior for a service.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic EndpointRuleSet.Builderbuilder()Builder to create aEndpointRuleSetinstance.static Function<FunctionNode,Optional<LibraryFunction>> Creates aLibraryFunctionfactory function using the loaded function definitions.booleanstatic EndpointRuleSetCreates anEndpointRuleSetof a specific type from the given Node information.static List<AuthSchemeValidator>Gets loaded authentication scheme validators.static StringGets the built-in names as a joined string.Gets theParametersdefined in this rule-set.getRules()Gets the list ofRules defined in this rule-set.Gets the source location of a value.Gets the version of this rule-set.static booleanhasBuiltIn(String name) Returns true if a built-in of the provided name has been registered.inthashCode()Take this object and create a builder that contains all of the current property values of this object.toNode()Converts a value to aNode.toString()Checks whether the given types within a scope satisfy the constraints.
-
Method Details
-
builder
Builder to create aEndpointRuleSetinstance.- Returns:
- returns a new Builder.
-
fromNode
Creates anEndpointRuleSetof a specific type from the given Node information.- Parameters:
node- the node to deserialize.- Returns:
- the created EndpointRuleSet.
- Throws:
RuleError
-
getSourceLocation
Description copied from interface:FromSourceLocationGets the source location of a value.- Specified by:
getSourceLocationin interfaceFromSourceLocation- Returns:
- Returns the source location of the value.
-
getParameters
Gets theParametersdefined in this rule-set.- Returns:
- the parameters defined in the rule-set.
-
getRules
Gets the list ofRules defined in this rule-set.- Returns:
- the rules defined in this rule-set.
-
getVersion
Gets the version of this rule-set.- Returns:
- the rule-set version.
-
typeCheck
-
typeCheck
Description copied from interface:TypeCheckChecks whether the given types within a scope satisfy the constraints. -
toBuilder
Description copied from interface:ToSmithyBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToSmithyBuilder<EndpointRuleSet>- Returns:
- a builder for type T
-
toNode
Description copied from interface:ToNodeConverts a value to aNode. -
equals
-
hashCode
public int hashCode() -
toString
-
hasBuiltIn
Returns true if a built-in of the provided name has been registered.- Parameters:
name- the name of the built-in to check for.- Returns:
- true if the built-in is present, false otherwise.
-
getKeyString
Gets the built-in names as a joined string.- Returns:
- a string of the built-in names.
-
createFunctionFactory
Creates aLibraryFunctionfactory function using the loaded function definitions.- Returns:
- the created factory.
-
getAuthSchemeValidators
Gets loaded authentication scheme validators.- Returns:
- a list of
AuthSchemeValidators.
-