public final class DnsSettings extends Object
| Constructor and Description |
|---|
DnsSettings() |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
enableProxy()
Get the enableProxy property: Enable DNS Proxy on Firewalls attached to the Firewall Policy.
|
Boolean |
requireProxyForNetworkRules()
Get the requireProxyForNetworkRules property: FQDNs in Network Rules are supported when set to true.
|
List<String> |
servers()
Get the servers property: List of Custom DNS Servers.
|
void |
validate()
Validates the instance.
|
DnsSettings |
withEnableProxy(Boolean enableProxy)
Set the enableProxy property: Enable DNS Proxy on Firewalls attached to the Firewall Policy.
|
DnsSettings |
withRequireProxyForNetworkRules(Boolean requireProxyForNetworkRules)
Set the requireProxyForNetworkRules property: FQDNs in Network Rules are supported when set to true.
|
DnsSettings |
withServers(List<String> servers)
Set the servers property: List of Custom DNS Servers.
|
public List<String> servers()
public DnsSettings withServers(List<String> servers)
servers - the servers value to set.public Boolean enableProxy()
public DnsSettings withEnableProxy(Boolean enableProxy)
enableProxy - the enableProxy value to set.public Boolean requireProxyForNetworkRules()
public DnsSettings withRequireProxyForNetworkRules(Boolean requireProxyForNetworkRules)
requireProxyForNetworkRules - the requireProxyForNetworkRules value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.