Class DnsSettings
- java.lang.Object
-
- com.azure.resourcemanager.network.models.DnsSettings
-
public final class DnsSettings extends Object
DNS Proxy Settings in Firewall Policy.
-
-
Constructor Summary
Constructors Constructor Description DnsSettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleanenableProxy()Get the enableProxy property: Enable DNS Proxy on Firewalls attached to the Firewall Policy.BooleanrequireProxyForNetworkRules()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.voidvalidate()Validates the instance.DnsSettingswithEnableProxy(Boolean enableProxy)Set the enableProxy property: Enable DNS Proxy on Firewalls attached to the Firewall Policy.DnsSettingswithRequireProxyForNetworkRules(Boolean requireProxyForNetworkRules)Set the requireProxyForNetworkRules property: FQDNs in Network Rules are supported when set to true.DnsSettingswithServers(List<String> servers)Set the servers property: List of Custom DNS Servers.
-
-
-
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.
-
-