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
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic Endpoint.Builderbuilder()Create a new EndpointType builder.booleanstatic EndpointGet the endpoint headers as a map ofStringto list ofExpressionvalues.Get the endpoint properties as a map ofIdentifiertoLiteralvalues.Gets the source location of a value.getUrl()Returns the EndpointType URL as an expression.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
-
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:FromSourceLocationGets the source location of a value.- Specified by:
getSourceLocationin 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 ofStringto list ofExpressionvalues.- Returns:
- the endpoint headers.
-
getProperties
Get the endpoint properties as a map ofIdentifiertoLiteralvalues.- Returns:
- the endpoint properties.
-
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<Endpoint>- Returns:
- a builder for type T
-
toNode
Description copied from interface:ToNodeConverts a value to aNode. -
equals
-
hashCode
public int hashCode() -
toString
-
typeCheck
Description copied from interface:TypeCheckChecks whether the given types within a scope satisfy the constraints.
-