Class PodDnsProps.Jsii$Proxy
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- org.cdk8s.plus24.PodDnsProps.Jsii$Proxy
-
- All Implemented Interfaces:
PodDnsProps
,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
- PodDnsProps
@Stability(Stable) @Internal public static final class PodDnsProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements PodDnsProps
An implementation forPodDnsProps
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Nested classes/interfaces inherited from interface org.cdk8s.plus24.PodDnsProps
PodDnsProps.Builder, PodDnsProps.Jsii$Proxy
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Jsii$Proxy(PodDnsProps.Builder builder)
Constructor that initializes the object based on literal property values passed by thePodDnsProps.Builder
.protected
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.databind.JsonNode
$jsii$toJson()
boolean
equals(Object o)
String
getHostname()
Specifies the hostname of the Pod.Boolean
getHostnameAsFQDN()
If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default).List<String>
getNameservers()
A list of IP addresses that will be used as DNS servers for the Pod.List<DnsOption>
getOptions()
List of objects where each object may have a name property (required) and a value property (optional).DnsPolicy
getPolicy()
Set DNS policy for the pod.List<String>
getSearches()
A list of DNS search domains for hostname lookup in the Pod.String
getSubdomain()
If specified, the fully qualified Pod hostname will be ". . .svc. ". int
hashCode()
-
-
-
Constructor Detail
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef
- Reference to the JSII managed object.
-
Jsii$Proxy
protected Jsii$Proxy(PodDnsProps.Builder builder)
Constructor that initializes the object based on literal property values passed by thePodDnsProps.Builder
.
-
-
Method Detail
-
getHostname
public final String getHostname()
Description copied from interface:PodDnsProps
Specifies the hostname of the Pod.Default: - Set to a system-defined value.
- Specified by:
getHostname
in interfacePodDnsProps
-
getHostnameAsFQDN
public final Boolean getHostnameAsFQDN()
Description copied from interface:PodDnsProps
If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default).In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname). In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters to FQDN. If a pod does not have FQDN, this has no effect.
Default: false
- Specified by:
getHostnameAsFQDN
in interfacePodDnsProps
-
getNameservers
public final List<String> getNameservers()
Description copied from interface:PodDnsProps
A list of IP addresses that will be used as DNS servers for the Pod.There can be at most 3 IP addresses specified. When the policy is set to "NONE", the list must contain at least one IP address, otherwise this property is optional. The servers listed will be combined to the base nameservers generated from the specified DNS policy with duplicate addresses removed.
- Specified by:
getNameservers
in interfacePodDnsProps
-
getOptions
public final List<DnsOption> getOptions()
Description copied from interface:PodDnsProps
List of objects where each object may have a name property (required) and a value property (optional).The contents in this property will be merged to the options generated from the specified DNS policy. Duplicate entries are removed.
- Specified by:
getOptions
in interfacePodDnsProps
-
getPolicy
public final DnsPolicy getPolicy()
Description copied from interface:PodDnsProps
Set DNS policy for the pod.If policy is set to
None
, other configuration must be supplied.Default: DnsPolicy.CLUSTER_FIRST
- Specified by:
getPolicy
in interfacePodDnsProps
-
getSearches
public final List<String> getSearches()
Description copied from interface:PodDnsProps
A list of DNS search domains for hostname lookup in the Pod.When specified, the provided list will be merged into the base search domain names generated from the chosen DNS policy. Duplicate domain names are removed.
Kubernetes allows for at most 6 search domains.
- Specified by:
getSearches
in interfacePodDnsProps
-
getSubdomain
public final String getSubdomain()
Description copied from interface:PodDnsProps
If specified, the fully qualified Pod hostname will be ". . .svc. ". Default: - No subdomain.
- Specified by:
getSubdomain
in interfacePodDnsProps
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
- Specified by:
$jsii$toJson
in interfacesoftware.amazon.jsii.JsiiSerializable
-
-