Package com.vmware.nsx_policy.model
Class RAConfig.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.RAConfig.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RAConfig
build()
RAConfig.Builder
setHopLimit(java.lang.Long hopLimit)
The maximum number of hops through which packets can pass before being discarded.RAConfig.Builder
setPrefixLifetime(java.lang.Long prefixLifetime)
The time interval in seconds, in which the prefix is advertised as valid.RAConfig.Builder
setPrefixPreferredTime(java.lang.Long prefixPreferredTime)
The time interval in seconds, in which the prefix is advertised as preferred.RAConfig.Builder
setRaInterval(java.lang.Long raInterval)
Interval between 2 Router advertisement in seconds.RAConfig.Builder
setRouterLifetime(java.lang.Long routerLifetime)
Router lifetime value in seconds.RAConfig.Builder
setRouterPreference(java.lang.String routerPreference)
Possible values are:RAConfig.ROUTER_PREFERENCE_LOW
RAConfig.ROUTER_PREFERENCE_MEDIUM
RAConfig.ROUTER_PREFERENCE_HIGH
RAConfig.ROUTER_PREFERENCE_RESERVED
NDRA Router preference value with MEDIUM as default.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofRAConfig
.
-
-
Method Detail
-
setHopLimit
public RAConfig.Builder setHopLimit(java.lang.Long hopLimit)
The maximum number of hops through which packets can pass before being discarded. format: int64- Parameters:
hopLimit
- New value for the property.
-
setPrefixLifetime
public RAConfig.Builder setPrefixLifetime(java.lang.Long prefixLifetime)
The time interval in seconds, in which the prefix is advertised as valid. format: int64- Parameters:
prefixLifetime
- New value for the property.
-
setPrefixPreferredTime
public RAConfig.Builder setPrefixPreferredTime(java.lang.Long prefixPreferredTime)
The time interval in seconds, in which the prefix is advertised as preferred. format: int64- Parameters:
prefixPreferredTime
- New value for the property.
-
setRaInterval
public RAConfig.Builder setRaInterval(java.lang.Long raInterval)
Interval between 2 Router advertisement in seconds. format: int64- Parameters:
raInterval
- New value for the property.
-
setRouterLifetime
public RAConfig.Builder setRouterLifetime(java.lang.Long routerLifetime)
Router lifetime value in seconds. A value of 0 indicates the router is not a default router for the receiving end. Any other value in this field specifies the lifetime, in seconds, associated with this router as a default router. format: int64- Parameters:
routerLifetime
- New value for the property.
-
setRouterPreference
public RAConfig.Builder setRouterPreference(java.lang.String routerPreference)
Possible values are: NDRA Router preference value with MEDIUM as default. If the router_lifetime is 0, the preference must be set to MEDIUM.- Parameters:
routerPreference
- New value for the property.
-
build
public RAConfig build()
-
-