NetworkInterfaceDnsSettings Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. NetworkInterfaceDnsSettings
- com.
Implements
public final class NetworkInterfaceDnsSettings
implements JsonSerializable<NetworkInterfaceDnsSettings>
DNS settings of a network interface.
Constructor Summary
Constructor | Description |
---|---|
NetworkInterfaceDnsSettings() |
Creates an instance of Network |
Method Summary
Modifier and Type | Method and Description |
---|---|
List<String> |
appliedDnsServers()
Get the applied |
List<String> |
dnsServers()
Get the dns |
static
Network |
fromJson(JsonReader jsonReader)
Reads an instance of Network |
String |
internalDnsNameLabel()
Get the internal |
String |
internalDomainNameSuffix()
Get the internal |
String |
internalFqdn()
Get the internal |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Network |
withDnsServers(List<String> dnsServers)
Set the dns |
Network |
withInternalDnsNameLabel(String internalDnsNameLabel)
Set the internal |
Methods inherited from java.lang.Object
Constructor Details
NetworkInterfaceDnsSettings
public NetworkInterfaceDnsSettings()
Creates an instance of NetworkInterfaceDnsSettings class.
Method Details
appliedDnsServers
public List
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. This property is what is configured on each of those VMs.
Returns:
dnsServers
public List
Get the dnsServers property: List of DNS servers IP addresses. Use 'AzureProvidedDNS' to switch to azure provided DNS resolution. 'AzureProvidedDNS' value cannot be combined with other IPs, it must be the only value in dnsServers collection.
Returns:
fromJson
public static NetworkInterfaceDnsSettings fromJson(JsonReader jsonReader)
Reads an instance of NetworkInterfaceDnsSettings from the JsonReader.
Parameters:
Returns:
Throws:
internalDnsNameLabel
public String internalDnsNameLabel()
Get the internalDnsNameLabel property: Relative DNS name for this NIC used for internal communications between VMs in the same virtual network.
Returns:
internalDomainNameSuffix
public String internalDomainNameSuffix()
Get the internalDomainNameSuffix property: Even if internalDnsNameLabel is not specified, a DNS entry is created for the primary NIC of the VM. This DNS name can be constructed by concatenating the VM name with the value of internalDomainNameSuffix.
Returns:
internalFqdn
public String internalFqdn()
Get the internalFqdn property: Fully qualified DNS name supporting internal communications between VMs in the same virtual network.
Returns:
toJson
validate
public void validate()
Validates the instance.
withDnsServers
public NetworkInterfaceDnsSettings withDnsServers(List
Set the dnsServers property: List of DNS servers IP addresses. Use 'AzureProvidedDNS' to switch to azure provided DNS resolution. 'AzureProvidedDNS' value cannot be combined with other IPs, it must be the only value in dnsServers collection.
Parameters:
Returns:
withInternalDnsNameLabel
public 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.
Parameters:
Returns:
Applies to
Azure SDK for Java