Class TargetDnsServer

java.lang.Object
com.azure.resourcemanager.dnsresolver.models.TargetDnsServer

public final class TargetDnsServer extends Object
Describes a server to forward the DNS queries to.
  • Constructor Details

    • TargetDnsServer

      public TargetDnsServer()
  • Method Details

    • ipAddress

      public String ipAddress()
      Get the ipAddress property: DNS server IP address.
      Returns:
      the ipAddress value.
    • withIpAddress

      public TargetDnsServer withIpAddress(String ipAddress)
      Set the ipAddress property: DNS server IP address.
      Parameters:
      ipAddress - the ipAddress value to set.
      Returns:
      the TargetDnsServer object itself.
    • port

      public Integer port()
      Get the port property: DNS server port.
      Returns:
      the port value.
    • withPort

      public TargetDnsServer withPort(Integer port)
      Set the port property: DNS server port.
      Parameters:
      port - the port value to set.
      Returns:
      the TargetDnsServer object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.