public class NetworkInterface
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes a gateway's network interface.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
ipv4Address
The Internet Protocol version 4 (IPv4) address of the interface.
|
private java.lang.String |
ipv6Address
The Internet Protocol version 6 (IPv6) address of the interface.
|
private java.lang.String |
macAddress
The Media Access Control (MAC) address of the interface.
|
Constructor and Description |
---|
NetworkInterface() |
Modifier and Type | Method and Description |
---|---|
NetworkInterface |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getIpv4Address()
The Internet Protocol version 4 (IPv4) address of the interface.
|
java.lang.String |
getIpv6Address()
The Internet Protocol version 6 (IPv6) address of the interface.
|
java.lang.String |
getMacAddress()
The Media Access Control (MAC) address of the interface.
|
int |
hashCode() |
void |
setIpv4Address(java.lang.String ipv4Address)
The Internet Protocol version 4 (IPv4) address of the interface.
|
void |
setIpv6Address(java.lang.String ipv6Address)
The Internet Protocol version 6 (IPv6) address of the interface.
|
void |
setMacAddress(java.lang.String macAddress)
The Media Access Control (MAC) address of the interface.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
NetworkInterface |
withIpv4Address(java.lang.String ipv4Address)
The Internet Protocol version 4 (IPv4) address of the interface.
|
NetworkInterface |
withIpv6Address(java.lang.String ipv6Address)
The Internet Protocol version 6 (IPv6) address of the interface.
|
NetworkInterface |
withMacAddress(java.lang.String macAddress)
The Media Access Control (MAC) address of the interface.
|
private java.lang.String ipv4Address
The Internet Protocol version 4 (IPv4) address of the interface.
private java.lang.String macAddress
The Media Access Control (MAC) address of the interface.
This is currently unsupported and will not be returned in output.
private java.lang.String ipv6Address
The Internet Protocol version 6 (IPv6) address of the interface. Currently not supported.
public void setIpv4Address(java.lang.String ipv4Address)
The Internet Protocol version 4 (IPv4) address of the interface.
ipv4Address
- The Internet Protocol version 4 (IPv4) address of the interface.public java.lang.String getIpv4Address()
The Internet Protocol version 4 (IPv4) address of the interface.
public NetworkInterface withIpv4Address(java.lang.String ipv4Address)
The Internet Protocol version 4 (IPv4) address of the interface.
ipv4Address
- The Internet Protocol version 4 (IPv4) address of the interface.public void setMacAddress(java.lang.String macAddress)
The Media Access Control (MAC) address of the interface.
This is currently unsupported and will not be returned in output.
macAddress
- The Media Access Control (MAC) address of the interface.
This is currently unsupported and will not be returned in output.
public java.lang.String getMacAddress()
The Media Access Control (MAC) address of the interface.
This is currently unsupported and will not be returned in output.
This is currently unsupported and will not be returned in output.
public NetworkInterface withMacAddress(java.lang.String macAddress)
The Media Access Control (MAC) address of the interface.
This is currently unsupported and will not be returned in output.
macAddress
- The Media Access Control (MAC) address of the interface.
This is currently unsupported and will not be returned in output.
public void setIpv6Address(java.lang.String ipv6Address)
The Internet Protocol version 6 (IPv6) address of the interface. Currently not supported.
ipv6Address
- The Internet Protocol version 6 (IPv6) address of the interface.
Currently not supported.public java.lang.String getIpv6Address()
The Internet Protocol version 6 (IPv6) address of the interface. Currently not supported.
public NetworkInterface withIpv6Address(java.lang.String ipv6Address)
The Internet Protocol version 6 (IPv6) address of the interface. Currently not supported.
ipv6Address
- The Internet Protocol version 6 (IPv6) address of the interface.
Currently not supported.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public NetworkInterface clone()
clone
in class java.lang.Object