Package com.vmware.nsx_policy.model
Class EthernetHeader.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.EthernetHeader.Builder
-
- Enclosing class:
- EthernetHeader
public static final class EthernetHeader.Builder extends java.lang.Object
Builder class forEthernetHeader
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofEthernetHeader
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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})$\".
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofEthernetHeader
.
-
-
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.
-
build
public EthernetHeader build()
-
-