Package com.vmware.nsx_policy.model
Class LBServiceStatus.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.LBServiceStatus.Builder
-
- Enclosing class:
- LBServiceStatus
public static final class LBServiceStatus.Builder extends java.lang.ObjectBuilder class forLBServiceStatus.
-
-
Constructor Summary
Constructors Constructor Description Builder()Constructor with parameters for the required properties ofLBServiceStatus.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LBServiceStatusbuild()LBServiceStatus.BuildersetActiveTransportNodes(java.util.List<java.lang.String> activeTransportNodes)Ids of load balancer service related active transport nodes.LBServiceStatus.BuildersetAlarm(PolicyRuntimeAlarm alarm)LBServiceStatus.BuildersetCpuUsage(java.lang.Long cpuUsage)Cpu usage in percentage.LBServiceStatus.BuildersetEnforcementPointPath(java.lang.String enforcementPointPath)Policy Path referencing the enforcement point where the info is fetched.LBServiceStatus.BuildersetErrorMessage(java.lang.String errorMessage)Error message, if available.LBServiceStatus.BuildersetInstanceDetailPerTn(java.util.List<LBServiceInstanceDetailPerTransportNode> instanceDetailPerTn)Details of load balancer service instance per transport node.LBServiceStatus.BuildersetLastUpdateTimestamp(java.lang.Long lastUpdateTimestamp)Timestamp when the data was last updated.LBServiceStatus.BuildersetMemoryUsage(java.lang.Long memoryUsage)Memory usage in percentage.LBServiceStatus.BuildersetPools(java.util.List<LBPoolStatus> pools)status of load balancer pools.LBServiceStatus.BuildersetServicePath(java.lang.String servicePath)Load balancer service object path.LBServiceStatus.BuildersetServiceStatus(java.lang.String serviceStatus)Possible values are:LBServiceStatus.SERVICE_STATUS_UPLBServiceStatus.SERVICE_STATUS_PARTIALLY_UPLBServiceStatus.SERVICE_STATUS_DOWNLBServiceStatus.SERVICE_STATUS_ERRORLBServiceStatus.SERVICE_STATUS_NO_STANDBYLBServiceStatus.SERVICE_STATUS_DETACHEDLBServiceStatus.SERVICE_STATUS_DISABLEDLBServiceStatus.SERVICE_STATUS_UNKNOWNUP means the load balancer service is working fine on both transport-nodes(if have); PARTIALLY_UP means that some DLB instances on transport node are working successfully and some instances are not working successfully; DOWN means the load balancer service is down on both transport-nodes (if have), hence the load balancer will not respond to any requests; ERROR means error happens on transport-node(s) or no status is reported from transport-node(s).LBServiceStatus.BuildersetStandbyTransportNodes(java.util.List<java.lang.String> standbyTransportNodes)Ids of load balancer service related standby transport nodes.LBServiceStatus.BuildersetVirtualServers(java.util.List<LBVirtualServerStatus> virtualServers)status of load balancer virtual servers.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofLBServiceStatus.
-
-
Method Detail
-
setActiveTransportNodes
public LBServiceStatus.Builder setActiveTransportNodes(java.util.List<java.lang.String> activeTransportNodes)
Ids of load balancer service related active transport nodes. 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:
activeTransportNodes- New value for the property.
-
setCpuUsage
public LBServiceStatus.Builder setCpuUsage(java.lang.Long cpuUsage)
Cpu usage in percentage. 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:
cpuUsage- New value for the property.
-
setErrorMessage
public LBServiceStatus.Builder setErrorMessage(java.lang.String errorMessage)
Error 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:
errorMessage- New value for the property.
-
setInstanceDetailPerTn
public LBServiceStatus.Builder setInstanceDetailPerTn(java.util.List<LBServiceInstanceDetailPerTransportNode> instanceDetailPerTn)
Details of load balancer service instance per transport node.- Parameters:
instanceDetailPerTn- New value for the property.
-
setLastUpdateTimestamp
public LBServiceStatus.Builder setLastUpdateTimestamp(java.lang.Long lastUpdateTimestamp)
Timestamp when the data was last updated. 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:
lastUpdateTimestamp- New value for the property.
-
setMemoryUsage
public LBServiceStatus.Builder setMemoryUsage(java.lang.Long memoryUsage)
Memory usage in percentage. 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:
memoryUsage- New value for the property.
-
setPools
public LBServiceStatus.Builder setPools(java.util.List<LBPoolStatus> pools)
status of load balancer pools. 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:
pools- New value for the property.
-
setServicePath
public LBServiceStatus.Builder setServicePath(java.lang.String servicePath)
Load balancer service object path. 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:
servicePath- New value for the property.
-
setServiceStatus
public LBServiceStatus.Builder setServiceStatus(java.lang.String serviceStatus)
Possible values are:-
LBServiceStatus.SERVICE_STATUS_UP -
LBServiceStatus.SERVICE_STATUS_PARTIALLY_UP -
LBServiceStatus.SERVICE_STATUS_DOWN -
LBServiceStatus.SERVICE_STATUS_ERROR -
LBServiceStatus.SERVICE_STATUS_NO_STANDBY -
LBServiceStatus.SERVICE_STATUS_DETACHED -
LBServiceStatus.SERVICE_STATUS_DISABLED -
LBServiceStatus.SERVICE_STATUS_UNKNOWN
- Parameters:
serviceStatus- New value for the property.
-
-
setStandbyTransportNodes
public LBServiceStatus.Builder setStandbyTransportNodes(java.util.List<java.lang.String> standbyTransportNodes)
Ids of load balancer service related standby transport nodes. 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:
standbyTransportNodes- New value for the property.
-
setVirtualServers
public LBServiceStatus.Builder setVirtualServers(java.util.List<LBVirtualServerStatus> virtualServers)
status of load balancer virtual servers. 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:
virtualServers- New value for the property.
-
setAlarm
public LBServiceStatus.Builder setAlarm(PolicyRuntimeAlarm alarm)
- Parameters:
alarm- New value for the property.
-
setEnforcementPointPath
public LBServiceStatus.Builder setEnforcementPointPath(java.lang.String enforcementPointPath)
Policy Path referencing the enforcement point where the info 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 LBServiceStatus build()
-
-