VirtualMachineNetworkInterfaceDnsSettingsConfiguration Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. VirtualMachineNetworkInterfaceDnsSettingsConfiguration
- com.
Implements
public final class VirtualMachineNetworkInterfaceDnsSettingsConfiguration
implements JsonSerializable<VirtualMachineNetworkInterfaceDnsSettingsConfiguration>
Describes a virtual machines network configuration's DNS settings.
Constructor Summary
Constructor | Description |
---|---|
VirtualMachineNetworkInterfaceDnsSettingsConfiguration() |
Creates an instance of Virtual |
Method Summary
Modifier and Type | Method and Description |
---|---|
List<String> |
dnsServers()
Get the dns |
static
Virtual |
fromJson(JsonReader jsonReader)
Reads an instance of Virtual |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Virtual |
withDnsServers(List<String> dnsServers)
Set the dns |
Methods inherited from java.lang.Object
Constructor Details
VirtualMachineNetworkInterfaceDnsSettingsConfiguration
public VirtualMachineNetworkInterfaceDnsSettingsConfiguration()
Creates an instance of VirtualMachineNetworkInterfaceDnsSettingsConfiguration class.
Method Details
dnsServers
public List
Get the dnsServers property: List of DNS servers IP addresses.
Returns:
fromJson
public static VirtualMachineNetworkInterfaceDnsSettingsConfiguration fromJson(JsonReader jsonReader)
Reads an instance of VirtualMachineNetworkInterfaceDnsSettingsConfiguration from the JsonReader.
Parameters:
Returns:
Throws:
toJson
validate
public void validate()
Validates the instance.
withDnsServers
public VirtualMachineNetworkInterfaceDnsSettingsConfiguration withDnsServers(List
Set the dnsServers property: List of DNS servers IP addresses.
Parameters:
Returns:
Applies to
Azure SDK for Java