Package com.vmware.nsx_policy.model
Class NDRAAdvertisedRoute.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.NDRAAdvertisedRoute.Builder
-
- Enclosing class:
- NDRAAdvertisedRoute
public static final class NDRAAdvertisedRoute.Builder extends java.lang.Object
Builder class forNDRAAdvertisedRoute
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofNDRAAdvertisedRoute
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NDRAAdvertisedRoute
build()
NDRAAdvertisedRoute.Builder
setRouteLifetime(java.lang.Long routeLifetime)
Lifetime of advertised route in seconds.NDRAAdvertisedRoute.Builder
setRoutePreference(java.lang.String routePreference)
Possible values are:NDRAAdvertisedRoute.ROUTE_PREFERENCE_LOW
NDRAAdvertisedRoute.ROUTE_PREFERENCE_MEDIUM
NDRAAdvertisedRoute.ROUTE_PREFERENCE_HIGH
NDRAAdvertisedRoute.ROUTE_PREFERENCE_RESERVED
NDRA Route preference.NDRAAdvertisedRoute.Builder
setSubnet(java.lang.String subnet)
Advertised route subnet format: ipv6-cidr-block
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofNDRAAdvertisedRoute
.
-
-
Method Detail
-
setRouteLifetime
public NDRAAdvertisedRoute.Builder setRouteLifetime(java.lang.Long routeLifetime)
Lifetime of advertised route in seconds. format: int64- Parameters:
routeLifetime
- New value for the property.
-
setRoutePreference
public NDRAAdvertisedRoute.Builder setRoutePreference(java.lang.String routePreference)
Possible values are: NDRA Route preference. Indicates preference of the router associated with a prefix over others, when multiple identical prefixes (for different routers) have been received.- Parameters:
routePreference
- New value for the property.
-
setSubnet
public NDRAAdvertisedRoute.Builder setSubnet(java.lang.String subnet)
Advertised route subnet format: ipv6-cidr-block- Parameters:
subnet
- New value for the property.
-
build
public NDRAAdvertisedRoute build()
-
-