Class NetworkInterface

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

public final class NetworkInterface extends Object
Network Interface model.
  • Constructor Details

    • NetworkInterface

      public NetworkInterface()
  • Method Details

    • name

      public String name()
      Get the name property: Gets or sets the name of the network interface.
      Returns:
      the name value.
    • withName

      public NetworkInterface withName(String name)
      Set the name property: Gets or sets the name of the network interface.
      Parameters:
      name - the name value to set.
      Returns:
      the NetworkInterface object itself.
    • label

      public String label()
      Get the label property: Gets or sets the label of the virtual network in vCenter that the nic is connected to.
      Returns:
      the label value.
    • ipAddresses

      public List<String> ipAddresses()
      Get the ipAddresses property: Gets or sets the nic ip addresses.
      Returns:
      the ipAddresses value.
    • macAddress

      public String macAddress()
      Get the macAddress property: Gets or sets the NIC MAC address.
      Returns:
      the macAddress value.
    • networkId

      public String networkId()
      Get the networkId property: Gets or sets the ARM Id of the network resource to connect the virtual machine.
      Returns:
      the networkId value.
    • withNetworkId

      public NetworkInterface withNetworkId(String networkId)
      Set the networkId property: Gets or sets the ARM Id of the network resource to connect the virtual machine.
      Parameters:
      networkId - the networkId value to set.
      Returns:
      the NetworkInterface object itself.
    • nicType

      public NicType nicType()
      Get the nicType property: NIC type.
      Returns:
      the nicType value.
    • withNicType

      public NetworkInterface withNicType(NicType nicType)
      Set the nicType property: NIC type.
      Parameters:
      nicType - the nicType value to set.
      Returns:
      the NetworkInterface object itself.
    • powerOnBoot

      public PowerOnBootOption powerOnBoot()
      Get the powerOnBoot property: Gets or sets the power on boot.
      Returns:
      the powerOnBoot value.
    • withPowerOnBoot

      public NetworkInterface withPowerOnBoot(PowerOnBootOption powerOnBoot)
      Set the powerOnBoot property: Gets or sets the power on boot.
      Parameters:
      powerOnBoot - the powerOnBoot value to set.
      Returns:
      the NetworkInterface object itself.
    • networkMoRefId

      public String networkMoRefId()
      Get the networkMoRefId property: Gets or sets the vCenter MoRef (Managed Object Reference) ID of the virtual network that the nic is connected to.
      Returns:
      the networkMoRefId value.
    • networkMoName

      public String networkMoName()
      Get the networkMoName property: Gets or sets the name of the virtual network in vCenter that the nic is connected to.
      Returns:
      the networkMoName value.
    • deviceKey

      public Integer deviceKey()
      Get the deviceKey property: Gets or sets the device key value.
      Returns:
      the deviceKey value.
    • withDeviceKey

      public NetworkInterface withDeviceKey(Integer deviceKey)
      Set the deviceKey property: Gets or sets the device key value.
      Parameters:
      deviceKey - the deviceKey value to set.
      Returns:
      the NetworkInterface object itself.
    • ipSettings

      public NicIpSettings ipSettings()
      Get the ipSettings property: Gets or sets the ipsettings.
      Returns:
      the ipSettings value.
    • withIpSettings

      public NetworkInterface withIpSettings(NicIpSettings ipSettings)
      Set the ipSettings property: Gets or sets the ipsettings.
      Parameters:
      ipSettings - the ipSettings value to set.
      Returns:
      the NetworkInterface object itself.
    • validate

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