Class 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.
    • 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.