Class NetworkInterfaceIpConfiguration

java.lang.Object
com.azure.resourcemanager.hybridnetwork.models.NetworkInterfaceIpConfiguration

public final class NetworkInterfaceIpConfiguration extends Object
Network interface IP configuration properties.
  • Constructor Details

    • NetworkInterfaceIpConfiguration

      public NetworkInterfaceIpConfiguration()
      Creates an instance of NetworkInterfaceIpConfiguration class.
  • Method Details

    • ipAllocationMethod

      public IpAllocationMethod ipAllocationMethod()
      Get the ipAllocationMethod property: IP address allocation method.
      Returns:
      the ipAllocationMethod value.
    • withIpAllocationMethod

      public NetworkInterfaceIpConfiguration withIpAllocationMethod(IpAllocationMethod ipAllocationMethod)
      Set the ipAllocationMethod property: IP address allocation method.
      Parameters:
      ipAllocationMethod - the ipAllocationMethod value to set.
      Returns:
      the NetworkInterfaceIpConfiguration object itself.
    • ipAddress

      public String ipAddress()
      Get the ipAddress property: The value of the IP address.
      Returns:
      the ipAddress value.
    • withIpAddress

      public NetworkInterfaceIpConfiguration withIpAddress(String ipAddress)
      Set the ipAddress property: The value of the IP address.
      Parameters:
      ipAddress - the ipAddress value to set.
      Returns:
      the NetworkInterfaceIpConfiguration object itself.
    • subnet

      public String subnet()
      Get the subnet property: The value of the subnet.
      Returns:
      the subnet value.
    • withSubnet

      public NetworkInterfaceIpConfiguration withSubnet(String subnet)
      Set the subnet property: The value of the subnet.
      Parameters:
      subnet - the subnet value to set.
      Returns:
      the NetworkInterfaceIpConfiguration object itself.
    • gateway

      public String gateway()
      Get the gateway property: The value of the gateway.
      Returns:
      the gateway value.
    • withGateway

      public NetworkInterfaceIpConfiguration withGateway(String gateway)
      Set the gateway property: The value of the gateway.
      Parameters:
      gateway - the gateway value to set.
      Returns:
      the NetworkInterfaceIpConfiguration object itself.
    • ipVersion

      public IpVersion ipVersion()
      Get the ipVersion property: IP address version.
      Returns:
      the ipVersion value.
    • withIpVersion

      public NetworkInterfaceIpConfiguration withIpVersion(IpVersion ipVersion)
      Set the ipVersion property: IP address version.
      Parameters:
      ipVersion - the ipVersion value to set.
      Returns:
      the NetworkInterfaceIpConfiguration object itself.
    • dnsServers

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

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

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