DnsSettings Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.DnsSettings

public final class DnsSettings

DNS Proxy Settings in Firewall Policy.

Constructor Summary

Constructor Description
DnsSettings()

Creates an instance of DnsSettings class.

Method Summary

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.

Methods inherited from java.lang.Object

Constructor Details

DnsSettings

public DnsSettings()

Creates an instance of DnsSettings class.

Method Details

enableProxy

public Boolean enableProxy()

Get the enableProxy property: Enable DNS Proxy on Firewalls attached to the Firewall Policy.

Returns:

the enableProxy value.

requireProxyForNetworkRules

public Boolean requireProxyForNetworkRules()

Get the requireProxyForNetworkRules property: FQDNs in Network Rules are supported when set to true.

Returns:

the requireProxyForNetworkRules value.

servers

public List servers()

Get the servers property: List of Custom DNS Servers.

Returns:

the servers value.

validate

public void validate()

Validates the instance.

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.

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.

withServers

public DnsSettings withServers(List servers)

Set the servers property: List of Custom DNS Servers.

Parameters:

servers - the servers value to set.

Returns:

the DnsSettings object itself.

Applies to