Class EnvVar.EnvVarBuilder

  • Enclosing class:
    EnvVar

    public static class EnvVar.EnvVarBuilder
    extends java.lang.Object
    • Method Detail

      • name

        public EnvVar.EnvVarBuilder name​(@NonNull
                                         @NonNull java.lang.String name)
        Name of the environment variable. Must be a C_IDENTIFIER.
        Returns:
        this.
      • value

        public EnvVar.EnvVarBuilder value​(java.lang.String value)
        Variable references $(VAR_NAME) are expanded using the previous 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. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "".
        Returns:
        this.
      • build

        public EnvVar build()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object