public class DigitalOceanNetworkInterface extends NetworkInterface
NetworkInterface
implementation for Digital Ocean.Constructor and Description |
---|
DigitalOceanNetworkInterface() |
Modifier and Type | Method and Description |
---|---|
int |
getCidr() |
java.lang.String |
getIpv6Gateway() |
void |
setCidr(int cidr) |
protected void |
setGateway(java.lang.String gateway) |
protected void |
setId(java.lang.String id) |
protected void |
setIpv4(java.lang.String ipv4) |
protected void |
setIpv6(java.lang.String ipv6) |
void |
setIpv6Gateway(java.lang.String ipv6Gateway) |
protected void |
setMac(java.lang.String mac) |
protected void |
setName(java.lang.String name) |
protected void |
setNetmask(java.lang.String netmask) |
protected void |
setNetwork(java.lang.String network) |
getGateway, getId, getIpv4, getIpv6, getMac, getName, getNetmask, getNetwork
protected void setIpv4(java.lang.String ipv4)
setIpv4
in class NetworkInterface
ipv4
- The IPv4 addressprotected void setIpv6(java.lang.String ipv6)
setIpv6
in class NetworkInterface
ipv6
- The IPv6 addressprotected void setName(java.lang.String name)
setName
in class NetworkInterface
name
- The nameprotected void setMac(java.lang.String mac)
setMac
in class NetworkInterface
mac
- The MAC addressprotected void setId(java.lang.String id)
setId
in class NetworkInterface
id
- The Id of network interfaceprotected void setGateway(java.lang.String gateway)
setGateway
in class NetworkInterface
gateway
- The network gatewayprotected void setNetwork(java.lang.String network)
setNetwork
in class NetworkInterface
network
- The networkprotected void setNetmask(java.lang.String netmask)
setNetmask
in class NetworkInterface
netmask
- The network maskpublic int getCidr()
public void setCidr(int cidr)
cidr
- the CIDR maskpublic java.lang.String getIpv6Gateway()
public void setIpv6Gateway(java.lang.String ipv6Gateway)
ipv6Gateway
- the IPV6 gateway