Package com.vmware.nsx_policy.model
Class L2VpnTransportTunnelPeerCode.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.L2VpnTransportTunnelPeerCode.Builder
-
- Enclosing class:
- L2VpnTransportTunnelPeerCode
public static final class L2VpnTransportTunnelPeerCode.Builder extends java.lang.ObjectBuilder class forL2VpnTransportTunnelPeerCode.
-
-
Constructor Summary
Constructors Constructor Description Builder()Constructor with parameters for the required properties ofL2VpnTransportTunnelPeerCode.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description L2VpnTransportTunnelPeerCodebuild()L2VpnTransportTunnelPeerCode.BuildersetPeerCode(java.lang.String peerCode)Copy this code to paste on the remote end of the tunnel.L2VpnTransportTunnelPeerCode.BuildersetTransportTunnelPath(java.lang.String transportTunnelPath)Policy path referencing the transport tunnel.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofL2VpnTransportTunnelPeerCode.
-
-
Method Detail
-
setPeerCode
public L2VpnTransportTunnelPeerCode.Builder setPeerCode(java.lang.String peerCode)
Copy this code to paste on the remote end of the tunnel. This is a base64 encoded string which has all the configuration for tunnel. E.g local/remote 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.
-
setTransportTunnelPath
public L2VpnTransportTunnelPeerCode.Builder setTransportTunnelPath(java.lang.String transportTunnelPath)
Policy path referencing the transport tunnel.- Parameters:
transportTunnelPath- New value for the property.
-
build
public L2VpnTransportTunnelPeerCode build()
-
-