Class V1beta1Variable

java.lang.Object
io.kubernetes.client.openapi.models.V1beta1Variable

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-02-02T17:56:12.287571Z[Etc/UTC]") public class V1beta1Variable extends Object
Variable is the definition of a variable that is used for composition. A variable is defined as a named expression.
  • Field Details

  • Constructor Details

    • V1beta1Variable

      public V1beta1Variable()
  • Method Details

    • expression

      public V1beta1Variable expression(String expression)
    • getExpression

      @Nonnull public String getExpression()
      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:
      expression
    • setExpression

      public void setExpression(String expression)
    • name

      public V1beta1Variable name(String name)
    • getName

      @Nonnull public String getName()
      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:
      name
    • setName

      public void setName(String name)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonObject

      public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
      Validates the JSON Object and throws an exception if issues found
      Parameters:
      jsonObj - JSON Object
      Throws:
      IOException - if the JSON Object is invalid with respect to V1beta1Variable
    • fromJson

      public static V1beta1Variable fromJson(String jsonString) throws IOException
      Create an instance of V1beta1Variable given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of V1beta1Variable
      Throws:
      IOException - if the JSON string is invalid with respect to V1beta1Variable
    • toJson

      public String toJson()
      Convert an instance of V1beta1Variable to an JSON string
      Returns:
      JSON string