Package com.vmware.nsx_policy.model
Class L2VPNTunnelEncapsulation.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.L2VPNTunnelEncapsulation.Builder
-
- Enclosing class:
- L2VPNTunnelEncapsulation
public static final class L2VPNTunnelEncapsulation.Builder extends java.lang.ObjectBuilder class forL2VPNTunnelEncapsulation.
-
-
Constructor Summary
Constructors Constructor Description Builder()Constructor with parameters for the required properties ofL2VPNTunnelEncapsulation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description L2VPNTunnelEncapsulationbuild()L2VPNTunnelEncapsulation.BuildersetLocalEndpointAddress(java.lang.String localEndpointAddress)IP Address of the local tunnel port.L2VPNTunnelEncapsulation.BuildersetPeerEndpointAddress(java.lang.String peerEndpointAddress)IP Address of the peer tunnel port.L2VPNTunnelEncapsulation.BuildersetProtocol(java.lang.String protocol)Possible values are:L2VPNTunnelEncapsulation.PROTOCOL_GREEncapsulation protocol used by the tunnel.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofL2VPNTunnelEncapsulation.
-
-
Method Detail
-
setLocalEndpointAddress
public L2VPNTunnelEncapsulation.Builder setLocalEndpointAddress(java.lang.String localEndpointAddress)
IP Address of the local tunnel port. This property only applies in CLIENT mode. format: ipv4 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:
localEndpointAddress- New value for the property.
-
setPeerEndpointAddress
public L2VPNTunnelEncapsulation.Builder setPeerEndpointAddress(java.lang.String peerEndpointAddress)
IP Address of the peer tunnel port. This property only applies in CLIENT mode. format: ipv4 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:
peerEndpointAddress- New value for the property.
-
setProtocol
public L2VPNTunnelEncapsulation.Builder setProtocol(java.lang.String protocol)
Possible values are: Encapsulation protocol used by the 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:
protocol- New value for the property.
-
build
public L2VPNTunnelEncapsulation build()
-
-