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 Details

    • EndpointReferenceExpression

      public EndpointReferenceExpression(EndpointReference<?> endpointReference, EndpointProperty property)
      Initializes a new instance of the EndpointReferenceExpression class.
      Parameters:
      endpointReference - The endpoint reference.
      property - The property of the endpoint.
  • Method Details

    • getEndpointReference

      public EndpointReference<?> getEndpointReference()
      Gets the EndpointReference.
      Returns:
      The endpoint reference.
    • getProperty

      public EndpointProperty getProperty()
      Gets the EndpointProperty for the property expression.
      Returns:
      The endpoint property.
    • getValueExpression

      public String getValueExpression()
      Gets the expression of the property of the endpoint.
      Specified by:
      getValueExpression in interface ManifestExpressionProvider
      Returns:
      The value expression.
    • getValue

      public String getValue()
      Gets the value of the property of the endpoint.
      Specified by:
      getValue in interface ValueProvider
      Returns:
      A CompletableFuture containing the selected EndpointProperty value.
      Throws:
      IllegalStateException - Throws when the selected EndpointProperty enumeration is not known.
    • getReferences

      public List<Object> getReferences()
      Description copied from interface: ValueWithReferences
      A read-only list of the referenced objects of the value.
      Specified by:
      getReferences in interface ValueWithReferences
      Returns:
      A read-only list of the referenced objects.