Class V1EnvFromSource

java.lang.Object
io.kubernetes.client.openapi.models.V1EnvFromSource

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2025-05-20T20:47:13.890592Z[Etc/UTC]", comments="Generator version: 7.13.0") public class V1EnvFromSource extends Object
EnvFromSource represents the source of a set of ConfigMaps or Secrets
  • Field Details

  • Constructor Details

    • V1EnvFromSource

      public V1EnvFromSource()
  • Method Details

    • configMapRef

      public V1EnvFromSource configMapRef(@Nullable V1ConfigMapEnvSource configMapRef)
    • getConfigMapRef

      @Nullable public V1ConfigMapEnvSource getConfigMapRef()
      Get configMapRef
      Returns:
      configMapRef
    • setConfigMapRef

      public void setConfigMapRef(@Nullable V1ConfigMapEnvSource configMapRef)
    • prefix

      public V1EnvFromSource prefix(@Nullable String prefix)
    • getPrefix

      @Nullable public String getPrefix()
      Optional text to prepend to the name of each environment variable. Must be a C_IDENTIFIER.
      Returns:
      prefix
    • setPrefix

      public void setPrefix(@Nullable String prefix)
    • secretRef

      public V1EnvFromSource secretRef(@Nullable V1SecretEnvSource secretRef)
    • getSecretRef

      @Nullable public V1SecretEnvSource getSecretRef()
      Get secretRef
      Returns:
      secretRef
    • setSecretRef

      public void setSecretRef(@Nullable V1SecretEnvSource secretRef)
    • 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
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      Validates the JSON Element and throws an exception if issues found
      Parameters:
      jsonElement - JSON Element
      Throws:
      IOException - if the JSON Element is invalid with respect to V1EnvFromSource
    • fromJson

      public static V1EnvFromSource fromJson(String jsonString) throws IOException
      Create an instance of V1EnvFromSource given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of V1EnvFromSource
      Throws:
      IOException - if the JSON string is invalid with respect to V1EnvFromSource
    • toJson

      public String toJson()
      Convert an instance of V1EnvFromSource to an JSON string
      Returns:
      JSON string