DnsSettings Class

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

Implements

public final class DnsSettings
implements JsonSerializable<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.

static DnsSettings fromJson(JsonReader jsonReader)

Reads an instance of DnsSettings from the JsonReader.

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.

JsonWriter toJson(JsonWriter jsonWriter)
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.

fromJson

public static DnsSettings fromJson(JsonReader jsonReader)

Reads an instance of DnsSettings from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DnsSettings if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the DnsSettings.

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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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