VirtualMachineScaleSetNetworkConfigurationDnsSettings Class

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

Implements

public final class VirtualMachineScaleSetNetworkConfigurationDnsSettings
implements JsonSerializable<VirtualMachineScaleSetNetworkConfigurationDnsSettings>

Describes a virtual machines scale sets network configuration's DNS settings.

Constructor Summary

Constructor Description
VirtualMachineScaleSetNetworkConfigurationDnsSettings()

Creates an instance of VirtualMachineScaleSetNetworkConfigurationDnsSettings class.

Method Summary

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

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

static VirtualMachineScaleSetNetworkConfigurationDnsSettings fromJson(JsonReader jsonReader)

Reads an instance of VirtualMachineScaleSetNetworkConfigurationDnsSettings from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

VirtualMachineScaleSetNetworkConfigurationDnsSettings withDnsServers(List<String> dnsServers)

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

Methods inherited from java.lang.Object

Constructor Details

VirtualMachineScaleSetNetworkConfigurationDnsSettings

public VirtualMachineScaleSetNetworkConfigurationDnsSettings()

Creates an instance of VirtualMachineScaleSetNetworkConfigurationDnsSettings class.

Method Details

dnsServers

public List dnsServers()

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

Returns:

the dnsServers value.

fromJson

public static VirtualMachineScaleSetNetworkConfigurationDnsSettings fromJson(JsonReader jsonReader)

Reads an instance of VirtualMachineScaleSetNetworkConfigurationDnsSettings from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of VirtualMachineScaleSetNetworkConfigurationDnsSettings 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 VirtualMachineScaleSetNetworkConfigurationDnsSettings.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDnsServers

public VirtualMachineScaleSetNetworkConfigurationDnsSettings withDnsServers(List dnsServers)

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

Parameters:

dnsServers - the dnsServers value to set.

Returns:

the VirtualMachineScaleSetNetworkConfigurationDnsSettings object itself.

Applies to