Class Endpoint
java.lang.Object
software.amazon.smithy.rulesengine.language.Endpoint
- All Implemented Interfaces:
FromSourceLocation
,ToNode
,TypeCheck
,ToSmithyBuilder<Endpoint>
public final class Endpoint
extends Object
implements FromSourceLocation, ToNode, ToSmithyBuilder<Endpoint>, TypeCheck
An EndpointType as returned by EndpointRules.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Endpoint.Builder
builder()
Create a new EndpointType builder.boolean
static Endpoint
Get the endpoint headers as a map ofString
to list ofExpression
values.Get the endpoint properties as a map ofIdentifier
toLiteral
values.Gets the source location of a value.getUrl()
Returns the EndpointType URL as an expression.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
-
fromNode
- Parameters:
node
- the object node.- Returns:
- the node as an
Endpoint
.
-
builder
Create a new EndpointType builder.- Returns:
- EndpointType builder
-
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.
-
getUrl
Returns the EndpointType URL as an expression.- Returns:
- the endpoint URL expression.
-
getHeaders
Get the endpoint headers as a map ofString
to list ofExpression
values.- Returns:
- the endpoint headers.
-
getProperties
Get the endpoint properties as a map ofIdentifier
toLiteral
values.- Returns:
- the endpoint properties.
-
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<Endpoint>
- Returns:
- a builder for type T
-
toNode
Description copied from interface:ToNode
Converts a value to aNode
. -
equals
-
hashCode
public int hashCode() -
toString
-
typeCheck
Description copied from interface:TypeCheck
Checks whether the given types within a scope satisfy the constraints.
-