Class VirtualMachineNetworkInterfaceDnsSettingsConfiguration


  • public final class VirtualMachineNetworkInterfaceDnsSettingsConfiguration
    extends Object
    Describes a virtual machines network configuration's DNS settings.
    • Constructor Detail

      • VirtualMachineNetworkInterfaceDnsSettingsConfiguration

        public VirtualMachineNetworkInterfaceDnsSettingsConfiguration()
    • Method Detail

      • dnsServers

        public List<String> dnsServers()
        Get the dnsServers property: List of DNS servers IP addresses.
        Returns:
        the dnsServers value.
      • withDnsServers

        public VirtualMachineNetworkInterfaceDnsSettingsConfiguration withDnsServers​(List<String> dnsServers)
        Set the dnsServers property: List of DNS servers IP addresses.
        Parameters:
        dnsServers - the dnsServers value to set.
        Returns:
        the VirtualMachineNetworkInterfaceDnsSettingsConfiguration object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.