All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.k8s.api.admissionregistration.v1.Variable Maven / Gradle / Ivy

package io.k8s.api.admissionregistration.v1;

import java.lang.String;

/**
 * Variable is the definition of a variable that is used for composition. A variable is defined as a named expression.
 */
public class Variable {
  public String expression;

  public String name;

  /**
   * 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.
   */
  public Variable expression(String expression) {
    this.expression = expression;
    return this;
  }

  /**
   * 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`
   */
  public Variable name(String name) {
    this.name = name;
    return this;
  }

  public static Variable variable() {
    return new Variable();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy