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 Summary
Constructors Constructor Description TargetDnsServer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
ipAddress()
Get the ipAddress property: DNS server IP address.Integer
port()
Get the port property: DNS server port.void
validate()
Validates the instance.TargetDnsServer
withIpAddress(String ipAddress)
Set the ipAddress property: DNS server IP address.TargetDnsServer
withPort(Integer port)
Set the port property: DNS server port.
-
-
-
Method Detail
-
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.
-
-