Class EndpointValue
- java.lang.Object
- 
- software.amazon.smithy.rulesengine.language.evaluation.value.Value
- 
- software.amazon.smithy.rulesengine.language.evaluation.value.EndpointValue
 
 
- 
- All Implemented Interfaces:
- FromSourceLocation,- ToNode
 
 public final class EndpointValue extends Value An endpoint value, containing a URL as well as headers that MUST be sent.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classEndpointValue.BuilderA builder used to create anEndpointValueclass.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EndpointValue.Builderbuilder()Builder to create aEndpointValueinstance.booleanequals(java.lang.Object o)EndpointValueexpectEndpointValue()Returns the current value as anArrayValue, throwingRuntimeExceptionwhen the value is the wrong type.static EndpointValuefromNode(Node node)Creates anEndpointValueinstance from the given Node information.java.util.Map<java.lang.String,java.util.List<java.lang.String>>getHeaders()Gets the headers to set when sending HTTP requests to the URL.java.util.Map<java.lang.String,Value>getProperties()Gets the properties of this endpoint.TypegetType()java.lang.StringgetUrl()Gets the URL of this endpoint.inthashCode()NodetoNode()Converts a value to aNode.java.lang.StringtoString()- 
Methods inherited from class software.amazon.smithy.rulesengine.language.evaluation.value.ValuearrayValue, booleanValue, emptyValue, endpointValue, expectArrayValue, expectBooleanValue, expectIntegerValue, expectRecordValue, expectStringValue, getSourceLocation, integerValue, isEmpty, recordValue, stringValue
 
- 
 
- 
- 
- 
Method Detail- 
builderpublic static EndpointValue.Builder builder() Builder to create aEndpointValueinstance.- Returns:
- returns a new Builder.
 
 - 
fromNodepublic static EndpointValue fromNode(Node node) Creates anEndpointValueinstance from the given Node information.- Parameters:
- node- the node to deserialize.
- Returns:
- the created EndpointValue.
 
 - 
getPropertiespublic java.util.Map<java.lang.String,Value> getProperties() Gets the properties of this endpoint.- Returns:
- the properties of this endpoint.
 
 - 
getUrlpublic java.lang.String getUrl() Gets the URL of this endpoint.- Returns:
- the URL of this endpoint.
 
 - 
getHeaderspublic java.util.Map<java.lang.String,java.util.List<java.lang.String>> getHeaders() Gets the headers to set when sending HTTP requests to the URL.- Returns:
- a map of header names to a list of values to set on those headers.
 
 - 
expectEndpointValuepublic EndpointValue expectEndpointValue() Description copied from class:ValueReturns the current value as anArrayValue, throwingRuntimeExceptionwhen the value is the wrong type.- Overrides:
- expectEndpointValuein class- Value
- Returns:
- returns an endpoint value
 
 - 
toNodepublic Node toNode() Description copied from interface:ToNodeConverts a value to aNode.- Returns:
- Returns the creates Node.
 
 - 
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
 
 
- 
 
-