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
-
Method Summary
Modifier and TypeMethodDescriptionstatic EndpointRuleSet.Builder
builder()
Builder to create aEndpointRuleSet
instance.static Function<FunctionNode,
Optional<LibraryFunction>> Creates aLibraryFunction
factory function using the loaded function definitions.boolean
static EndpointRuleSet
Creates anEndpointRuleSet
of a specific type from the given Node information.static List<AuthSchemeValidator>
Gets loaded authentication scheme validators.static String
Gets the built-in names as a joined string.Gets theParameters
defined in this rule-set.getRules()
Gets the list ofRule
s defined in this rule-set.Gets the source location of a value.Gets the version of this rule-set.static boolean
hasBuiltIn
(String name) Returns true if a built-in of the provided name has been registered.int
hashCode()
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 aEndpointRuleSet
instance.- Returns:
- returns a new Builder.
-
fromNode
Creates anEndpointRuleSet
of 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:FromSourceLocation
Gets the source location of a value.- Specified by:
getSourceLocation
in interfaceFromSourceLocation
- Returns:
- Returns the source location of the value.
-
getParameters
Gets theParameters
defined in this rule-set.- Returns:
- the parameters defined in the rule-set.
-
getRules
Gets the list ofRule
s 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:TypeCheck
Checks whether the given types within a scope satisfy the constraints. -
toBuilder
Description copied from interface:ToSmithyBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToSmithyBuilder<EndpointRuleSet>
- Returns:
- a builder for type T
-
toNode
Description copied from interface:ToNode
Converts 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 aLibraryFunction
factory function using the loaded function definitions.- Returns:
- the created factory.
-
getAuthSchemeValidators
Gets loaded authentication scheme validators.- Returns:
- a list of
AuthSchemeValidator
s.
-