public static final class BFDProperties.Builder
extends java.lang.Object
BFDProperties
.Constructor and Description |
---|
Builder()
Constructor with parameters for the required properties of
BFDProperties . |
Modifier and Type | Method and Description |
---|---|
BFDProperties |
build() |
BFDProperties.Builder |
setActive(java.lang.Boolean active)
True if tunnel is active in a gateway HA setup
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
BFDProperties.Builder |
setBfdEncap(java.lang.String bfdEncap)
Possible values are:
BFDProperties.BFD_ENCAP_GENEVE BFDProperties.BFD_ENCAP_NONE BFDProperties.BFD_ENCAP_UNKNOWN_ENCAP The
encapsulation type of BFD. |
BFDProperties.Builder |
setDiagnostic(java.lang.String diagnostic)
A short message indicating what the BFD session thinks is wrong in case of a
problem
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
BFDProperties.Builder |
setForwarding(java.lang.Boolean forwarding)
True if the BFD session believes this interface may be used to forward traffic
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
BFDProperties.Builder |
setRemoteDiagnostic(java.lang.String remoteDiagnostic)
A short message indicating what the remote interface's BFD session thinks is
wrong in case of a problem
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
BFDProperties.Builder |
setRemoteState(java.lang.String remoteState)
Possible values are:
BFDProperties.REMOTE_STATE_UNKNOWN_STATE BFDProperties.REMOTE_STATE_ADMIN_DOWN BFDProperties.REMOTE_STATE_DOWN BFDProperties.REMOTE_STATE_INIT BFDProperties.REMOTE_STATE_UP State of the
remote interface's BFD session
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored. |
BFDProperties.Builder |
setState(java.lang.String state)
Possible values are:
BFDProperties.STATE_UNKNOWN_STATE BFDProperties.STATE_ADMIN_DOWN BFDProperties.STATE_DOWN BFDProperties.STATE_INIT BFDProperties.STATE_UP State of the BFD session
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored. |
public Builder()
BFDProperties
.public BFDProperties.Builder setActive(java.lang.Boolean active)
active
- New value for the property.public BFDProperties.Builder setBfdEncap(java.lang.String bfdEncap)
bfdEncap
- New value for the property.public BFDProperties.Builder setDiagnostic(java.lang.String diagnostic)
diagnostic
- New value for the property.public BFDProperties.Builder setForwarding(java.lang.Boolean forwarding)
forwarding
- New value for the property.public BFDProperties.Builder setRemoteDiagnostic(java.lang.String remoteDiagnostic)
remoteDiagnostic
- New value for the property.public BFDProperties.Builder setRemoteState(java.lang.String remoteState)
remoteState
- New value for the property.public BFDProperties.Builder setState(java.lang.String state)
state
- New value for the property.public BFDProperties build()