DnsSettings Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. DnsSettings
- com.
Implements
public final class DnsSettings
implements JsonSerializable<DnsSettings>
DNS Proxy Settings in Firewall Policy.
Constructor Summary
Constructor | Description |
---|---|
DnsSettings() |
Creates an instance of Dns |
Method Summary
Modifier and Type | Method and Description |
---|---|
Boolean |
enableProxy()
Get the enable |
static
Dns |
fromJson(JsonReader jsonReader)
Reads an instance of Dns |
Boolean |
requireProxyForNetworkRules()
Get the require |
List<String> |
servers()
Get the servers property: List of Custom DNS Servers. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Dns |
withEnableProxy(Boolean enableProxy)
Set the enable |
Dns |
withRequireProxyForNetworkRules(Boolean requireProxyForNetworkRules)
Set the require |
Dns |
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:
fromJson
public static DnsSettings fromJson(JsonReader jsonReader)
Reads an instance of DnsSettings from the JsonReader.
Parameters:
Returns:
Throws:
requireProxyForNetworkRules
public Boolean requireProxyForNetworkRules()
Get the requireProxyForNetworkRules property: FQDNs in Network Rules are supported when set to true.
Returns:
servers
public List
Get the servers property: List of Custom DNS Servers.
Returns:
toJson
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:
Returns:
withRequireProxyForNetworkRules
public DnsSettings withRequireProxyForNetworkRules(Boolean requireProxyForNetworkRules)
Set the requireProxyForNetworkRules property: FQDNs in Network Rules are supported when set to true.
Parameters:
Returns:
withServers
public DnsSettings withServers(List
Set the servers property: List of Custom DNS Servers.
Parameters:
Returns:
Applies to
Azure SDK for Java