Class NetworkInterface

    • Constructor Detail

      • NetworkInterface

        public NetworkInterface()
    • Method Detail

      • setIpv4Address

        public void setIpv4Address​(String ipv4Address)

        The Internet Protocol version 4 (IPv4) address of the interface.

        Parameters:
        ipv4Address - The Internet Protocol version 4 (IPv4) address of the interface.
      • getIpv4Address

        public String getIpv4Address()

        The Internet Protocol version 4 (IPv4) address of the interface.

        Returns:
        The Internet Protocol version 4 (IPv4) address of the interface.
      • withIpv4Address

        public NetworkInterface withIpv4Address​(String ipv4Address)

        The Internet Protocol version 4 (IPv4) address of the interface.

        Parameters:
        ipv4Address - The Internet Protocol version 4 (IPv4) address of the interface.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setMacAddress

        public void setMacAddress​(String macAddress)

        The Media Access Control (MAC) address of the interface.

        This is currently unsupported and will not be returned in output.

        Parameters:
        macAddress - The Media Access Control (MAC) address of the interface.

        This is currently unsupported and will not be returned in output.

      • getMacAddress

        public String getMacAddress()

        The Media Access Control (MAC) address of the interface.

        This is currently unsupported and will not be returned in output.

        Returns:
        The Media Access Control (MAC) address of the interface.

        This is currently unsupported and will not be returned in output.

      • withMacAddress

        public NetworkInterface withMacAddress​(String macAddress)

        The Media Access Control (MAC) address of the interface.

        This is currently unsupported and will not be returned in output.

        Parameters:
        macAddress - The Media Access Control (MAC) address of the interface.

        This is currently unsupported and will not be returned in output.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setIpv6Address

        public void setIpv6Address​(String ipv6Address)

        The Internet Protocol version 6 (IPv6) address of the interface. Currently not supported.

        Parameters:
        ipv6Address - The Internet Protocol version 6 (IPv6) address of the interface. Currently not supported.
      • getIpv6Address

        public String getIpv6Address()

        The Internet Protocol version 6 (IPv6) address of the interface. Currently not supported.

        Returns:
        The Internet Protocol version 6 (IPv6) address of the interface. Currently not supported.
      • withIpv6Address

        public NetworkInterface withIpv6Address​(String ipv6Address)

        The Internet Protocol version 6 (IPv6) address of the interface. Currently not supported.

        Parameters:
        ipv6Address - The Internet Protocol version 6 (IPv6) address of the interface. Currently not supported.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • toString

        public String toString()
        Returns a string representation of this object; useful for testing and debugging.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object