Package org.cdk8s.plus23.k8s
Class PodDnsConfig.Builder
- java.lang.Object
-
- org.cdk8s.plus23.k8s.PodDnsConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<PodDnsConfig>
- Enclosing interface:
- PodDnsConfig
@Stability(Stable) public static final class PodDnsConfig.Builder extends Object implements software.amazon.jsii.Builder<PodDnsConfig>
A builder forPodDnsConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PodDnsConfig
build()
Builds the configured instance.PodDnsConfig.Builder
nameservers(List<String> nameservers)
Sets the value ofPodDnsConfig.getNameservers()
PodDnsConfig.Builder
options(List<? extends PodDnsConfigOption> options)
Sets the value ofPodDnsConfig.getOptions()
PodDnsConfig.Builder
searches(List<String> searches)
Sets the value ofPodDnsConfig.getSearches()
-
-
-
Method Detail
-
nameservers
@Stability(Stable) public PodDnsConfig.Builder nameservers(List<String> nameservers)
Sets the value ofPodDnsConfig.getNameservers()
- Parameters:
nameservers
- 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:
this
-
options
@Stability(Stable) public PodDnsConfig.Builder options(List<? extends PodDnsConfigOption> options)
Sets the value ofPodDnsConfig.getOptions()
- Parameters:
options
- 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:
this
-
searches
@Stability(Stable) public PodDnsConfig.Builder searches(List<String> searches)
Sets the value ofPodDnsConfig.getSearches()
- Parameters:
searches
- 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:
this
-
build
@Stability(Stable) public PodDnsConfig build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<PodDnsConfig>
- Returns:
- a new instance of
PodDnsConfig
- Throws:
NullPointerException
- if any required attribute was not provided
-
-