Class V1EnvVar
java.lang.Object
io.kubernetes.client.openapi.models.V1EnvVar
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-04-23T13:45:09.091597Z[Etc/UTC]")
public class V1EnvVar
extends Object
EnvVar represents an environment variable present in a Container.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
static V1EnvVar
Create an instance of V1EnvVar given an JSON stringgetName()
Name of the environment variable.getValue()
Variable references $(VAR_NAME) are expanded using the previously defined environment variables in the container and any service environment variables.Get valueFromint
hashCode()
void
void
void
setValueFrom
(V1EnvVarSource valueFrom) toJson()
Convert an instance of V1EnvVar to an JSON stringtoString()
static void
validateJsonObject
(com.google.gson.JsonObject jsonObj) Validates the JSON Object and throws an exception if issues foundvalueFrom
(V1EnvVarSource valueFrom)
-
Field Details
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_VALUE
- See Also:
-
SERIALIZED_NAME_VALUE_FROM
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1EnvVar
public V1EnvVar()
-
-
Method Details
-
name
-
getName
Name of the environment variable. Must be a C_IDENTIFIER.- Returns:
- name
-
setName
-
value
-
getValue
Variable references $(VAR_NAME) are expanded using the previously defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to \"\".- Returns:
- value
-
setValue
-
valueFrom
-
getValueFrom
Get valueFrom- Returns:
- valueFrom
-
setValueFrom
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonObject
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 V1EnvVar
-
fromJson
Create an instance of V1EnvVar given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1EnvVar
- Throws:
IOException
- if the JSON string is invalid with respect to V1EnvVar
-
toJson
Convert an instance of V1EnvVar to an JSON string- Returns:
- JSON string
-