Package com.vmware.nsx_policy.model
Class PolicyMetadataProxyStatus.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.PolicyMetadataProxyStatus.Builder
-
- Enclosing class:
- PolicyMetadataProxyStatus
public static final class PolicyMetadataProxyStatus.Builder extends java.lang.Object
Builder class forPolicyMetadataProxyStatus
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofPolicyMetadataProxyStatus
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PolicyMetadataProxyStatus
build()
PolicyMetadataProxyStatus.Builder
setErrorMessage(java.lang.String errorMessage)
Error message, if availablePolicyMetadataProxyStatus.Builder
setProxyStatus(java.lang.String proxyStatus)
Possible values are:PolicyMetadataProxyStatus.PROXY_STATUS_UP
PolicyMetadataProxyStatus.PROXY_STATUS_DOWN
PolicyMetadataProxyStatus.PROXY_STATUS_ERROR
PolicyMetadataProxyStatus.PROXY_STATUS_NO_BACKUP
UP means the metadata proxy is working fine on both transport-nodes(if configured); DOWN means the metadata proxy is is down on both transport-nodes(if configured), hence the metadata proxy will not repsond to any metadata request; Error means there is an error on transport-node(s) or no status is reported from transport-node(s).PolicyMetadataProxyStatus.Builder
setTransportNodes(java.util.List<java.lang.String> transportNodes)
Order of the transport nodes is insensitive because Metadata Proxy is running in Active-Active mode among target transport nodes.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofPolicyMetadataProxyStatus
.
-
-
Method Detail
-
setErrorMessage
public PolicyMetadataProxyStatus.Builder setErrorMessage(java.lang.String errorMessage)
Error message, if available- Parameters:
errorMessage
- New value for the property.
-
setProxyStatus
public PolicyMetadataProxyStatus.Builder setProxyStatus(java.lang.String proxyStatus)
Possible values are: UP means the metadata proxy is working fine on both transport-nodes(if configured); DOWN means the metadata proxy is is down on both transport-nodes(if configured), hence the metadata proxy will not repsond to any metadata request; Error means there is an error on transport-node(s) or no status is reported from transport-node(s). The metadata proxy may be working (or not working); NO_BACK means metadata proxy is working on one of the transport node while not in the other transport-node (if configured). If the metadata proxy on the working transport-node goes down, the metadata proxy will go down.- Parameters:
proxyStatus
- New value for the property.
-
setTransportNodes
public PolicyMetadataProxyStatus.Builder setTransportNodes(java.util.List<java.lang.String> transportNodes)
Order of the transport nodes is insensitive because Metadata Proxy is running in Active-Active mode among target transport nodes.- Parameters:
transportNodes
- New value for the property.
-
build
public PolicyMetadataProxyStatus build()
-
-