Package com.vmware.nsx_policy.model
Class TransportInfo.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.TransportInfo.Builder
-
- Enclosing class:
- TransportInfo
public static final class TransportInfo.Builder extends java.lang.Object
Builder class forTransportInfo
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofTransportInfo
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TransportInfo
build()
TransportInfo.Builder
setDstPort(java.lang.Long dstPort)
Destination port format: int64TransportInfo.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 layerTransportInfo.Builder
setSpi(java.lang.Long spi)
Security Parameter Index is to uniquely identify a particular IPSec Security Association format: int64TransportInfo.Builder
setSrcPort(java.lang.Long srcPort)
Source port format: int64
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofTransportInfo
.
-
-
Method Detail
-
setDstPort
public TransportInfo.Builder setDstPort(java.lang.Long dstPort)
Destination port format: int64- Parameters:
dstPort
- New value for the property.
-
setProtocol
public TransportInfo.Builder setProtocol(java.lang.String protocol)
Possible values are: Protocol type over IP layer- Parameters:
protocol
- New value for the property.
-
setSpi
public TransportInfo.Builder setSpi(java.lang.Long spi)
Security Parameter Index is to uniquely identify a particular IPSec Security Association format: int64- Parameters:
spi
- New value for the property.
-
setSrcPort
public TransportInfo.Builder setSrcPort(java.lang.Long srcPort)
Source port format: int64- Parameters:
srcPort
- New value for the property.
-
build
public TransportInfo build()
-
-