Class V1NodeConfigSource

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-04-23T13:45:09.091597Z[Etc/UTC]") public class V1NodeConfigSource extends Object
NodeConfigSource specifies a source of node configuration. Exactly one subfield (excluding metadata) must be non-nil. This API is deprecated since 1.22
  • Field Details

  • Constructor Details

    • V1NodeConfigSource

      public V1NodeConfigSource()
  • Method Details

    • configMap

      public V1NodeConfigSource configMap(V1ConfigMapNodeConfigSource configMap)
    • getConfigMap

      @Nullable public V1ConfigMapNodeConfigSource getConfigMap()
      Get configMap
      Returns:
      configMap
    • setConfigMap

      public void setConfigMap(V1ConfigMapNodeConfigSource configMap)
    • 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 V1NodeConfigSource
    • fromJson

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

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