| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultPortPair.Builder
Builder class for Port pair.
|
| Modifier and Type | Method and Description |
|---|---|
static DefaultPortPair.Builder |
builder()
To create an instance of the builder.
|
String |
description()
Returns the description of this port pair.
|
String |
egress()
Returns the egress port of this port pair.
|
boolean |
equals(Object obj) |
boolean |
exactMatch(PortPair portPair)
Returns whether this port pair is an exact match to the port pair given
in the argument.
|
int |
hashCode() |
String |
ingress()
Returns the ingress port of this port pair.
|
String |
name()
Returns the description of this port pair.
|
PortPairId |
portPairId()
Returns the ID of this port Pair.
|
TenantId |
tenantId()
Returns the tenant id of this port pair.
|
String |
toString() |
public PortPairId portPairId()
PortPairportPairId in interface PortPairpublic TenantId tenantId()
PortPairpublic String name()
PortPairpublic String description()
PortPairdescription in interface PortPairpublic String ingress()
PortPairpublic String egress()
PortPairpublic boolean exactMatch(PortPair portPair)
PortPairExact match means the Port port pairs match with the given port pair. It does not consider the port pair id, name and description.
exactMatch in interface PortPairportPair - other port pair to match againstpublic static DefaultPortPair.Builder builder()