Package com.vmware.nsx_policy.model
Class SiteOverride.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.SiteOverride.Builder
-
- Enclosing class:
- SiteOverride
public static final class SiteOverride.Builder extends java.lang.Object
Builder class forSiteOverride
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofSiteOverride
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SiteOverride
build()
SiteOverride.Builder
setLocalEndpointPath(java.lang.String localEndpointPath)
Policy path referencing Local endpoint.SiteOverride.Builder
setLocaleServicePath(java.lang.String localeServicePath)
Policy path referencing LocateService where SiteOverride attributes will be appliedSiteOverride.Builder
setPeerAddress(java.lang.String peerAddress)
Public IPV4 or IPV6 address of the remote device terminating the VPN connection.SiteOverride.Builder
setPeerId(java.lang.String peerId)
Peer ID to uniquely identify the peer site.SiteOverride.Builder
setTunnelInterfaces(java.util.List<IPSecVpnTunnelInterface> tunnelInterfaces)
IP Tunnel interfaces.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofSiteOverride
.
-
-
Method Detail
-
setLocalEndpointPath
public SiteOverride.Builder setLocalEndpointPath(java.lang.String localEndpointPath)
Policy path referencing Local endpoint.- Parameters:
localEndpointPath
- New value for the property.
-
setLocaleServicePath
public SiteOverride.Builder setLocaleServicePath(java.lang.String localeServicePath)
Policy path referencing LocateService where SiteOverride attributes will be applied- Parameters:
localeServicePath
- New value for the property.
-
setPeerAddress
public SiteOverride.Builder setPeerAddress(java.lang.String peerAddress)
Public IPV4 or IPV6 address of the remote device terminating the VPN connection. Please note that configuring peer_address as IPv6 address is not supported in the deprecated IPSecVpnSession Patch/PUT APIs. format: ip- Parameters:
peerAddress
- New value for the property.
-
setPeerId
public SiteOverride.Builder setPeerId(java.lang.String peerId)
Peer ID to uniquely identify the peer site. The peer ID is the public IP address of the remote device terminating the VPN tunnel. When NAT is configured for the peer, enter the private IP address of the peer.- Parameters:
peerId
- New value for the property.
-
setTunnelInterfaces
public SiteOverride.Builder setTunnelInterfaces(java.util.List<IPSecVpnTunnelInterface> tunnelInterfaces)
IP Tunnel interfaces. This property is mandatory for RouteBasedIpSecVpn session.- Parameters:
tunnelInterfaces
- New value for the property.
-
build
public SiteOverride build()
-
-