Package com.vmware.nsx_policy.model
Class NsxTDNSForwarderStatus.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.NsxTDNSForwarderStatus.Builder
-
- Enclosing class:
- NsxTDNSForwarderStatus
public static final class NsxTDNSForwarderStatus.Builder extends java.lang.Object
Builder class forNsxTDNSForwarderStatus
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofNsxTDNSForwarderStatus
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NsxTDNSForwarderStatus
build()
NsxTDNSForwarderStatus.Builder
setEnforcementPointPath(java.lang.String enforcementPointPath)
Policy path referencing the enforcement point from where the status is fetched.NsxTDNSForwarderStatus.Builder
setExtraMessage(java.lang.String extraMessage)
Extra message, if available This property may be present in responses from the server, but if it is present in a request to server it will be ignored.NsxTDNSForwarderStatus.Builder
setStatus(java.lang.String status)
Possible values are:NsxTDNSForwarderStatus.STATUS_UP
NsxTDNSForwarderStatus.STATUS_DOWN
NsxTDNSForwarderStatus.STATUS_ERROR
NsxTDNSForwarderStatus.STATUS_NO_BACKUP
NsxTDNSForwarderStatus.STATUS_UNKNOWN
UP means the DNS forwarder is working correctly on the active transport node and the stand-by transport node (if present).NsxTDNSForwarderStatus.Builder
setTimestamp(java.lang.Long timestamp)
Time stamp of the current status, in ms format: int64 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 ofNsxTDNSForwarderStatus
.
-
-
Method Detail
-
setExtraMessage
public NsxTDNSForwarderStatus.Builder setExtraMessage(java.lang.String extraMessage)
Extra message, if available 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:
extraMessage
- New value for the property.
-
setStatus
public NsxTDNSForwarderStatus.Builder setStatus(java.lang.String status)
Possible values are: UP means the DNS forwarder is working correctly on the active transport node and the stand-by transport node (if present). Failover will occur if either node goes down. DOWN means the DNS forwarder is down on both active transport node and standby node (if present). The DNS forwarder does not function in this situation. Error means there is some error on one or both transport node, or no status was reported from one or both transport nodes. The DNS forwarder may be working (or not working). NO_BACKUP means DNS forwarder is working in only one transport node, either because it is down on the standby node, or no standby is configured. An forwarder outage will occur if the active node goes down. 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:
status
- New value for the property.
-
setTimestamp
public NsxTDNSForwarderStatus.Builder setTimestamp(java.lang.Long timestamp)
Time stamp of the current status, in ms format: int64 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:
timestamp
- New value for the property.
-
setEnforcementPointPath
public NsxTDNSForwarderStatus.Builder setEnforcementPointPath(java.lang.String enforcementPointPath)
Policy path referencing the enforcement point from where the status is fetched. 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:
enforcementPointPath
- New value for the property.
-
build
public NsxTDNSForwarderStatus build()
-
-