com.azure.resourcemanager.network.models.DnsSettings Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-network Show documentation
Show all versions of azure-resourcemanager-network Show documentation
This package contains Microsoft Azure Network Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.network.models;
import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/**
* DNS Proxy Settings in Firewall Policy.
*/
@Fluent
public final class DnsSettings {
/*
* List of Custom DNS Servers.
*/
@JsonProperty(value = "servers")
private List servers;
/*
* Enable DNS Proxy on Firewalls attached to the Firewall Policy.
*/
@JsonProperty(value = "enableProxy")
private Boolean enableProxy;
/*
* FQDNs in Network Rules are supported when set to true.
*/
@JsonProperty(value = "requireProxyForNetworkRules")
private Boolean requireProxyForNetworkRules;
/**
* Creates an instance of DnsSettings class.
*/
public DnsSettings() {
}
/**
* Get the servers property: List of Custom DNS Servers.
*
* @return the servers value.
*/
public List servers() {
return this.servers;
}
/**
* Set the servers property: List of Custom DNS Servers.
*
* @param servers the servers value to set.
* @return the DnsSettings object itself.
*/
public DnsSettings withServers(List servers) {
this.servers = servers;
return this;
}
/**
* Get the enableProxy property: Enable DNS Proxy on Firewalls attached to the Firewall Policy.
*
* @return the enableProxy value.
*/
public Boolean enableProxy() {
return this.enableProxy;
}
/**
* Set the enableProxy property: Enable DNS Proxy on Firewalls attached to the Firewall Policy.
*
* @param enableProxy the enableProxy value to set.
* @return the DnsSettings object itself.
*/
public DnsSettings withEnableProxy(Boolean enableProxy) {
this.enableProxy = enableProxy;
return this;
}
/**
* Get the requireProxyForNetworkRules property: FQDNs in Network Rules are supported when set to true.
*
* @return the requireProxyForNetworkRules value.
*/
public Boolean requireProxyForNetworkRules() {
return this.requireProxyForNetworkRules;
}
/**
* Set the requireProxyForNetworkRules property: FQDNs in Network Rules are supported when set to true.
*
* @param requireProxyForNetworkRules the requireProxyForNetworkRules value to set.
* @return the DnsSettings object itself.
*/
public DnsSettings withRequireProxyForNetworkRules(Boolean requireProxyForNetworkRules) {
this.requireProxyForNetworkRules = requireProxyForNetworkRules;
return this;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
}
}