Package com.vmware.nsx_policy.model
Class TcpMaximumSegmentSizeClamping.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.TcpMaximumSegmentSizeClamping.Builder
-
- Enclosing class:
- TcpMaximumSegmentSizeClamping
public static final class TcpMaximumSegmentSizeClamping.Builder extends java.lang.Object
Builder class forTcpMaximumSegmentSizeClamping
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofTcpMaximumSegmentSizeClamping
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TcpMaximumSegmentSizeClamping
build()
TcpMaximumSegmentSizeClamping.Builder
setDirection(java.lang.String direction)
Possible values are:TcpMaximumSegmentSizeClamping.DIRECTION_NONE
TcpMaximumSegmentSizeClamping.DIRECTION_INBOUND_CONNECTION
TcpMaximumSegmentSizeClamping.DIRECTION_OUTBOUND_CONNECTION
TcpMaximumSegmentSizeClamping.DIRECTION_BOTH
Specifies the traffic direction for which to apply MSS Clamping.TcpMaximumSegmentSizeClamping.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 ofTcpMaximumSegmentSizeClamping
.
-
-
Method Detail
-
setDirection
public TcpMaximumSegmentSizeClamping.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 TcpMaximumSegmentSizeClamping.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 216 to 8960. format: int64- Parameters:
maxSegmentSize
- New value for the property.
-
build
public TcpMaximumSegmentSizeClamping build()
-
-