TargetDnsServer Class
- java.
lang. Object - com.
azure. resourcemanager. dnsresolver. models. TargetDnsServer
- com.
Implements
public final class TargetDnsServer
implements JsonSerializable<TargetDnsServer>
Describes a server to forward the DNS queries to.
Constructor Summary
| Constructor | Description |
|---|---|
| TargetDnsServer() |
Creates an instance of Target |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Target |
fromJson(JsonReader jsonReader)
Reads an instance of Target |
| String |
ipAddress()
Get the ip |
| Integer |
port()
Get the port property: DNS server port. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Target |
withIpAddress(String ipAddress)
Set the ip |
|
Target |
withPort(Integer port)
Set the port property: DNS server port. |
Methods inherited from java.lang.Object
Constructor Details
TargetDnsServer
public TargetDnsServer()
Creates an instance of TargetDnsServer class.
Method Details
fromJson
public static TargetDnsServer fromJson(JsonReader jsonReader)
Reads an instance of TargetDnsServer from the JsonReader.
Parameters:
Returns:
Throws:
ipAddress
public String ipAddress()
Get the ipAddress property: DNS server IP address.
Returns:
port
public Integer port()
Get the port property: DNS server port.
Returns:
toJson
validate
public void validate()
Validates the instance.
withIpAddress
public TargetDnsServer withIpAddress(String ipAddress)
Set the ipAddress property: DNS server IP address.
Parameters:
Returns:
withPort
public TargetDnsServer withPort(Integer port)
Set the port property: DNS server port.
Parameters:
Returns: