Class V1ConfigMapNodeConfigSource

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-02-02T17:56:12.287571Z[Etc/UTC]") public class V1ConfigMapNodeConfigSource extends Object
ConfigMapNodeConfigSource contains the information to reference a ConfigMap as a config source for the Node. This API is deprecated since 1.22: https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration
  • Field Details

  • Constructor Details

    • V1ConfigMapNodeConfigSource

      public V1ConfigMapNodeConfigSource()
  • Method Details

    • kubeletConfigKey

      public V1ConfigMapNodeConfigSource kubeletConfigKey(String kubeletConfigKey)
    • getKubeletConfigKey

      @Nonnull public String getKubeletConfigKey()
      KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure This field is required in all cases.
      Returns:
      kubeletConfigKey
    • setKubeletConfigKey

      public void setKubeletConfigKey(String kubeletConfigKey)
    • name

      public V1ConfigMapNodeConfigSource name(String name)
    • getName

      @Nonnull public String getName()
      Name is the metadata.name of the referenced ConfigMap. This field is required in all cases.
      Returns:
      name
    • setName

      public void setName(String name)
    • namespace

      public V1ConfigMapNodeConfigSource namespace(String namespace)
    • getNamespace

      @Nonnull public String getNamespace()
      Namespace is the metadata.namespace of the referenced ConfigMap. This field is required in all cases.
      Returns:
      namespace
    • setNamespace

      public void setNamespace(String namespace)
    • resourceVersion

      public V1ConfigMapNodeConfigSource resourceVersion(String resourceVersion)
    • getResourceVersion

      @Nullable public String getResourceVersion()
      ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status.
      Returns:
      resourceVersion
    • setResourceVersion

      public void setResourceVersion(String resourceVersion)
    • uid

    • getUid

      @Nullable public String getUid()
      UID is the metadata.UID of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status.
      Returns:
      uid
    • setUid

      public void setUid(String uid)
    • 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 V1ConfigMapNodeConfigSource
    • fromJson

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

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