Package com.vmware.nsx_policy.model
Class L2VPNSessionData.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.L2VPNSessionData.Builder
-
- Enclosing class:
- L2VPNSessionData
public static final class L2VPNSessionData.Builder extends java.lang.Object
Builder class forL2VPNSessionData
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofL2VPNSessionData
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description L2VPNSessionData
build()
L2VPNSessionData.Builder
setDescription(java.lang.String description)
Description of L2VPN SessionL2VPNSessionData.Builder
setDisplayName(java.lang.String displayName)
Defaults to id if not set.L2VPNSessionData.Builder
setEnabled(java.lang.Boolean enabled)
Enable to extend all the associated segments.L2VPNSessionData.Builder
setTransportTunnels(java.util.List<L2VPNSessionTransportTunnelData> transportTunnels)
List of L2VPN transport tunnel data.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofL2VPNSessionData
.
-
-
Method Detail
-
setDescription
public L2VPNSessionData.Builder setDescription(java.lang.String description)
Description of L2VPN Session- Parameters:
description
- New value for the property.
-
setDisplayName
public L2VPNSessionData.Builder setDisplayName(java.lang.String displayName)
Defaults to id if not set.- Parameters:
displayName
- New value for the property.
-
setEnabled
public L2VPNSessionData.Builder setEnabled(java.lang.Boolean enabled)
Enable to extend all the associated segments.- Parameters:
enabled
- New value for the property.
-
setTransportTunnels
public L2VPNSessionData.Builder setTransportTunnels(java.util.List<L2VPNSessionTransportTunnelData> transportTunnels)
List of L2VPN transport tunnel data.- Parameters:
transportTunnels
- New value for the property.
-
build
public L2VPNSessionData build()
-
-