Class DhcpOptions

java.lang.Object
com.microsoft.azure.management.network.DhcpOptions

public class DhcpOptions extends Object
DhcpOptions contains an array of DNS servers available to VMs deployed in the virtual network. Standard DHCP option for a subnet overrides VNET DHCP options.
  • Constructor Details

    • DhcpOptions

      public DhcpOptions()
  • Method Details

    • dnsServers

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

      public DhcpOptions withDnsServers(List<String> dnsServers)
      Set the list of DNS servers IP addresses.
      Parameters:
      dnsServers - the dnsServers value to set
      Returns:
      the DhcpOptions object itself.