Class DnsSettings
java.lang.Object
com.azure.resourcemanager.network.models.DnsSettings
DNS Proxy Settings in Firewall Policy.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the enableProxy property: Enable DNS Proxy on Firewalls attached to the Firewall Policy.Get the requireProxyForNetworkRules property: FQDNs in Network Rules are supported when set to true.servers()Get the servers property: List of Custom DNS Servers.voidvalidate()Validates the instance.withEnableProxy(Boolean enableProxy) Set the enableProxy property: Enable DNS Proxy on Firewalls attached to the Firewall Policy.withRequireProxyForNetworkRules(Boolean requireProxyForNetworkRules) Set the requireProxyForNetworkRules property: FQDNs in Network Rules are supported when set to true.withServers(List<String> servers) Set the servers property: List of Custom DNS Servers.
-
Constructor Details
-
DnsSettings
public DnsSettings()Creates an instance of DnsSettings class.
-
-
Method Details
-
servers
Get the servers property: List of Custom DNS Servers.- Returns:
- the servers value.
-
withServers
Set the servers property: List of Custom DNS Servers.- Parameters:
servers- the servers value to set.- Returns:
- the DnsSettings object itself.
-
enableProxy
Get the enableProxy property: Enable DNS Proxy on Firewalls attached to the Firewall Policy.- Returns:
- the enableProxy value.
-
withEnableProxy
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
Get the requireProxyForNetworkRules property: FQDNs in Network Rules are supported when set to true.- Returns:
- the requireProxyForNetworkRules value.
-
withRequireProxyForNetworkRules
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.
-