Partilhar via


VirtualMachineNetworkInterfaceDnsSettingsConfiguration Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.models.VirtualMachineNetworkInterfaceDnsSettingsConfiguration

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 VirtualMachineNetworkInterfaceDnsSettingsConfiguration class.

Method Summary

Modifier and Type Method and Description
List<String> dnsServers()

Get the dnsServers property: List of DNS servers IP addresses.

static VirtualMachineNetworkInterfaceDnsSettingsConfiguration fromJson(JsonReader jsonReader)

Reads an instance of VirtualMachineNetworkInterfaceDnsSettingsConfiguration from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

VirtualMachineNetworkInterfaceDnsSettingsConfiguration withDnsServers(List<String> dnsServers)

Set the dnsServers property: List of DNS servers IP addresses.

Methods inherited from java.lang.Object

Constructor Details

VirtualMachineNetworkInterfaceDnsSettingsConfiguration

public VirtualMachineNetworkInterfaceDnsSettingsConfiguration()

Creates an instance of VirtualMachineNetworkInterfaceDnsSettingsConfiguration class.

Method Details

dnsServers

public List dnsServers()

Get the dnsServers property: List of DNS servers IP addresses.

Returns:

the dnsServers value.

fromJson

public static VirtualMachineNetworkInterfaceDnsSettingsConfiguration fromJson(JsonReader jsonReader)

Reads an instance of VirtualMachineNetworkInterfaceDnsSettingsConfiguration from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of VirtualMachineNetworkInterfaceDnsSettingsConfiguration if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the VirtualMachineNetworkInterfaceDnsSettingsConfiguration.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDnsServers

public VirtualMachineNetworkInterfaceDnsSettingsConfiguration withDnsServers(List dnsServers)

Set the dnsServers property: List of DNS servers IP addresses.

Parameters:

dnsServers - the dnsServers value to set.

Returns:

the VirtualMachineNetworkInterfaceDnsSettingsConfiguration object itself.

Applies to