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
ConstructorsConstructorDescriptionEndpointReferenceExpression(EndpointReference<?> endpointReference, EndpointProperty property) Initializes a new instance of theEndpointReferenceExpressionclass. -
Method Summary
Modifier and TypeMethodDescriptionGets theEndpointReference.Gets theEndpointPropertyfor 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 theEndpointReferenceExpressionclass.- Parameters:
endpointReference- The endpoint reference.property- The property of the endpoint.
-
-
Method Details
-
getEndpointReference
Gets theEndpointReference.- Returns:
- The endpoint reference.
-
getProperty
Gets theEndpointPropertyfor the property expression.- Returns:
- The endpoint property.
-
getValueExpression
Gets the expression of the property of the endpoint.- Specified by:
getValueExpressionin interfaceManifestExpressionProvider- Returns:
- The value expression.
-
getValue
Gets the value of the property of the endpoint.- Specified by:
getValuein interfaceValueProvider- Returns:
- A
CompletableFuturecontaining the selectedEndpointPropertyvalue. - Throws:
IllegalStateException- Throws when the selectedEndpointPropertyenumeration is not known.
-
getReferences
Description copied from interface:ValueWithReferencesA read-only list of the referenced objects of the value.- Specified by:
getReferencesin interfaceValueWithReferences- Returns:
- A read-only list of the referenced objects.
-