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 SummaryNested Classes
- 
Method SummaryModifier 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.
 
- 
builderCreate a new EndpointType builder.- Returns:
- EndpointType builder
 
- 
getSourceLocationDescription copied from interface:FromSourceLocationGets the source location of a value.- Specified by:
- getSourceLocationin interface- FromSourceLocation
- Returns:
- Returns the source location of the value.
 
- 
getUrlReturns the EndpointType URL as an expression.- Returns:
- the endpoint URL expression.
 
- 
getHeadersGet the endpoint headers as a map ofStringto list ofExpressionvalues.- Returns:
- the endpoint headers.
 
- 
getPropertiesGet the endpoint properties as a map ofIdentifiertoLiteralvalues.- Returns:
- the endpoint properties.
 
- 
toBuilderDescription copied from interface:ToSmithyBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
- toBuilderin interface- ToSmithyBuilder<Endpoint>
- Returns:
- a builder for type T
 
- 
toNodeDescription copied from interface:ToNodeConverts a value to aNode.
- 
equals
- 
hashCodepublic int hashCode()
- 
toString
- 
typeCheckDescription copied from interface:TypeCheckChecks whether the given types within a scope satisfy the constraints.
 
-