Module com.azure.runtime.host
Class EndpointReferenceExpression
java.lang.Object
com.azure.runtime.host.resources.references.EndpointReferenceExpression
- All Implemented Interfaces:
ManifestExpressionProvider
,ValueProvider
,ValueWithReferences
public class EndpointReferenceExpression
extends Object
implements ManifestExpressionProvider, ValueProvider, ValueWithReferences
Represents a property expression for an endpoint reference.
-
Constructor Summary
ConstructorDescriptionEndpointReferenceExpression
(EndpointReference<?> endpointReference, EndpointProperty property) Initializes a new instance of theEndpointReferenceExpression
class. -
Method Summary
Modifier and TypeMethodDescriptionGets theEndpointReference
.Gets theEndpointProperty
for the property expression.A read-only list of the referenced objects of the value.getValue()
Gets the value of the property of the endpoint.Gets the expression of the property of the endpoint.
-
Constructor Details
-
EndpointReferenceExpression
public EndpointReferenceExpression(EndpointReference<?> endpointReference, EndpointProperty property) Initializes a new instance of theEndpointReferenceExpression
class.- Parameters:
endpointReference
- The endpoint reference.property
- The property of the endpoint.
-
-
Method Details
-
getEndpointReference
Gets theEndpointReference
.- Returns:
- The endpoint reference.
-
getProperty
Gets theEndpointProperty
for the property expression.- Returns:
- The endpoint property.
-
getValueExpression
Gets the expression of the property of the endpoint.- Specified by:
getValueExpression
in interfaceManifestExpressionProvider
- Returns:
- The value expression.
-
getValue
Gets the value of the property of the endpoint.- Specified by:
getValue
in interfaceValueProvider
- Returns:
- A
CompletableFuture
containing the selectedEndpointProperty
value. - Throws:
IllegalStateException
- Throws when the selectedEndpointProperty
enumeration is not known.
-
getReferences
Description copied from interface:ValueWithReferences
A read-only list of the referenced objects of the value.- Specified by:
getReferences
in interfaceValueWithReferences
- Returns:
- A read-only list of the referenced objects.
-