Package org.cdk8s.plus24
Class PodDns
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- org.cdk8s.plus24.PodDns
-
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.82.0 (build 2d2ddd7)", date="2023-05-25T02:26:40.645Z") @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 class
PodDns.Builder
A fluent builder forPodDns
.
-
Constructor Summary
Constructors Modifier Constructor Description PodDns()
PodDns(PodDnsProps props)
protected
PodDns(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
protected
PodDns(software.amazon.jsii.JsiiObjectRef objRef)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addNameserver(@NotNull String... nameservers)
Add a nameserver.void
addOption(@NotNull DnsOption... options)
Add a custom option.void
addSearch(@NotNull String... searches)
Add a search domain.String
getHostname()
The configured hostname of the pod.Boolean
getHostnameAsFQDN()
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.DnsPolicy
getPolicy()
The DNS policy of this pod.List<String>
getSearches()
Search domains defined for this pod.String
getSubdomain()
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.
-
-