Package com.vmware.nsx_policy.model
Class DhcpServerStatus.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.DhcpServerStatus.Builder
-
- Enclosing class:
- DhcpServerStatus
public static final class DhcpServerStatus.Builder extends java.lang.Object
Builder class forDhcpServerStatus
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofDhcpServerStatus
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DhcpServerStatus
build()
DhcpServerStatus.Builder
setActiveNode(java.lang.String activeNode)
uuid of active transport nodeDhcpServerStatus.Builder
setErrorMessage(java.lang.String errorMessage)
Error message, if availableDhcpServerStatus.Builder
setServiceStatus(java.lang.String serviceStatus)
Possible values are:DhcpServerStatus.SERVICE_STATUS_UP
DhcpServerStatus.SERVICE_STATUS_DOWN
DhcpServerStatus.SERVICE_STATUS_ERROR
DhcpServerStatus.SERVICE_STATUS_NO_STANDBY
UP means the dhcp service is working fine on both active transport-node and stand-by transport-node (if have), hence fail-over can work at this time if there is failure happens on one of the transport-node; DOWN means the dhcp service is down on both active transport-node and stand-by node (if have), hence the dhcp-service will not repsonse any dhcp request; Error means error happens on transport-node(s) or no status is reported from transport-node(s).DhcpServerStatus.Builder
setStandByNode(java.lang.String standByNode)
uuid of stand_by transport node.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofDhcpServerStatus
.
-
-
Method Detail
-
setActiveNode
public DhcpServerStatus.Builder setActiveNode(java.lang.String activeNode)
uuid of active transport node- Parameters:
activeNode
- New value for the property.
-
setErrorMessage
public DhcpServerStatus.Builder setErrorMessage(java.lang.String errorMessage)
Error message, if available- Parameters:
errorMessage
- New value for the property.
-
setServiceStatus
public DhcpServerStatus.Builder setServiceStatus(java.lang.String serviceStatus)
Possible values are: UP means the dhcp service is working fine on both active transport-node and stand-by transport-node (if have), hence fail-over can work at this time if there is failure happens on one of the transport-node; DOWN means the dhcp service is down on both active transport-node and stand-by node (if have), hence the dhcp-service will not repsonse any dhcp request; Error means error happens on transport-node(s) or no status is reported from transport-node(s). The dhcp service may be working (or not working); NO_STANDBY means dhcp service is working in one of the transport node while not in the other transport-node (if have). Hence if the dhcp service in the working transport-node is down, fail-over will not happen and the dhcp service will go down.- Parameters:
serviceStatus
- New value for the property.
-
setStandByNode
public DhcpServerStatus.Builder setStandByNode(java.lang.String standByNode)
uuid of stand_by transport node. null if non-HA mode- Parameters:
standByNode
- New value for the property.
-
build
public DhcpServerStatus build()
-
-