Class DnsSettings


  • public final class DnsSettings
    extends Object
    DNS Proxy Settings in Firewall Policy.
    • Constructor Detail

      • DnsSettings

        public DnsSettings()
    • Method Detail

      • servers

        public List<String> servers()
        Get the servers property: List of Custom DNS Servers.
        Returns:
        the servers value.
      • withServers

        public DnsSettings withServers​(List<String> servers)
        Set the servers property: List of Custom DNS Servers.
        Parameters:
        servers - the servers value to set.
        Returns:
        the DnsSettings object itself.
      • enableProxy

        public Boolean enableProxy()
        Get the enableProxy property: Enable DNS Proxy on Firewalls attached to the Firewall Policy.
        Returns:
        the enableProxy value.
      • withEnableProxy

        public DnsSettings withEnableProxy​(Boolean enableProxy)
        Set the enableProxy property: Enable DNS Proxy on Firewalls attached to the Firewall Policy.
        Parameters:
        enableProxy - the enableProxy value to set.
        Returns:
        the DnsSettings object itself.
      • requireProxyForNetworkRules

        public Boolean requireProxyForNetworkRules()
        Get the requireProxyForNetworkRules property: FQDNs in Network Rules are supported when set to true.
        Returns:
        the requireProxyForNetworkRules value.
      • withRequireProxyForNetworkRules

        public DnsSettings withRequireProxyForNetworkRules​(Boolean requireProxyForNetworkRules)
        Set the requireProxyForNetworkRules property: FQDNs in Network Rules are supported when set to true.
        Parameters:
        requireProxyForNetworkRules - the requireProxyForNetworkRules value to set.
        Returns:
        the DnsSettings object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.