java.lang.Object
com.azure.resourcemanager.connectedvmware.models.NicIpSettings

public final class NicIpSettings extends Object
Defines the network interface ip settings.
  • Constructor Details

    • NicIpSettings

      public NicIpSettings()
  • Method Details

    • allocationMethod

      public IpAddressAllocationMethod allocationMethod()
      Get the allocationMethod property: Gets or sets the nic allocation method.
      Returns:
      the allocationMethod value.
    • withAllocationMethod

      public NicIpSettings withAllocationMethod(IpAddressAllocationMethod allocationMethod)
      Set the allocationMethod property: Gets or sets the nic allocation method.
      Parameters:
      allocationMethod - the allocationMethod value to set.
      Returns:
      the NicIpSettings object itself.
    • dnsServers

      public List<String> dnsServers()
      Get the dnsServers property: Gets or sets the dns servers.
      Returns:
      the dnsServers value.
    • withDnsServers

      public NicIpSettings withDnsServers(List<String> dnsServers)
      Set the dnsServers property: Gets or sets the dns servers.
      Parameters:
      dnsServers - the dnsServers value to set.
      Returns:
      the NicIpSettings object itself.
    • gateway

      public List<String> gateway()
      Get the gateway property: Gets or sets the gateway.
      Returns:
      the gateway value.
    • withGateway

      public NicIpSettings withGateway(List<String> gateway)
      Set the gateway property: Gets or sets the gateway.
      Parameters:
      gateway - the gateway value to set.
      Returns:
      the NicIpSettings object itself.
    • ipAddress

      public String ipAddress()
      Get the ipAddress property: Gets or sets the ip address for the nic.
      Returns:
      the ipAddress value.
    • withIpAddress

      public NicIpSettings withIpAddress(String ipAddress)
      Set the ipAddress property: Gets or sets the ip address for the nic.
      Parameters:
      ipAddress - the ipAddress value to set.
      Returns:
      the NicIpSettings object itself.
    • subnetMask

      public String subnetMask()
      Get the subnetMask property: Gets or sets the mask.
      Returns:
      the subnetMask value.
    • withSubnetMask

      public NicIpSettings withSubnetMask(String subnetMask)
      Set the subnetMask property: Gets or sets the mask.
      Parameters:
      subnetMask - the subnetMask value to set.
      Returns:
      the NicIpSettings object itself.
    • primaryWinsServer

      public String primaryWinsServer()
      Get the primaryWinsServer property: Gets or sets the primary server.
      Returns:
      the primaryWinsServer value.
    • secondaryWinsServer

      public String secondaryWinsServer()
      Get the secondaryWinsServer property: Gets or sets the secondary server.
      Returns:
      the secondaryWinsServer value.
    • ipAddressInfo

      public List<NicIpAddressSettings> ipAddressInfo()
      Get the ipAddressInfo property: Gets or sets the IP address information being reported for this NIC. This contains the same IPv4 information above plus IPV6 information.
      Returns:
      the ipAddressInfo value.
    • validate

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