public class NetworkInterfaceDnsSettings extends Object
| Constructor and Description |
|---|
NetworkInterfaceDnsSettings() |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
appliedDnsServers()
Get 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 list of DNS servers IP addresses.
|
String |
internalDnsNameLabel()
Get relative DNS name for this NIC used for internal communications between VMs in the same virtual network.
|
String |
internalDomainNameSuffix()
Get even if internalDnsNameLabel is not specified, a DNS entry is created for the primary NIC of the VM.
|
String |
internalFqdn()
Get fully qualified DNS name supporting internal communications between VMs in the same virtual network.
|
NetworkInterfaceDnsSettings |
withAppliedDnsServers(List<String> appliedDnsServers)
Set 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.
|
NetworkInterfaceDnsSettings |
withDnsServers(List<String> dnsServers)
Set list of DNS servers IP addresses.
|
NetworkInterfaceDnsSettings |
withInternalDnsNameLabel(String internalDnsNameLabel)
Set relative DNS name for this NIC used for internal communications between VMs in the same virtual network.
|
NetworkInterfaceDnsSettings |
withInternalDomainNameSuffix(String internalDomainNameSuffix)
Set even if internalDnsNameLabel is not specified, a DNS entry is created for the primary NIC of the VM.
|
NetworkInterfaceDnsSettings |
withInternalFqdn(String internalFqdn)
Set fully qualified DNS name supporting internal communications between VMs in the same virtual network.
|
public List<String> dnsServers()
public NetworkInterfaceDnsSettings withDnsServers(List<String> dnsServers)
dnsServers - the dnsServers value to setpublic List<String> appliedDnsServers()
public NetworkInterfaceDnsSettings withAppliedDnsServers(List<String> appliedDnsServers)
appliedDnsServers - the appliedDnsServers value to setpublic String internalDnsNameLabel()
public NetworkInterfaceDnsSettings withInternalDnsNameLabel(String internalDnsNameLabel)
internalDnsNameLabel - the internalDnsNameLabel value to setpublic String internalFqdn()
public NetworkInterfaceDnsSettings withInternalFqdn(String internalFqdn)
internalFqdn - the internalFqdn value to setpublic String internalDomainNameSuffix()
public NetworkInterfaceDnsSettings withInternalDomainNameSuffix(String internalDomainNameSuffix)
internalDomainNameSuffix - the internalDomainNameSuffix value to set/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/