Package com.vmware.nsx_policy.model
Class BgpGracefulRestartConfig.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.BgpGracefulRestartConfig.Builder
-
- Enclosing class:
- BgpGracefulRestartConfig
public static final class BgpGracefulRestartConfig.Builder extends java.lang.Object
Builder class forBgpGracefulRestartConfig
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofBgpGracefulRestartConfig
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BgpGracefulRestartConfig
build()
BgpGracefulRestartConfig.Builder
setMode(java.lang.String mode)
Possible values are:BgpGracefulRestartConfig.MODE_DISABLE
BgpGracefulRestartConfig.MODE_GR_AND_HELPER
BgpGracefulRestartConfig.MODE_HELPER_ONLY
If mode is DISABLE, then graceful restart and helper modes are disabled.BgpGracefulRestartConfig.Builder
setTimer(BgpGracefulRestartTimer timer)
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofBgpGracefulRestartConfig
.
-
-
Method Detail
-
setMode
public BgpGracefulRestartConfig.Builder setMode(java.lang.String mode)
Possible values are: If mode is DISABLE, then graceful restart and helper modes are disabled. If mode is GR_AND_HELPER, then both graceful restart and helper modes are enabled. If mode is HELPER_ONLY, then helper mode is enabled. HELPER_ONLY mode is the ability for a BGP speaker to indicate its ability to preserve forwarding state during BGP restart. GRACEFUL_RESTART mode is the ability of a BGP speaker to advertise its restart to its peers.- Parameters:
mode
- New value for the property.
-
setTimer
public BgpGracefulRestartConfig.Builder setTimer(BgpGracefulRestartTimer timer)
- Parameters:
timer
- New value for the property.
-
build
public BgpGracefulRestartConfig build()
-
-