Class PodDnsConfig.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • nameservers

        @Stability(Stable)
        public PodDnsConfig.Builder nameservers​(List<String> nameservers)
        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 of PodDnsConfig.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 of PodDnsConfig.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 interface software.amazon.jsii.Builder<PodDnsConfig>
        Returns:
        a new instance of PodDnsConfig
        Throws:
        NullPointerException - if any required attribute was not provided