Class V1EnvVarSource

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

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

  • Constructor Details

    • V1EnvVarSource

      public V1EnvVarSource()
  • Method Details

    • configMapKeyRef

      public V1EnvVarSource configMapKeyRef(@Nullable V1ConfigMapKeySelector configMapKeyRef)
    • getConfigMapKeyRef

      @Nullable public V1ConfigMapKeySelector getConfigMapKeyRef()
      Get configMapKeyRef
      Returns:
      configMapKeyRef
    • setConfigMapKeyRef

      public void setConfigMapKeyRef(@Nullable V1ConfigMapKeySelector configMapKeyRef)
    • fieldRef

      public V1EnvVarSource fieldRef(@Nullable V1ObjectFieldSelector fieldRef)
    • getFieldRef

      @Nullable public V1ObjectFieldSelector getFieldRef()
      Get fieldRef
      Returns:
      fieldRef
    • setFieldRef

      public void setFieldRef(@Nullable V1ObjectFieldSelector fieldRef)
    • resourceFieldRef

      public V1EnvVarSource resourceFieldRef(@Nullable V1ResourceFieldSelector resourceFieldRef)
    • getResourceFieldRef

      @Nullable public V1ResourceFieldSelector getResourceFieldRef()
      Get resourceFieldRef
      Returns:
      resourceFieldRef
    • setResourceFieldRef

      public void setResourceFieldRef(@Nullable V1ResourceFieldSelector resourceFieldRef)
    • secretKeyRef

      public V1EnvVarSource secretKeyRef(@Nullable V1SecretKeySelector secretKeyRef)
    • getSecretKeyRef

      @Nullable public V1SecretKeySelector getSecretKeyRef()
      Get secretKeyRef
      Returns:
      secretKeyRef
    • setSecretKeyRef

      public void setSecretKeyRef(@Nullable V1SecretKeySelector secretKeyRef)
    • 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 V1EnvVarSource
    • fromJson

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

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