Class NetworkInterface

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

public final class NetworkInterface extends Object
Network interface properties.
  • Constructor Details

    • NetworkInterface

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

    • networkInterfaceName

      public String networkInterfaceName()
      Get the networkInterfaceName property: The name of the network interface.
      Returns:
      the networkInterfaceName value.
    • withNetworkInterfaceName

      public NetworkInterface withNetworkInterfaceName(String networkInterfaceName)
      Set the networkInterfaceName property: The name of the network interface.
      Parameters:
      networkInterfaceName - the networkInterfaceName value to set.
      Returns:
      the NetworkInterface object itself.
    • macAddress

      public String macAddress()
      Get the macAddress property: The MAC address of the network interface.
      Returns:
      the macAddress value.
    • withMacAddress

      public NetworkInterface withMacAddress(String macAddress)
      Set the macAddress property: The MAC address of the network interface.
      Parameters:
      macAddress - the macAddress value to set.
      Returns:
      the NetworkInterface object itself.
    • ipConfigurations

      public List<NetworkInterfaceIpConfiguration> ipConfigurations()
      Get the ipConfigurations property: A list of IP configurations of the network interface.
      Returns:
      the ipConfigurations value.
    • withIpConfigurations

      public NetworkInterface withIpConfigurations(List<NetworkInterfaceIpConfiguration> ipConfigurations)
      Set the ipConfigurations property: A list of IP configurations of the network interface.
      Parameters:
      ipConfigurations - the ipConfigurations value to set.
      Returns:
      the NetworkInterface object itself.
    • vmSwitchType

      public VMSwitchType vmSwitchType()
      Get the vmSwitchType property: The type of the VM switch.
      Returns:
      the vmSwitchType value.
    • withVmSwitchType

      public NetworkInterface withVmSwitchType(VMSwitchType vmSwitchType)
      Set the vmSwitchType property: The type of the VM switch.
      Parameters:
      vmSwitchType - the vmSwitchType value to set.
      Returns:
      the NetworkInterface object itself.
    • validate

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