public static final class EthernetHeader.Builder
extends java.lang.Object
EthernetHeader.| Constructor and Description |
|---|
Builder()
Constructor with parameters for the required properties of
EthernetHeader. |
| Modifier and Type | Method and Description |
|---|---|
EthernetHeader |
build() |
EthernetHeader.Builder |
setDstMac(java.lang.String dstMac)
The destination MAC address of form:
\"^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$\".
|
EthernetHeader.Builder |
setEthType(java.lang.Long ethType)
This field defaults to IPv4.
|
EthernetHeader.Builder |
setSrcMac(java.lang.String srcMac)
The source MAC address of form: \"^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$\".
|
public Builder()
EthernetHeader.public EthernetHeader.Builder setDstMac(java.lang.String dstMac)
dstMac - New value for the property.public EthernetHeader.Builder setEthType(java.lang.Long ethType)
ethType - New value for the property.public EthernetHeader.Builder setSrcMac(java.lang.String srcMac)
srcMac - New value for the property.public EthernetHeader build()