All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.k8s.api.core.v1.EnvVar Maven / Gradle / Ivy

There is a newer version: 1.30.4
Show newest version
package io.k8s.api.core.v1;

import java.lang.String;

/**
 * EnvVar represents an environment variable present in a Container.
 */
public class EnvVar {
  public String name;

  public String value;

  public EnvVarSource valueFrom;

  /**
   * Name of the environment variable. Must be a C_IDENTIFIER.
   */
  public EnvVar name(String name) {
    this.name = name;
    return this;
  }

  /**
   * 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 "".
   */
  public EnvVar value(String value) {
    this.value = value;
    return this;
  }

  public EnvVar valueFrom(EnvVarSource valueFrom) {
    this.valueFrom = valueFrom;
    return this;
  }

  public static EnvVar envVar() {
    return new EnvVar();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy