public static final class TransportInfo.Builder
extends java.lang.Object
TransportInfo
.Constructor and Description |
---|
Builder()
Constructor with parameters for the required properties of
TransportInfo . |
Modifier and Type | Method and Description |
---|---|
TransportInfo |
build() |
TransportInfo.Builder |
setDstPort(java.lang.Long dstPort)
Destination port format: int64
|
TransportInfo.Builder |
setProtocol(java.lang.String protocol)
Possible values are:
TransportInfo.PROTOCOL_TCP TransportInfo.PROTOCOL_UDP TransportInfo.PROTOCOL_ICMPV4 TransportInfo.PROTOCOL_ICMPV6 TransportInfo.PROTOCOL_ESP Protocol type over
IP layer |
TransportInfo.Builder |
setSpi(java.lang.Long spi)
Security Parameter Index is to uniquely identify a particular IPSec Security
Association format: int64
|
TransportInfo.Builder |
setSrcPort(java.lang.Long srcPort)
Source port format: int64
|
public Builder()
TransportInfo
.public TransportInfo.Builder setDstPort(java.lang.Long dstPort)
dstPort
- New value for the property.public TransportInfo.Builder setProtocol(java.lang.String protocol)
protocol
- New value for the property.public TransportInfo.Builder setSpi(java.lang.Long spi)
spi
- New value for the property.public TransportInfo.Builder setSrcPort(java.lang.Long srcPort)
srcPort
- New value for the property.public TransportInfo build()