Class NetworkAdapter

java.lang.Object
com.azure.resourcemanager.databoxedge.models.NetworkAdapter

public final class NetworkAdapter extends Object
Represents the networkAdapter on a device.
  • Constructor Details

    • NetworkAdapter

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

    • adapterId

      public String adapterId()
      Get the adapterId property: Instance ID of network adapter.
      Returns:
      the adapterId value.
    • adapterPosition

      public NetworkAdapterPosition adapterPosition()
      Get the adapterPosition property: Hardware position of network adapter.
      Returns:
      the adapterPosition value.
    • index

      public Integer index()
      Get the index property: Logical index of the adapter.
      Returns:
      the index value.
    • nodeId

      public String nodeId()
      Get the nodeId property: Node ID of the network adapter.
      Returns:
      the nodeId value.
    • networkAdapterName

      public String networkAdapterName()
      Get the networkAdapterName property: Network adapter name.
      Returns:
      the networkAdapterName value.
    • label

      public String label()
      Get the label property: Hardware label for the adapter.
      Returns:
      the label value.
    • macAddress

      public String macAddress()
      Get the macAddress property: MAC address.
      Returns:
      the macAddress value.
    • linkSpeed

      public Long linkSpeed()
      Get the linkSpeed property: Link speed.
      Returns:
      the linkSpeed value.
    • status

      public NetworkAdapterStatus status()
      Get the status property: Value indicating whether this adapter is valid.
      Returns:
      the status value.
    • rdmaStatus

      public NetworkAdapterRdmaStatus rdmaStatus()
      Get the rdmaStatus property: Value indicating whether this adapter is RDMA capable.
      Returns:
      the rdmaStatus value.
    • withRdmaStatus

      public NetworkAdapter withRdmaStatus(NetworkAdapterRdmaStatus rdmaStatus)
      Set the rdmaStatus property: Value indicating whether this adapter is RDMA capable.
      Parameters:
      rdmaStatus - the rdmaStatus value to set.
      Returns:
      the NetworkAdapter object itself.
    • dhcpStatus

      public NetworkAdapterDhcpStatus dhcpStatus()
      Get the dhcpStatus property: Value indicating whether this adapter has DHCP enabled.
      Returns:
      the dhcpStatus value.
    • withDhcpStatus

      public NetworkAdapter withDhcpStatus(NetworkAdapterDhcpStatus dhcpStatus)
      Set the dhcpStatus property: Value indicating whether this adapter has DHCP enabled.
      Parameters:
      dhcpStatus - the dhcpStatus value to set.
      Returns:
      the NetworkAdapter object itself.
    • ipv4Configuration

      public Ipv4Config ipv4Configuration()
      Get the ipv4Configuration property: The IPv4 configuration of the network adapter.
      Returns:
      the ipv4Configuration value.
    • ipv6Configuration

      public Ipv6Config ipv6Configuration()
      Get the ipv6Configuration property: The IPv6 configuration of the network adapter.
      Returns:
      the ipv6Configuration value.
    • ipv6LinkLocalAddress

      public String ipv6LinkLocalAddress()
      Get the ipv6LinkLocalAddress property: The IPv6 local address.
      Returns:
      the ipv6LinkLocalAddress value.
    • dnsServers

      public List<String> dnsServers()
      Get the dnsServers property: The list of DNS Servers of the device.
      Returns:
      the dnsServers value.
    • validate

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