Class V1EnvFromSource
java.lang.Object
io.kubernetes.client.openapi.models.V1EnvFromSource
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-02-02T17:56:12.287571Z[Etc/UTC]")
public class V1EnvFromSource
extends Object
EnvFromSource represents the source of a set of ConfigMaps
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconfigMapRef
(V1ConfigMapEnvSource configMapRef) boolean
static V1EnvFromSource
Create an instance of V1EnvFromSource given an JSON stringGet configMapRefAn optional identifier to prepend to each key in the ConfigMap.Get secretRefint
hashCode()
secretRef
(V1SecretEnvSource secretRef) void
setConfigMapRef
(V1ConfigMapEnvSource configMapRef) void
void
setSecretRef
(V1SecretEnvSource secretRef) toJson()
Convert an instance of V1EnvFromSource to an JSON stringtoString()
static void
validateJsonObject
(com.google.gson.JsonObject jsonObj) Validates the JSON Object and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_CONFIG_MAP_REF
- See Also:
-
SERIALIZED_NAME_PREFIX
- See Also:
-
SERIALIZED_NAME_SECRET_REF
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1EnvFromSource
public V1EnvFromSource()
-
-
Method Details
-
configMapRef
-
getConfigMapRef
Get configMapRef- Returns:
- configMapRef
-
setConfigMapRef
-
prefix
-
getPrefix
An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.- Returns:
- prefix
-
setPrefix
-
secretRef
-
getSecretRef
Get secretRef- Returns:
- secretRef
-
setSecretRef
-
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 V1EnvFromSource
-
fromJson
Create an instance of V1EnvFromSource given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1EnvFromSource
- Throws:
IOException
- if the JSON string is invalid with respect to V1EnvFromSource
-
toJson
Convert an instance of V1EnvFromSource to an JSON string- Returns:
- JSON string
-