Class Endpoint
- java.lang.Object
- 
- software.amazon.smithy.rulesengine.language.Endpoint
 
- 
- All Implemented Interfaces:
- FromSourceLocation,- ToNode,- TypeCheck,- ToSmithyBuilder<Endpoint>
 
 public final class Endpoint extends java.lang.Object implements FromSourceLocation, ToNode, ToSmithyBuilder<Endpoint>, TypeCheck An EndpointType as returned by EndpointRules.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classEndpoint.BuilderBuilder forEndpoint.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Endpoint.Builderbuilder()Create a new EndpointType builder.booleanequals(java.lang.Object o)static EndpointfromNode(Node node)java.util.List<java.util.Map<Identifier,Literal>>getEndpointAuthSchemes()java.util.Map<java.lang.String,java.util.List<Expression>>getHeaders()Get the endpoint headers as a map ofStringto list ofExpressionvalues.java.util.Map<Identifier,Literal>getProperties()Get the endpoint properties as a map ofIdentifiertoLiteralvalues.SourceLocationgetSourceLocation()Gets the source location of a value.ExpressiongetUrl()Returns the EndpointType URL as an expression.inthashCode()Endpoint.BuildertoBuilder()Take this object and create a builder that contains all of the current property values of this object.NodetoNode()Converts a value to aNode.java.lang.StringtoString()TypetypeCheck(Scope<Type> scope)Checks whether the given types within a scope satisfy the constraints.
 
- 
- 
- 
Method Detail- 
fromNodepublic static Endpoint fromNode(Node node) - Parameters:
- node- the object node.
- Returns:
- the node as an Endpoint.
 
 - 
builderpublic static Endpoint.Builder builder() Create a new EndpointType builder.- Returns:
- EndpointType builder
 
 - 
getSourceLocationpublic SourceLocation getSourceLocation() Description copied from interface:FromSourceLocationGets the source location of a value.- Specified by:
- getSourceLocationin interface- FromSourceLocation
- Returns:
- Returns the source location of the value.
 
 - 
getUrlpublic Expression getUrl() Returns the EndpointType URL as an expression.- Returns:
- the endpoint URL expression.
 
 - 
getHeaderspublic java.util.Map<java.lang.String,java.util.List<Expression>> getHeaders() Get the endpoint headers as a map ofStringto list ofExpressionvalues.- Returns:
- the endpoint headers.
 
 - 
getPropertiespublic java.util.Map<Identifier,Literal> getProperties() Get the endpoint properties as a map ofIdentifiertoLiteralvalues.- Returns:
- the endpoint properties.
 
 - 
getEndpointAuthSchemespublic java.util.List<java.util.Map<Identifier,Literal>> getEndpointAuthSchemes() - Returns:
- the list of endpoint authSchemes.
 
 - 
toBuilderpublic Endpoint.Builder 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 interface- ToSmithyBuilder<Endpoint>
- Returns:
- a builder for type T
 
 - 
equalspublic boolean equals(java.lang.Object o) - Overrides:
- equalsin class- java.lang.Object
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-