Class Variable.Builder
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.admissionregistration.v1beta1.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()
-
-
-
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
.
-
build
public Variable build()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-