Class VirtualMachineNetworkInterfaceDnsSettingsConfiguration
- java.lang.Object
-
- com.azure.resourcemanager.compute.models.VirtualMachineNetworkInterfaceDnsSettingsConfiguration
-
public final class VirtualMachineNetworkInterfaceDnsSettingsConfiguration extends Object
Describes a virtual machines network configuration's DNS settings.
-
-
Constructor Summary
Constructors Constructor Description VirtualMachineNetworkInterfaceDnsSettingsConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>dnsServers()Get the dnsServers property: List of DNS servers IP addresses.voidvalidate()Validates the instance.VirtualMachineNetworkInterfaceDnsSettingsConfigurationwithDnsServers(List<String> dnsServers)Set the dnsServers property: List of DNS servers IP addresses.
-
-
-
Method Detail
-
dnsServers
public List<String> dnsServers()
Get the dnsServers property: List of DNS servers IP addresses.- Returns:
- the dnsServers value.
-
withDnsServers
public VirtualMachineNetworkInterfaceDnsSettingsConfiguration withDnsServers(List<String> dnsServers)
Set the dnsServers property: List of DNS servers IP addresses.- Parameters:
dnsServers- the dnsServers value to set.- Returns:
- the VirtualMachineNetworkInterfaceDnsSettingsConfiguration object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-