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
Nested Classes Modifier and Type Class Description static classEndpoint.BuilderBuilder forEndpoint.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Endpoint.Builderbuilder()Create a new Endpoint builder.booleanequals(java.lang.Object o)static EndpointfromNode(Node node)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.ExpressiongetUrl()Returns the Endpoint 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)-
Methods inherited from class software.amazon.smithy.rulesengine.language.util.MandatorySourceLocation
getSourceLocation
-
-
-
-
Method Detail
-
fromNode
public static Endpoint fromNode(Node node)
- Parameters:
node- the object node.- Returns:
- the node as an
Endpoint.
-
builder
public static Endpoint.Builder builder()
Create a new Endpoint builder.- Returns:
- Endpoint builder
-
getUrl
public Expression getUrl()
Returns the Endpoint URL as an expression.- Returns:
- the endpoint URL expression.
-
toBuilder
public 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 interfaceToSmithyBuilder<Endpoint>- Returns:
- a builder for type T
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getProperties
public java.util.Map<Identifier,Literal> getProperties()
Get the endpoint properties as a map ofIdentifiertoLiteralvalues.- Returns:
- the endpoint properties.
-
getHeaders
public 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.
-
-