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.Object
Builder 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 LBServiceUsage
build()
LBServiceUsage.Builder
setAlarm(PolicyRuntimeAlarm alarm)
LBServiceUsage.Builder
setCurrentPoolCount(java.lang.Long currentPoolCount)
The current number of pools which has been configured in the given load balancer service.LBServiceUsage.Builder
setCurrentPoolMemberCount(java.lang.Long currentPoolMemberCount)
The current number of pool members which has been configured in the given load balancer service.LBServiceUsage.Builder
setCurrentVirtualServerCount(java.lang.Long currentVirtualServerCount)
The current number of virtual servers which has been configured in the given load balancer service.LBServiceUsage.Builder
setEnforcementPointPath(java.lang.String enforcementPointPath)
Policy Path referencing the enforcement point where the info is fetched.LBServiceUsage.Builder
setLastUpdateTimestamp(java.lang.Long lastUpdateTimestamp)
Timestamp when the data was last updated.LBServiceUsage.Builder
setPoolCapacity(java.lang.Long poolCapacity)
Pool capacity means maximum number of pools which could be configured in the given load balancer service.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.LBServiceUsage.Builder
setServicePath(java.lang.String servicePath)
LBService object path.LBServiceUsage.Builder
setServiceSize(java.lang.String serviceSize)
Possible values are:LBServiceUsage.SERVICE_SIZE_SMALL
LBServiceUsage.SERVICE_SIZE_MEDIUM
LBServiceUsage.SERVICE_SIZE_LARGE
LBServiceUsage.SERVICE_SIZE_XLARGE
LBServiceUsage.SERVICE_SIZE_DLB
The size of load balancer service.LBServiceUsage.Builder
setSeverity(java.lang.String severity)
Possible values are:LBServiceUsage.SEVERITY_GREEN
LBServiceUsage.SEVERITY_ORANGE
LBServiceUsage.SEVERITY_RED
The severity calculation is based on the largest usage percentage from virtual servers, pools and pool members for one load balancer service.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.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.
-
-
-
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()
-
-