Class EthernetHeader.Builder

  • Enclosing class:
    EthernetHeader

    public static final class EthernetHeader.Builder
    extends java.lang.Object
    Builder class for EthernetHeader.
    • Constructor Detail

      • Builder

        public Builder()
        Constructor with parameters for the required properties of EthernetHeader.
    • Method Detail

      • setDstMac

        public EthernetHeader.Builder setDstMac​(java.lang.String dstMac)
        The destination MAC address of form: \"^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$\". For example: 00:00:00:00:00:00.
        Parameters:
        dstMac - New value for the property.
      • setEthType

        public EthernetHeader.Builder setEthType​(java.lang.Long ethType)
        This field defaults to IPv4. format: int64
        Parameters:
        ethType - New value for the property.
      • setSrcMac

        public EthernetHeader.Builder setSrcMac​(java.lang.String srcMac)
        The source MAC address of form: \"^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$\". For example: 00:00:00:00:00:00.
        Parameters:
        srcMac - New value for the property.