Package com.vmware.nsx_policy.model
Class BFDProperties.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.BFDProperties.Builder
-
- Enclosing class:
- BFDProperties
public static final class BFDProperties.Builder extends java.lang.Object
Builder class forBFDProperties
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofBFDProperties
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofBFDProperties
.
-
-
Method Detail
-
setActive
public 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.- Parameters:
active
- New value for the property.
-
setBfdEncap
public BFDProperties.Builder setBfdEncap(java.lang.String bfdEncap)
Possible values are: The encapsulation type of BFD. GENEVE - BFD with GENEVE encapsulation NONE - BFD with no encapsulation UNKNOWN_ENCAP - BFD with unknown encapsulation- Parameters:
bfdEncap
- New value for the property.
-
setDiagnostic
public 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.- Parameters:
diagnostic
- New value for the property.
-
setForwarding
public 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.- Parameters:
forwarding
- New value for the property.
-
setRemoteDiagnostic
public 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.- Parameters:
remoteDiagnostic
- New value for the property.
-
setRemoteState
public BFDProperties.Builder setRemoteState(java.lang.String remoteState)
Possible values are: 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.- Parameters:
remoteState
- New value for the property.
-
setState
public BFDProperties.Builder setState(java.lang.String state)
Possible values are: 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.- Parameters:
state
- New value for the property.
-
build
public BFDProperties build()
-
-