Package org.cdk8s.plus23
Class PodDns
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- org.cdk8s.plus23.PodDns
-
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.61.0 (build abf4039)", date="2022-07-06T20:17:23.663Z") @Stability(Stable) public class PodDns extends software.amazon.jsii.JsiiObject
Holds dns settings of the pod.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPodDns.BuilderA fluent builder forPodDns.
-
Constructor Summary
Constructors Modifier Constructor Description PodDns()PodDns(PodDnsProps props)protectedPodDns(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)protectedPodDns(software.amazon.jsii.JsiiObjectRef objRef)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddNameserver(@NotNull String... nameservers)Add a nameserver.voidaddOption(@NotNull DnsOption... options)Add a custom option.voidaddSearch(@NotNull String... searches)Add a search domain.StringgetHostname()The configured hostname of the pod.BooleangetHostnameAsFQDN()Whether or not the pods hostname is set to its FQDN.List<String>getNameservers()Nameservers defined for this pod.List<DnsOption>getOptions()Custom dns options defined for this pod.DnsPolicygetPolicy()The DNS policy of this pod.List<String>getSearches()Search domains defined for this pod.StringgetSubdomain()The configured subdomain of the pod.-
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
-
-
-
Constructor Detail
-
PodDns
protected PodDns(software.amazon.jsii.JsiiObjectRef objRef)
-
PodDns
protected PodDns(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
-
PodDns
@Stability(Stable) public PodDns(@Nullable PodDnsProps props)- Parameters:
props-
-
PodDns
@Stability(Stable) public PodDns()
-
-
Method Detail
-
addNameserver
@Stability(Stable) public void addNameserver(@NotNull @NotNull String... nameservers)Add a nameserver.- Parameters:
nameservers- This parameter is required.
-
addOption
@Stability(Stable) public void addOption(@NotNull @NotNull DnsOption... options)Add a custom option.- Parameters:
options- This parameter is required.
-
addSearch
@Stability(Stable) public void addSearch(@NotNull @NotNull String... searches)Add a search domain.- Parameters:
searches- This parameter is required.
-
getHostnameAsFQDN
@Stability(Stable) @NotNull public Boolean getHostnameAsFQDN()
Whether or not the pods hostname is set to its FQDN.
-
getNameservers
@Stability(Stable) @NotNull public List<String> getNameservers()
Nameservers defined for this pod.
-
getOptions
@Stability(Stable) @NotNull public List<DnsOption> getOptions()
Custom dns options defined for this pod.
-
getPolicy
@Stability(Stable) @NotNull public DnsPolicy getPolicy()
The DNS policy of this pod.
-
getSearches
@Stability(Stable) @NotNull public List<String> getSearches()
Search domains defined for this pod.
-
getHostname
@Stability(Stable) @Nullable public String getHostname()
The configured hostname of the pod.Undefined means its set to a system-defined value.
-
getSubdomain
@Stability(Stable) @Nullable public String getSubdomain()
The configured subdomain of the pod.
-
-