Class V1PodDNSConfig

java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1PodDNSConfig

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") public class V1PodDNSConfig extends Object
PodDNSConfig defines the DNS parameters of a pod in addition to those generated from DNSPolicy.
  • Field Details

  • Constructor Details

    • V1PodDNSConfig

      public V1PodDNSConfig()
  • Method Details

    • getNameservers

      public List<String> getNameservers()
      A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed.
      Returns:
      the nameservers property value
    • setNameservers

      public void setNameservers(List<String> nameservers)
      Set the nameservers property value
    • nameservers

      public V1PodDNSConfig nameservers(List<String> nameservers)
      Set nameservers in a chainable fashion.
      Returns:
      The same instance of V1PodDNSConfig for chaining.
    • addnameserversItem

      public V1PodDNSConfig addnameserversItem(String nameserversItem)
      Add an item to the nameservers property in a chainable fashion.
      Returns:
      The same instance of V1PodDNSConfig for chaining.
    • getOptions

      public List<@Valid V1PodDNSConfigOption> getOptions()
      A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy.
      Returns:
      the options property value
    • setOptions

      public void setOptions(List<@Valid V1PodDNSConfigOption> options)
      Set the options property value
    • options

      public V1PodDNSConfig options(List<@Valid V1PodDNSConfigOption> options)
      Set options in a chainable fashion.
      Returns:
      The same instance of V1PodDNSConfig for chaining.
    • addoptionsItem

      public V1PodDNSConfig addoptionsItem(V1PodDNSConfigOption optionsItem)
      Add an item to the options property in a chainable fashion.
      Returns:
      The same instance of V1PodDNSConfig for chaining.
    • getSearches

      public List<String> getSearches()
      A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed.
      Returns:
      the searches property value
    • setSearches

      public void setSearches(List<String> searches)
      Set the searches property value
    • searches

      public V1PodDNSConfig searches(List<String> searches)
      Set searches in a chainable fashion.
      Returns:
      The same instance of V1PodDNSConfig for chaining.
    • addsearchesItem

      public V1PodDNSConfig addsearchesItem(String searchesItem)
      Add an item to the searches property in a chainable fashion.
      Returns:
      The same instance of V1PodDNSConfig for chaining.
    • 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