Package com.vmware.nsx_policy.model
Class L2Extension.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.L2Extension.Builder
-
- Enclosing class:
- L2Extension
public static final class L2Extension.Builder extends java.lang.ObjectBuilder class forL2Extension.
-
-
Constructor Summary
Constructors Constructor Description Builder()Constructor with parameters for the required properties ofL2Extension.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description L2Extensionbuild()L2Extension.BuildersetL2vpnPath(java.lang.String l2vpnPath)This property has been deprecated.L2Extension.BuildersetL2vpnPaths(java.util.List<java.lang.String> l2vpnPaths)Policy paths corresponding to the associated L2 VPN sessionsL2Extension.BuildersetLocalEgress(LocalEgress localEgress)L2Extension.BuildersetTunnelId(java.lang.Long tunnelId)Tunnel ID format: int32
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofL2Extension.
-
-
Method Detail
-
setL2vpnPath
public L2Extension.Builder setL2vpnPath(java.lang.String l2vpnPath)
This property has been deprecated. Please use the property l2vpn_paths for setting the paths of associated L2 VPN session. This property will continue to work as expected to provide backwards compatibility. However, when both l2vpn_path and l2vpn_paths properties are specified, only l2vpn_paths is used.- Parameters:
l2vpnPath- New value for the property.
-
setL2vpnPaths
public L2Extension.Builder setL2vpnPaths(java.util.List<java.lang.String> l2vpnPaths)
Policy paths corresponding to the associated L2 VPN sessions- Parameters:
l2vpnPaths- New value for the property.
-
setLocalEgress
public L2Extension.Builder setLocalEgress(LocalEgress localEgress)
- Parameters:
localEgress- New value for the property.
-
setTunnelId
public L2Extension.Builder setTunnelId(java.lang.Long tunnelId)
Tunnel ID format: int32- Parameters:
tunnelId- New value for the property.
-
build
public L2Extension build()
-
-