public static interface ServicePort.Builder
| Modifier and Type | Method and Description |
|---|---|
ServicePort.Builder |
addressPairs(Set<AddressPair> addressPairs)
Returns service port builder with the supplied address pairs.
|
ServicePort |
build()
Builds an immutable service port instance.
|
ServicePort.Builder |
id(PortId id)
Returns service port builder with the supplied identifier.
|
ServicePort.Builder |
ip(org.onlab.packet.IpAddress ip)
Returns service port builder with the supplied IP address.
|
ServicePort.Builder |
mac(org.onlab.packet.MacAddress mac)
Returns service port builder with the supplied MAC address.
|
ServicePort.Builder |
name(String name)
Returns service port builder with the supplied name.
|
ServicePort.Builder |
networkId(NetworkId networkId)
Returns service port builder with the supplied network identifier.
|
ServicePort.Builder |
vlanId(org.onlab.packet.VlanId vlanId)
Returns service port builder with the supplied VLAN.
|
ServicePort build()
ServicePort.Builder id(PortId id)
id - port idServicePort.Builder name(String name)
name - port nameServicePort.Builder networkId(NetworkId networkId)
networkId - network idServicePort.Builder mac(org.onlab.packet.MacAddress mac)
mac - mac addressServicePort.Builder ip(org.onlab.packet.IpAddress ip)
ip - ip addressServicePort.Builder vlanId(org.onlab.packet.VlanId vlanId)
vlanId - vlan idServicePort.Builder addressPairs(Set<AddressPair> addressPairs)
addressPairs - set of address pairCopyright © 2018. All rights reserved.