Package com.vmware.nsx_policy.model
Class TunnelAddress.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.TunnelAddress.Builder
-
- Enclosing class:
- TunnelAddress
public static final class TunnelAddress.Builder extends java.lang.Object
Builder class forTunnelAddress
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofTunnelAddress
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TunnelAddress
build()
TunnelAddress.Builder
setEdgePath(java.lang.String edgePath)
policy path of edge node where tunnel will be realized with the subnet specified.TunnelAddress.Builder
setSourceAddress(java.lang.String sourceAddress)
Specify IPv4 source addresses as the tunnel local end point addresses.TunnelAddress.Builder
setTunnelInterfaceSubnet(java.util.List<InterfaceSubnet> tunnelInterfaceSubnet)
IP addresses in CIDR format for both IP4 and IPv6 assigned to tunnel interface on a given edge node
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofTunnelAddress
.
-
-
Method Detail
-
setEdgePath
public TunnelAddress.Builder setEdgePath(java.lang.String edgePath)
policy path of edge node where tunnel will be realized with the subnet specified.- Parameters:
edgePath
- New value for the property.
-
setSourceAddress
public TunnelAddress.Builder setSourceAddress(java.lang.String sourceAddress)
Specify IPv4 source addresses as the tunnel local end point addresses. format: ipv4- Parameters:
sourceAddress
- New value for the property.
-
setTunnelInterfaceSubnet
public TunnelAddress.Builder setTunnelInterfaceSubnet(java.util.List<InterfaceSubnet> tunnelInterfaceSubnet)
IP addresses in CIDR format for both IP4 and IPv6 assigned to tunnel interface on a given edge node- Parameters:
tunnelInterfaceSubnet
- New value for the property.
-
build
public TunnelAddress build()
-
-