Class NetworkInterface

java.lang.Object
io.micronaut.discovery.cloud.NetworkInterface
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
DigitalOceanNetworkInterface

public class NetworkInterface extends Object implements Serializable
Represents information about a network interface in the Cloud.
Since:
1.0
Author:
rvanderwerf, Graeme Rocher
See Also:
  • Constructor Details

    • NetworkInterface

      public NetworkInterface()
  • Method Details

    • getIpv4

      public String getIpv4()
      Returns:
      The IPv4 address
    • getIpv6

      public String getIpv6()
      Returns:
      The IPv6 address
    • getName

      public String getName()
      Returns:
      Name of the Network interface
    • getMac

      public String getMac()
      Returns:
      The MAC address
    • getId

      public String getId()
      Returns:
      The ID of network interface
    • getGateway

      public String getGateway()
      Returns:
      The gateway
    • getNetwork

      public String getNetwork()
      Returns:
      The network
    • getNetmask

      public String getNetmask()
      Returns:
      The network mask
    • setIpv4

      protected void setIpv4(String ipv4)
      Parameters:
      ipv4 - The IPv4 address
    • setIpv6

      protected void setIpv6(String ipv6)
      Parameters:
      ipv6 - The IPv6 address
    • setName

      protected void setName(String name)
      Parameters:
      name - The name
    • setMac

      protected void setMac(String mac)
      Parameters:
      mac - The MAC address
    • setId

      protected void setId(String id)
      Parameters:
      id - The ID of network interface
    • setGateway

      protected void setGateway(String gateway)
      Parameters:
      gateway - The network gateway
    • setNetwork

      protected void setNetwork(String network)
      Parameters:
      network - The network
    • setNetmask

      protected void setNetmask(String netmask)
      Parameters:
      netmask - The network mask