Package com.vmware.nsx_policy.model
Class LBServiceUsage.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.LBServiceUsage.Builder
-
- Enclosing class:
- LBServiceUsage
public static final class LBServiceUsage.Builder extends java.lang.ObjectBuilder class forLBServiceUsage.
-
-
Constructor Summary
Constructors Constructor Description Builder()Constructor with parameters for the required properties ofLBServiceUsage.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LBServiceUsagebuild()LBServiceUsage.BuildersetAlarm(PolicyRuntimeAlarm alarm)LBServiceUsage.BuildersetCurrentPoolCount(java.lang.Long currentPoolCount)The current number of pools which has been configured in the given load balancer service.LBServiceUsage.BuildersetCurrentPoolMemberCount(java.lang.Long currentPoolMemberCount)The current number of pool members which has been configured in the given load balancer service.LBServiceUsage.BuildersetCurrentVirtualServerCount(java.lang.Long currentVirtualServerCount)The current number of virtual servers which has been configured in the given load balancer service.LBServiceUsage.BuildersetEnforcementPointPath(java.lang.String enforcementPointPath)Policy Path referencing the enforcement point where the info is fetched.LBServiceUsage.BuildersetLastUpdateTimestamp(java.lang.Long lastUpdateTimestamp)Timestamp when the data was last updated.LBServiceUsage.BuildersetPoolCapacity(java.lang.Long poolCapacity)Pool capacity means maximum number of pools which could be configured in the given load balancer service.LBServiceUsage.BuildersetPoolMemberCapacity(java.lang.Long poolMemberCapacity)Pool member capacity means maximum number of pool members which could be configured in the given load balancer service.LBServiceUsage.BuildersetServicePath(java.lang.String servicePath)LBService object path.LBServiceUsage.BuildersetServiceSize(java.lang.String serviceSize)Possible values are:LBServiceUsage.SERVICE_SIZE_SMALLLBServiceUsage.SERVICE_SIZE_MEDIUMLBServiceUsage.SERVICE_SIZE_LARGELBServiceUsage.SERVICE_SIZE_XLARGELBServiceUsage.SERVICE_SIZE_DLBThe size of load balancer service.LBServiceUsage.BuildersetSeverity(java.lang.String severity)Possible values are:LBServiceUsage.SEVERITY_GREENLBServiceUsage.SEVERITY_ORANGELBServiceUsage.SEVERITY_REDThe severity calculation is based on the largest usage percentage from virtual servers, pools and pool members for one load balancer service.LBServiceUsage.BuildersetUsagePercentage(java.lang.Double usagePercentage)The usage percentage is the largest usage percentage from virtual servers, pools and pool members for the load balancer service.LBServiceUsage.BuildersetVirtualServerCapacity(java.lang.Long virtualServerCapacity)Virtual server capacity means maximum number of virtual servers which could be configured in the given load balancer service.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofLBServiceUsage.
-
-
Method Detail
-
setCurrentPoolCount
public LBServiceUsage.Builder setCurrentPoolCount(java.lang.Long currentPoolCount)
The current number of pools which has been configured in the given load balancer service. 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:
currentPoolCount- New value for the property.
-
setCurrentPoolMemberCount
public LBServiceUsage.Builder setCurrentPoolMemberCount(java.lang.Long currentPoolMemberCount)
The current number of pool members which has been configured in the given load balancer service. 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:
currentPoolMemberCount- New value for the property.
-
setCurrentVirtualServerCount
public LBServiceUsage.Builder setCurrentVirtualServerCount(java.lang.Long currentVirtualServerCount)
The current number of virtual servers which has been configured in the given load balancer service. 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:
currentVirtualServerCount- New value for the property.
-
setLastUpdateTimestamp
public LBServiceUsage.Builder setLastUpdateTimestamp(java.lang.Long lastUpdateTimestamp)
Timestamp when the data was last updated. format: int64- Parameters:
lastUpdateTimestamp- New value for the property.
-
setPoolCapacity
public LBServiceUsage.Builder setPoolCapacity(java.lang.Long poolCapacity)
Pool capacity means maximum number of pools which could be configured in the given load balancer service. 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:
poolCapacity- New value for the property.
-
setPoolMemberCapacity
public LBServiceUsage.Builder setPoolMemberCapacity(java.lang.Long poolMemberCapacity)
Pool member capacity means maximum number of pool members which could be configured in the given load balancer service. 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:
poolMemberCapacity- New value for the property.
-
setServicePath
public LBServiceUsage.Builder setServicePath(java.lang.String servicePath)
LBService 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.
-
setServiceSize
public LBServiceUsage.Builder setServiceSize(java.lang.String serviceSize)
Possible values are: The size of load balancer service. 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:
serviceSize- New value for the property.
-
setSeverity
public LBServiceUsage.Builder setSeverity(java.lang.String severity)
Possible values are: The severity calculation is based on the largest usage percentage from virtual servers, pools and pool members for one load balancer service. 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:
severity- New value for the property.
-
setUsagePercentage
public LBServiceUsage.Builder setUsagePercentage(java.lang.Double usagePercentage)
The usage percentage is the largest usage percentage from virtual servers, pools and pool members for the load balancer service. If the property relax_scale_validation is set as true for LBService, it is possible that the value is larger than 100.0. For example, if SMALL LBS is deployed on MEDIUM edge node and configured with MEDIUM LBS virtual server scale number, LBS usage percentage is shown larger than 100.0. 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:
usagePercentage- New value for the property.
-
setVirtualServerCapacity
public LBServiceUsage.Builder setVirtualServerCapacity(java.lang.Long virtualServerCapacity)
Virtual server capacity means maximum number of virtual servers which could be configured in the given load balancer service. 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:
virtualServerCapacity- New value for the property.
-
setAlarm
public LBServiceUsage.Builder setAlarm(PolicyRuntimeAlarm alarm)
- Parameters:
alarm- New value for the property.
-
setEnforcementPointPath
public LBServiceUsage.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 LBServiceUsage build()
-
-