Class V1PodDNSConfigOption

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2025-02-12T21:15:49.397498Z[Etc/UTC]", comments="Generator version: 7.6.0") public class V1PodDNSConfigOption extends Object
PodDNSConfigOption defines DNS resolver options of a pod.
  • Field Details

  • Constructor Details

    • V1PodDNSConfigOption

      public V1PodDNSConfigOption()
  • Method Details

    • name

      public V1PodDNSConfigOption name(String name)
    • getName

      @Nullable public String getName()
      Name is this DNS resolver option's name. Required.
      Returns:
      name
    • setName

      public void setName(String name)
    • value

      public V1PodDNSConfigOption value(String value)
    • getValue

      @Nullable public String getValue()
      Value is this DNS resolver option's value.
      Returns:
      value
    • setValue

      public void setValue(String value)
    • 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 V1PodDNSConfigOption
    • fromJson

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

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