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 SummaryConstructorsConstructorDescriptionEndpointReferenceExpression(EndpointReference<?> endpointReference, EndpointProperty property) Initializes a new instance of theEndpointReferenceExpressionclass.
- 
Method SummaryModifier 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- 
EndpointReferenceExpressionpublic EndpointReferenceExpression(EndpointReference<?> endpointReference, EndpointProperty property) Initializes a new instance of theEndpointReferenceExpressionclass.- Parameters:
- endpointReference- The endpoint reference.
- property- The property of the endpoint.
 
 
- 
- 
Method Details- 
getEndpointReferenceGets theEndpointReference.- Returns:
- The endpoint reference.
 
- 
getPropertyGets theEndpointPropertyfor the property expression.- Returns:
- The endpoint property.
 
- 
getValueExpressionGets the expression of the property of the endpoint.- Specified by:
- getValueExpressionin interface- ManifestExpressionProvider
- Returns:
- The value expression.
 
- 
getValueGets the value of the property of the endpoint.- Specified by:
- getValuein interface- ValueProvider
- Returns:
- A CompletableFuturecontaining the selectedEndpointPropertyvalue.
- Throws:
- IllegalStateException- Throws when the selected- EndpointPropertyenumeration is not known.
 
- 
getReferencesDescription copied from interface:ValueWithReferencesA read-only list of the referenced objects of the value.- Specified by:
- getReferencesin interface- ValueWithReferences
- Returns:
- A read-only list of the referenced objects.
 
 
-