Package io.fabric8.kubernetes.api.model
Class EnvVar
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.EnvVar
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<EnvVarBuilder>
,KubernetesResource
,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class EnvVar extends Object implements io.fabric8.kubernetes.api.builder.Editable<EnvVarBuilder>, KubernetesResource
EnvVar represents an environment variable present in a Container.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EnvVar()
No args constructor for use in serializationEnvVar(String name, String value, EnvVarSource valueFrom)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EnvVarBuilder
edit()
Map<String,Object>
getAdditionalProperties()
String
getName()
Name of the environment variable.String
getValue()
Variable references $(VAR_NAME) are expanded using the previously defined environment variables in the container and any service environment variables.EnvVarSource
getValueFrom()
EnvVar represents an environment variable present in a Container.void
setAdditionalProperties(Map<String,Object> additionalProperties)
void
setAdditionalProperty(String name, Object value)
void
setName(String name)
Name of the environment variable.void
setValue(String value)
Variable references $(VAR_NAME) are expanded using the previously defined environment variables in the container and any service environment variables.void
setValueFrom(EnvVarSource valueFrom)
EnvVar represents an environment variable present in a Container.EnvVarBuilder
toBuilder()
-
-
-
Constructor Detail
-
EnvVar
public EnvVar()
No args constructor for use in serialization
-
EnvVar
public EnvVar(String name, String value, EnvVarSource valueFrom)
-
-
Method Detail
-
getName
public String getName()
Name of the environment variable. Must be a C_IDENTIFIER.
-
setName
public void setName(String name)
Name of the environment variable. Must be a C_IDENTIFIER.
-
getValue
public String 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 "".
-
setValue
public void setValue(String value)
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 "".
-
getValueFrom
public EnvVarSource getValueFrom()
EnvVar represents an environment variable present in a Container.
-
setValueFrom
public void setValueFrom(EnvVarSource valueFrom)
EnvVar represents an environment variable present in a Container.
-
edit
public EnvVarBuilder edit()
- Specified by:
edit
in interfaceio.fabric8.kubernetes.api.builder.Editable<EnvVarBuilder>
-
toBuilder
public EnvVarBuilder toBuilder()
-
-