Class ReferenceExpression

java.lang.Object
com.azure.runtime.host.resources.references.ReferenceExpression
All Implemented Interfaces:
ValueProvider, ValueWithReferences

public class ReferenceExpression extends Object implements ValueProvider, ValueWithReferences
Represents an expression that might be made up of multiple resource properties. For example, a connection string might be made up of a host, port, and password from different endpoints.
  • Method Details

    • getFormat

      public String getFormat()
      Gets the format string for this expression.
      Returns:
      The format string.
    • getManifestExpressions

      public List<String> getManifestExpressions()
      Gets the manifest expressions for the parameters for the format string.
      Returns:
      The manifest expressions.
    • getValueProviders

      public List<ValueProvider> getValueProviders()
      Gets the list of ValueProvider that will be used to resolve parameters for the format string.
      Returns:
      The list of ValueProvider.
    • 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.
    • getValueExpression

      public String getValueExpression()
      The value expression for the format string.
      Returns:
      The value expression.
    • getValue

      public String getValue()
      Gets the value of the expression. The final string value after evaluating the format string and its parameters.
      Specified by:
      getValue in interface ValueProvider
      Returns:
      A CompletionStage containing the evaluated string.
    • create

      public static ReferenceExpression create(String format)