Class NetworkInterface
- java.lang.Object
-
- com.amazonaws.services.storagegateway.model.NetworkInterface
-
- All Implemented Interfaces:
Serializable,Cloneable
public class NetworkInterface extends Object implements Serializable, Cloneable
Describes a gateway's network interface.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NetworkInterface()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NetworkInterfaceclone()booleanequals(Object obj)StringgetIpv4Address()The Internet Protocol version 4 (IPv4) address of the interface.StringgetIpv6Address()The Internet Protocol version 6 (IPv6) address of the interface.StringgetMacAddress()The Media Access Control (MAC) address of the interface.inthashCode()voidsetIpv4Address(String ipv4Address)The Internet Protocol version 4 (IPv4) address of the interface.voidsetIpv6Address(String ipv6Address)The Internet Protocol version 6 (IPv6) address of the interface.voidsetMacAddress(String macAddress)The Media Access Control (MAC) address of the interface.StringtoString()Returns a string representation of this object; useful for testing and debugging.NetworkInterfacewithIpv4Address(String ipv4Address)The Internet Protocol version 4 (IPv4) address of the interface.NetworkInterfacewithIpv6Address(String ipv6Address)The Internet Protocol version 6 (IPv6) address of the interface.NetworkInterfacewithMacAddress(String macAddress)The Media Access Control (MAC) address of the interface.
-
-
-
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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public NetworkInterface clone()
-
-