java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1EnvVar

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") public class V1EnvVar extends Object
EnvVar represents an environment variable present in a Container.
  • Field Details

  • Constructor Details

    • V1EnvVar

      public V1EnvVar(String name)
  • Method Details

    • getName

      public String getName()
      Name of the environment variable. Must be a C_IDENTIFIER.
      Returns:
      the name property value
    • setName

      public void setName(String name)
      Set the name property value
    • name

      public V1EnvVar name(String name)
      Set name in a chainable fashion.
      Returns:
      The same instance of V1EnvVar for chaining.
    • 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 \"\".
      Returns:
      the value property value
    • setValue

      public void setValue(String value)
      Set the value property value
    • value

      public V1EnvVar value(String value)
      Set value in a chainable fashion.
      Returns:
      The same instance of V1EnvVar for chaining.
    • getValueFrom

      public V1EnvVarSource getValueFrom()
      Returns:
      the valueFrom property value
    • setValueFrom

      public void setValueFrom(V1EnvVarSource valueFrom)
      Set the valueFrom property value
    • valueFrom

      public V1EnvVar valueFrom(V1EnvVarSource valueFrom)
      Set valueFrom in a chainable fashion.
      Returns:
      The same instance of V1EnvVar for chaining.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object