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 EnvVarBuilderedit()Map<String,Object>getAdditionalProperties()StringgetName()Name of the environment variable.StringgetValue()Variable references $(VAR_NAME) are expanded using the previously defined environment variables in the container and any service environment variables.EnvVarSourcegetValueFrom()EnvVar represents an environment variable present in a Container.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetName(String name)Name of the environment variable.voidsetValue(String value)Variable references $(VAR_NAME) are expanded using the previously defined environment variables in the container and any service environment variables.voidsetValueFrom(EnvVarSource valueFrom)EnvVar represents an environment variable present in a Container.EnvVarBuildertoBuilder()
-
-
-
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. May consist of any printable ASCII characters except '='.
-
setName
public void setName(String name)
Name of the environment variable. May consist of any printable ASCII characters except '='.
-
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:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<EnvVarBuilder>
-
toBuilder
public EnvVarBuilder toBuilder()
-
-