Package com.vmware.nsx_policy.model
Class L2VPNSessionTransportTunnelData.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.L2VPNSessionTransportTunnelData.Builder
-
- Enclosing class:
- L2VPNSessionTransportTunnelData
public static final class L2VPNSessionTransportTunnelData.Builder extends java.lang.Object
Builder class forL2VPNSessionTransportTunnelData
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofL2VPNSessionTransportTunnelData
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description L2VPNSessionTransportTunnelData
build()
L2VPNSessionTransportTunnelData.Builder
setLocalAddress(java.lang.String localAddress)
IPv4 Address of local endpoint.L2VPNSessionTransportTunnelData.Builder
setPeerAddress(java.lang.String peerAddress)
IPv4 Address of Peer endpoint on remote site.L2VPNSessionTransportTunnelData.Builder
setPeerCode(java.lang.String peerCode)
Peer code represents a base64 encoded string which has all the configuration for tunnel.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofL2VPNSessionTransportTunnelData
.
-
-
Method Detail
-
setLocalAddress
public L2VPNSessionTransportTunnelData.Builder setLocalAddress(java.lang.String localAddress)
IPv4 Address of local endpoint. format: ipv4- Parameters:
localAddress
- New value for the property.
-
setPeerAddress
public L2VPNSessionTransportTunnelData.Builder setPeerAddress(java.lang.String peerAddress)
IPv4 Address of Peer endpoint on remote site. format: ipv4- Parameters:
peerAddress
- New value for the property.
-
setPeerCode
public L2VPNSessionTransportTunnelData.Builder setPeerCode(java.lang.String peerCode)
Peer code represents a base64 encoded string which has all the configuration for tunnel. E.g local/peer ips and protocol, encryption algorithm, etc. Peer code also contains PSK; be careful when sharing or storing it.- Parameters:
peerCode
- New value for the property.
-
build
public L2VPNSessionTransportTunnelData build()
-
-