Package com.vmware.nsx_policy.model
Class L2VPNSessionTransportTunnelPeerCode.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.L2VPNSessionTransportTunnelPeerCode.Builder
-
- Enclosing class:
- L2VPNSessionTransportTunnelPeerCode
public static final class L2VPNSessionTransportTunnelPeerCode.Builder extends java.lang.Object
Builder class forL2VPNSessionTransportTunnelPeerCode
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofL2VPNSessionTransportTunnelPeerCode
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description L2VPNSessionTransportTunnelPeerCode
build()
L2VPNSessionTransportTunnelPeerCode.Builder
setPeerCode(java.lang.String peerCode)
Peer code represents a base64 encoded string which has all the configuration for tunnel.L2VPNSessionTransportTunnelPeerCode.Builder
setTransportTunnelPath(java.lang.String transportTunnelPath)
Policy Path referencing the transport tunnel.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofL2VPNSessionTransportTunnelPeerCode
.
-
-
Method Detail
-
setPeerCode
public L2VPNSessionTransportTunnelPeerCode.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. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
peerCode
- New value for the property.
-
setTransportTunnelPath
public L2VPNSessionTransportTunnelPeerCode.Builder setTransportTunnelPath(java.lang.String transportTunnelPath)
Policy Path referencing the transport tunnel. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
transportTunnelPath
- New value for the property.
-
build
public L2VPNSessionTransportTunnelPeerCode build()
-
-