Package com.vmware.nsx_policy.model
Class RouteMapEntrySet.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.RouteMapEntrySet.Builder
-
- Enclosing class:
- RouteMapEntrySet
public static final class RouteMapEntrySet.Builder extends java.lang.ObjectBuilder class forRouteMapEntrySet.
-
-
Constructor Summary
Constructors Constructor Description Builder()Constructor with parameters for the required properties ofRouteMapEntrySet.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RouteMapEntrySetbuild()RouteMapEntrySet.BuildersetAsPathPrepend(java.lang.String asPathPrepend)AS path prepend to influence route selection.RouteMapEntrySet.BuildersetCommunity(java.lang.String community)Set BGP regular or large community for matching routes.RouteMapEntrySet.BuildersetLocalPreference(java.lang.Long localPreference)Local preference indicates the degree of preference for one BGP route over other BGP routes.RouteMapEntrySet.BuildersetMed(java.lang.Long med)Multi exit descriminator (MED) is a hint to BGP neighbors about the preferred path into an autonomous system (AS) that has multiple entry points.RouteMapEntrySet.BuildersetPreferGlobalV6NextHop(java.lang.Boolean preferGlobalV6NextHop)For incoming and import route_maps on receiving both v6 global and v6 link-local address for the route, prefer to use the global address as the next hop.RouteMapEntrySet.BuildersetWeight(java.lang.Long weight)Weight is used to select a route when multiple routes are available to the same network.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofRouteMapEntrySet.
-
-
Method Detail
-
setAsPathPrepend
public RouteMapEntrySet.Builder setAsPathPrepend(java.lang.String asPathPrepend)
AS path prepend to influence route selection.- Parameters:
asPathPrepend- New value for the property.
-
setCommunity
public RouteMapEntrySet.Builder setCommunity(java.lang.String community)
Set BGP regular or large community for matching routes. A maximum of one value for each community type separated by space. Well-known community name, community value in aa:nn (2byte:2byte) format for regular community and community value in aa:bb:nn (4byte:4byte:4byte) format for large community are supported.- Parameters:
community- New value for the property.
-
setLocalPreference
public RouteMapEntrySet.Builder setLocalPreference(java.lang.Long localPreference)
Local preference indicates the degree of preference for one BGP route over other BGP routes. The path with highest local preference is preferred. format: int64- Parameters:
localPreference- New value for the property.
-
setMed
public RouteMapEntrySet.Builder setMed(java.lang.Long med)
Multi exit descriminator (MED) is a hint to BGP neighbors about the preferred path into an autonomous system (AS) that has multiple entry points. A lower MED value is preferred over a higher value. format: int32- Parameters:
med- New value for the property.
-
setPreferGlobalV6NextHop
public RouteMapEntrySet.Builder setPreferGlobalV6NextHop(java.lang.Boolean preferGlobalV6NextHop)
For incoming and import route_maps on receiving both v6 global and v6 link-local address for the route, prefer to use the global address as the next hop. By default, it prefers the link-local next hop.- Parameters:
preferGlobalV6NextHop- New value for the property.
-
setWeight
public RouteMapEntrySet.Builder setWeight(java.lang.Long weight)
Weight is used to select a route when multiple routes are available to the same network. Route with the highest weight is preferred. format: int32- Parameters:
weight- New value for the property.
-
build
public RouteMapEntrySet build()
-
-