Package com.vmware.nsx_policy.model
Class L2TcpMaxSegmentSizeClamping.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.L2TcpMaxSegmentSizeClamping.Builder
-
- Enclosing class:
- L2TcpMaxSegmentSizeClamping
public static final class L2TcpMaxSegmentSizeClamping.Builder extends java.lang.Object
Builder class forL2TcpMaxSegmentSizeClamping
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofL2TcpMaxSegmentSizeClamping
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description L2TcpMaxSegmentSizeClamping
build()
L2TcpMaxSegmentSizeClamping.Builder
setDirection(java.lang.String direction)
Possible values are:L2TcpMaxSegmentSizeClamping.DIRECTION_NONE
L2TcpMaxSegmentSizeClamping.DIRECTION_BOTH
Specifies the traffic direction for which to apply MSS Clamping.L2TcpMaxSegmentSizeClamping.Builder
setMaxSegmentSize(java.lang.Long maxSegmentSize)
MSS defines the maximum amount of data that a host is willing to accept in a single TCP segment.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofL2TcpMaxSegmentSizeClamping
.
-
-
Method Detail
-
setDirection
public L2TcpMaxSegmentSizeClamping.Builder setDirection(java.lang.String direction)
Possible values are: Specifies the traffic direction for which to apply MSS Clamping.- Parameters:
direction
- New value for the property.
-
setMaxSegmentSize
public L2TcpMaxSegmentSizeClamping.Builder setMaxSegmentSize(java.lang.Long maxSegmentSize)
MSS defines the maximum amount of data that a host is willing to accept in a single TCP segment. This field is set in TCP header during connection establishment. To avoid packet fragmentation, you can set this field depending on uplink MTU and VPN overhead. This is an optional field and in case it is left unconfigured, best possible MSS value will be calculated based on effective mtu of uplink interface. Supported MSS range is 108 to 8852. format: int64- Parameters:
maxSegmentSize
- New value for the property.
-
build
public L2TcpMaxSegmentSizeClamping build()
-
-