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.ObjectBuilder 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 BFDPropertiesbuild()BFDProperties.BuildersetActive(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.BuildersetBfdEncap(java.lang.String bfdEncap)Possible values are:BFDProperties.BFD_ENCAP_GENEVEBFDProperties.BFD_ENCAP_NONEBFDProperties.BFD_ENCAP_UNKNOWN_ENCAPThe encapsulation type of BFD.BFDProperties.BuildersetDiagnostic(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.BuildersetForwarding(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.BuildersetRemoteDiagnostic(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.BuildersetRemoteState(java.lang.String remoteState)Possible values are:BFDProperties.REMOTE_STATE_UNKNOWN_STATEBFDProperties.REMOTE_STATE_ADMIN_DOWNBFDProperties.REMOTE_STATE_DOWNBFDProperties.REMOTE_STATE_INITBFDProperties.REMOTE_STATE_UPState 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.BuildersetState(java.lang.String state)Possible values are:BFDProperties.STATE_UNKNOWN_STATEBFDProperties.STATE_ADMIN_DOWNBFDProperties.STATE_DOWNBFDProperties.STATE_INITBFDProperties.STATE_UPState 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()
-
-