Class Endpoint
java.lang.Object
software.amazon.smithy.rulesengine.language.util.MandatorySourceLocation
software.amazon.smithy.rulesengine.language.Endpoint
- All Implemented Interfaces:
FromSourceLocation
,ToNode
,TypeCheck
,ToSmithyBuilder<Endpoint>
public final class Endpoint
extends MandatorySourceLocation
implements ToSmithyBuilder<Endpoint>, TypeCheck, ToNode
An Endpoint as returned by EndpointRules.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Endpoint.Builder
builder()
Create a new Endpoint 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.getUrl()
Returns the Endpoint 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()
Methods inherited from class software.amazon.smithy.rulesengine.language.util.MandatorySourceLocation
getSourceLocation
-
Method Details
-
fromNode
- Parameters:
node
- the object node.- Returns:
- the node as an
Endpoint
.
-
builder
Create a new Endpoint builder.- Returns:
- Endpoint builder
-
getUrl
Returns the Endpoint URL as an expression.- Returns:
- the endpoint URL expression.
-
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
-
hashCode
public int hashCode() -
equals
-
toString
-
typeCheck
-
toNode
Description copied from interface:ToNode
Converts a value to aNode
. -
getProperties
Get the endpoint properties as a map ofIdentifier
toLiteral
values.- Returns:
- the endpoint properties.
-
getHeaders
Get the endpoint headers as a map ofString
to list ofExpression
values.- Returns:
- the endpoint headers.
-