public final class NetworkInterfaceDnsSettings extends Object
| Constructor and Description |
|---|
NetworkInterfaceDnsSettings() |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
appliedDnsServers()
Get the appliedDnsServers property: If the VM that uses this NIC is part of an Availability Set, then this list
will have the union of all DNS servers from all NICs that are part of the Availability Set.
|
List<String> |
dnsServers()
Get the dnsServers property: List of DNS servers IP addresses.
|
String |
internalDnsNameLabel()
Get the internalDnsNameLabel property: Relative DNS name for this NIC used for internal communications between
VMs in the same virtual network.
|
String |
internalDomainNameSuffix()
Get the internalDomainNameSuffix property: Even if internalDnsNameLabel is not specified, a DNS entry is created
for the primary NIC of the VM.
|
String |
internalFqdn()
Get the internalFqdn property: Fully qualified DNS name supporting internal communications between VMs in the
same virtual network.
|
void |
validate()
Validates the instance.
|
NetworkInterfaceDnsSettings |
withDnsServers(List<String> dnsServers)
Set the dnsServers property: List of DNS servers IP addresses.
|
NetworkInterfaceDnsSettings |
withInternalDnsNameLabel(String internalDnsNameLabel)
Set the internalDnsNameLabel property: Relative DNS name for this NIC used for internal communications between
VMs in the same virtual network.
|
public List<String> dnsServers()
public NetworkInterfaceDnsSettings withDnsServers(List<String> dnsServers)
dnsServers - the dnsServers value to set.public List<String> appliedDnsServers()
public String internalDnsNameLabel()
public NetworkInterfaceDnsSettings withInternalDnsNameLabel(String internalDnsNameLabel)
internalDnsNameLabel - the internalDnsNameLabel value to set.public String internalFqdn()
public String internalDomainNameSuffix()
public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.