Class V1EnvFromSource

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-02-02T17:56:12.287571Z[Etc/UTC]") public class V1EnvFromSource extends Object
EnvFromSource represents the source of a set of ConfigMaps
  • Field Details

  • Constructor Details

    • V1EnvFromSource

      public V1EnvFromSource()
  • Method Details

    • configMapRef

      public V1EnvFromSource configMapRef(V1ConfigMapEnvSource configMapRef)
    • getConfigMapRef

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

      public void setConfigMapRef(V1ConfigMapEnvSource configMapRef)
    • prefix

      public V1EnvFromSource prefix(String prefix)
    • getPrefix

      @Nullable public String getPrefix()
      An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.
      Returns:
      prefix
    • setPrefix

      public void setPrefix(String prefix)
    • secretRef

      public V1EnvFromSource secretRef(V1SecretEnvSource secretRef)
    • getSecretRef

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

      public void setSecretRef(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
    • validateJsonObject

      public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
      Validates the JSON Object and throws an exception if issues found
      Parameters:
      jsonObj - JSON Object
      Throws:
      IOException - if the JSON Object 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