Class V1Variable
java.lang.Object
io.kubernetes.client.openapi.models.V1Variable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-02-04T19:05:53.712211Z[Etc/UTC]",
comments="Generator version: 7.6.0")
public class V1Variable
extends Object
Variable is the definition of a variable that is used for composition. A variable is defined as a named expression.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
expression
(String expression) static V1Variable
Create an instance of V1Variable given an JSON stringExpression is the expression that will be evaluated as the value of the variable.getName()
Name is the name of the variable.int
hashCode()
void
setExpression
(String expression) void
toJson()
Convert an instance of V1Variable to an JSON stringtoString()
static void
validateJsonElement
(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_EXPRESSION
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1Variable
public V1Variable()
-
-
Method Details
-
expression
-
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
-
name
-
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
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement
- JSON Element- Throws:
IOException
- if the JSON Element is invalid with respect to V1Variable
-
fromJson
Create an instance of V1Variable given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1Variable
- Throws:
IOException
- if the JSON string is invalid with respect to V1Variable
-
toJson
Convert an instance of V1Variable to an JSON string- Returns:
- JSON string
-