Class VirtualMachineNetworkInterfaceDnsSettingsConfiguration
java.lang.Object
com.azure.resourcemanager.compute.models.VirtualMachineNetworkInterfaceDnsSettingsConfiguration
Describes a virtual machines network configuration's DNS settings.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of VirtualMachineNetworkInterfaceDnsSettingsConfiguration class. -
Method Summary
Modifier and TypeMethodDescriptionGet the dnsServers property: List of DNS servers IP addresses.voidvalidate()Validates the instance.withDnsServers(List<String> dnsServers) Set the dnsServers property: List of DNS servers IP addresses.
-
Constructor Details
-
VirtualMachineNetworkInterfaceDnsSettingsConfiguration
public VirtualMachineNetworkInterfaceDnsSettingsConfiguration()Creates an instance of VirtualMachineNetworkInterfaceDnsSettingsConfiguration class.
-
-
Method Details
-
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.
-