public static final class BinaryPacketData.Builder
extends java.lang.Object
BinaryPacketData
.Constructor and Description |
---|
Builder()
Constructor with parameters for the required properties of
BinaryPacketData . |
Modifier and Type | Method and Description |
---|---|
BinaryPacketData |
build() |
BinaryPacketData.Builder |
setFrameSize(java.lang.Long frameSize)
If the requested frame_size is too small (given the payload and traceflow
metadata requirement of 16 bytes), the traceflow request will fail with an
appropriate message.
|
BinaryPacketData.Builder |
setPayload(java.lang.String payload)
Up to 1000 bytes of payload may be supplied (with a base64-encoded length of
1336 bytes.) Additional bytes of traceflow metadata will be appended to the
payload.
|
BinaryPacketData.Builder |
setRouted(java.lang.Boolean routed)
When this flag is set, traceflow packet will have its destination overwritten as
the gateway address of the logical router to which the source logical switch is
connected.
|
BinaryPacketData.Builder |
setTransportType(java.lang.String transportType)
Possible values are:
PacketData.TRANSPORT_TYPE_BROADCAST PacketData.TRANSPORT_TYPE_UNICAST PacketData.TRANSPORT_TYPE_MULTICAST PacketData.TRANSPORT_TYPE_UNKNOWN This type
takes effect only for IP packet. |
public Builder()
BinaryPacketData
.public BinaryPacketData.Builder setPayload(java.lang.String payload)
payload
- New value for the property.public BinaryPacketData.Builder setFrameSize(java.lang.Long frameSize)
frameSize
- New value for the property.public BinaryPacketData.Builder setRouted(java.lang.Boolean routed)
routed
- New value for the property.public BinaryPacketData.Builder setTransportType(java.lang.String transportType)
transportType
- New value for the property.public BinaryPacketData build()