Class V1PodDNSConfig
java.lang.Object
io.kubernetes.client.openapi.models.V1PodDNSConfig
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-02-12T21:15:49.397498Z[Etc/UTC]",
comments="Generator version: 7.6.0")
public class V1PodDNSConfig
extends Object
PodDNSConfig defines the DNS parameters of a pod in addition to those generated from DNSPolicy.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddNameserversItem
(String nameserversItem) addOptionsItem
(V1PodDNSConfigOption optionsItem) addSearchesItem
(String searchesItem) boolean
static V1PodDNSConfig
Create an instance of V1PodDNSConfig given an JSON stringA list of DNS name server IP addresses.A list of DNS resolver options.A list of DNS search domains for host-name lookup.int
hashCode()
nameservers
(List<String> nameservers) options
(List<V1PodDNSConfigOption> options) void
setNameservers
(List<String> nameservers) void
setOptions
(List<V1PodDNSConfigOption> options) void
setSearches
(List<String> searches) toJson()
Convert an instance of V1PodDNSConfig to an JSON stringtoString()
static void
validateJsonElement
(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_NAMESERVERS
- See Also:
-
SERIALIZED_NAME_OPTIONS
- See Also:
-
SERIALIZED_NAME_SEARCHES
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1PodDNSConfig
public V1PodDNSConfig()
-
-
Method Details
-
nameservers
-
addNameserversItem
-
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:
- nameservers
-
setNameservers
-
options
-
addOptionsItem
-
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:
- options
-
setOptions
-
searches
-
addSearchesItem
-
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:
- searches
-
setSearches
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
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 V1PodDNSConfig
-
fromJson
Create an instance of V1PodDNSConfig given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1PodDNSConfig
- Throws:
IOException
- if the JSON string is invalid with respect to V1PodDNSConfig
-
toJson
Convert an instance of V1PodDNSConfig to an JSON string- Returns:
- JSON string
-