Class Variable.Builder

  • Enclosing class:
    Variable

    public static class Variable.Builder
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Variable build()  
      Variable.Builder expression​(@NonNull java.lang.String expression)
      Expression is the expression that will be evaluated as the value of the variable.
      Variable.Builder name​(@NonNull java.lang.String name)
      Name is the name of the variable.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • expression

        public Variable.Builder expression​(@NonNull
                                           @NonNull java.lang.String expression)
        Expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation.
        Returns:
        this.
      • name

        public Variable.Builder name​(@NonNull
                                     @NonNull java.lang.String name)
        Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is "foo", the variable will be available as `variables.foo`
        Returns:
        this.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object