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
An endpoint value, containing a URL as well as headers that MUST be sent.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA builder used to create anEndpointValueclass. -
Method Summary
Modifier and TypeMethodDescriptionstatic EndpointValue.Builderbuilder()Builder to create aEndpointValueinstance.booleanReturns the current value as anArrayValue, throwingRuntimeExceptionwhen the value is the wrong type.static EndpointValueCreates anEndpointValueinstance from the given Node information.Gets the headers to set when sending HTTP requests to the URL.Gets the properties of this endpoint.getType()getUrl()Gets the URL of this endpoint.inthashCode()toNode()Converts a value to aNode.toString()Methods inherited from class software.amazon.smithy.rulesengine.language.evaluation.value.Value
arrayValue, booleanValue, emptyValue, endpointValue, expectArrayValue, expectBooleanValue, expectIntegerValue, expectRecordValue, expectStringValue, getSourceLocation, integerValue, isEmpty, recordValue, stringValue
-
Method Details
-
builder
Builder to create aEndpointValueinstance.- Returns:
- returns a new Builder.
-
fromNode
Creates anEndpointValueinstance from the given Node information.- Parameters:
node- the node to deserialize.- Returns:
- the created EndpointValue.
-
getProperties
Gets the properties of this endpoint.- Returns:
- the properties of this endpoint.
-
getUrl
Gets the URL of this endpoint.- Returns:
- the URL of this endpoint.
-
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.
-
getType
-
expectEndpointValue
Description copied from class:ValueReturns the current value as anArrayValue, throwingRuntimeExceptionwhen the value is the wrong type.- Overrides:
expectEndpointValuein classValue- Returns:
- returns an endpoint value
-
toNode
Description copied from interface:ToNodeConverts a value to aNode.- Returns:
- Returns the creates Node.
-
equals
-
hashCode
public int hashCode() -
toString
-