Constructor and Description |
---|
Builder()
Constructor with parameters for the required properties of
Interface . |
Modifier and Type | Method and Description |
---|---|
Interface |
build() |
Interface.Builder |
setIpv4(Ipv4 ipv4)
IPv4 Address information.
|
Interface.Builder |
setIpv6(Ipv6 ipv6)
IPv6 Address information.
|
Interface.Builder |
setMac(java.lang.String mac)
MAC address.
|
Interface.Builder |
setName(java.lang.String name)
Interface name, for example, "nic0", "nic1".
|
Interface.Builder |
setStatus(Interface.InterfaceStatus status)
Interface status.
|
public Builder()
Interface
.public Interface.Builder setName(java.lang.String name)
Set
, the name was never setname
- New value for the property.public Interface.Builder setStatus(Interface.InterfaceStatus status)
Set
, the name was never setstatus
- New value for the property.public Interface.Builder setMac(java.lang.String mac)
Set
, the mac was never setmac
- New value for the property.public Interface.Builder setIpv4(Ipv4 ipv4)
Set
IPv4 is not set.ipv4
- New value for the property.public Interface.Builder setIpv6(Ipv6 ipv6)
Set
IPv6 is not set.ipv6
- New value for the property.public Interface build()