Class TargetDnsServer
java.lang.Object
com.azure.resourcemanager.dnsresolver.models.TargetDnsServer
Describes a server to forward the DNS queries to.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the ipAddress property: DNS server IP address.port()
Get the port property: DNS server port.void
validate()
Validates the instance.withIpAddress
(String ipAddress) Set the ipAddress property: DNS server IP address.Set the port property: DNS server port.
-
Constructor Details
-
TargetDnsServer
public TargetDnsServer()
-
-
Method Details
-
ipAddress
Get the ipAddress property: DNS server IP address.- Returns:
- the ipAddress value.
-
withIpAddress
Set the ipAddress property: DNS server IP address.- Parameters:
ipAddress
- the ipAddress value to set.- Returns:
- the TargetDnsServer object itself.
-
port
Get the port property: DNS server port.- Returns:
- the port value.
-
withPort
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.
-