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 Details

    • VirtualMachineNetworkInterfaceDnsSettingsConfiguration

      public VirtualMachineNetworkInterfaceDnsSettingsConfiguration()
  • Method Details

    • dnsServers

      public List<String> dnsServers()
      Get the dnsServers property: List of DNS servers IP addresses.
      Returns:
      the dnsServers value.
    • withDnsServers

      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.