Package com.vmware.nsx_policy.model
Class LBServiceUsageSummary.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.LBServiceUsageSummary.Builder
-
- Enclosing class:
- LBServiceUsageSummary
public static final class LBServiceUsageSummary.Builder extends java.lang.Object
Builder class forLBServiceUsageSummary
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofLBServiceUsageSummary
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LBServiceUsageSummary
build()
LBServiceUsageSummary.Builder
setCurrentPoolCount(java.lang.Long currentPoolCount)
The current count of pools configured for all load balancer services.LBServiceUsageSummary.Builder
setCurrentPoolMemberCount(java.lang.Long currentPoolMemberCount)
The current count of pool members configured for all load balancer services.LBServiceUsageSummary.Builder
setCurrentVirtualServerCount(java.lang.Long currentVirtualServerCount)
The current count of virtual servers configured for all load balancer services.LBServiceUsageSummary.Builder
setPoolCapacity(java.lang.Long poolCapacity)
Pool capacity means maximum number of pools which can be configured for all load balancer services.LBServiceUsageSummary.Builder
setPoolMemberCapacity(java.lang.Long poolMemberCapacity)
Pool capacity means maximum number of pool members which can be configured for all load balancer services.LBServiceUsageSummary.Builder
setPoolMemberSeverity(java.lang.String poolMemberSeverity)
Possible values are:LBServiceUsageSummary.POOL_MEMBER_SEVERITY_GREEN
LBServiceUsageSummary.POOL_MEMBER_SEVERITY_ORANGE
LBServiceUsageSummary.POOL_MEMBER_SEVERITY_RED
The severity calculation is based on the overall usage percentage of pool members for all load balancer services.LBServiceUsageSummary.Builder
setPoolMemberUsagePercentage(java.lang.Double poolMemberUsagePercentage)
Overall pool member usage percentage for all load balancer services.LBServiceUsageSummary.Builder
setPoolSeverity(java.lang.String poolSeverity)
Possible values are:LBServiceUsageSummary.POOL_SEVERITY_GREEN
LBServiceUsageSummary.POOL_SEVERITY_ORANGE
LBServiceUsageSummary.POOL_SEVERITY_RED
The severity calculation is based on the overall usage percentage of pools for all load balancer services.LBServiceUsageSummary.Builder
setPoolUsagePercentage(java.lang.Double poolUsagePercentage)
Overall pool usage percentage for all load balancer services.LBServiceUsageSummary.Builder
setServiceCounts(java.util.List<LBServiceCountPerSeverity> serviceCounts)
The service count for each load balancer usage severity.LBServiceUsageSummary.Builder
setServiceUsages(java.util.List<LBServiceUsage> serviceUsages)
The property identifies all lb service usages.LBServiceUsageSummary.Builder
setVirtualServerCapacity(java.lang.Long virtualServerCapacity)
Virtual server capacity means maximum number of virtual servers which can be configured for all load balancer services.LBServiceUsageSummary.Builder
setVirtualServerSeverity(java.lang.String virtualServerSeverity)
Possible values are:LBServiceUsageSummary.VIRTUAL_SERVER_SEVERITY_GREEN
LBServiceUsageSummary.VIRTUAL_SERVER_SEVERITY_ORANGE
LBServiceUsageSummary.VIRTUAL_SERVER_SEVERITY_RED
The severity calculation is based on the overall usage percentage of virtual servers for all load balancer services.LBServiceUsageSummary.Builder
setVirtualServerUsagePercentage(java.lang.Double virtualServerUsagePercentage)
Overall virtual server usage percentage for all load balancer services.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofLBServiceUsageSummary
.
-
-
Method Detail
-
setCurrentPoolCount
public LBServiceUsageSummary.Builder setCurrentPoolCount(java.lang.Long currentPoolCount)
The current count of pools configured for all load balancer services. 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 LBServiceUsageSummary.Builder setCurrentPoolMemberCount(java.lang.Long currentPoolMemberCount)
The current count of pool members configured for all load balancer services. 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 LBServiceUsageSummary.Builder setCurrentVirtualServerCount(java.lang.Long currentVirtualServerCount)
The current count of virtual servers configured for all load balancer services. 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.
-
setPoolCapacity
public LBServiceUsageSummary.Builder setPoolCapacity(java.lang.Long poolCapacity)
Pool capacity means maximum number of pools which can be configured for all load balancer services. 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 LBServiceUsageSummary.Builder setPoolMemberCapacity(java.lang.Long poolMemberCapacity)
Pool capacity means maximum number of pool members which can be configured for all load balancer services. 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.
-
setPoolMemberSeverity
public LBServiceUsageSummary.Builder setPoolMemberSeverity(java.lang.String poolMemberSeverity)
Possible values are: The severity calculation is based on the overall usage percentage of pool members for all load balancer services. 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:
poolMemberSeverity
- New value for the property.
-
setPoolMemberUsagePercentage
public LBServiceUsageSummary.Builder setPoolMemberUsagePercentage(java.lang.Double poolMemberUsagePercentage)
Overall pool member usage percentage for all load balancer services. 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:
poolMemberUsagePercentage
- New value for the property.
-
setPoolSeverity
public LBServiceUsageSummary.Builder setPoolSeverity(java.lang.String poolSeverity)
Possible values are: The severity calculation is based on the overall usage percentage of pools for all load balancer services. 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:
poolSeverity
- New value for the property.
-
setPoolUsagePercentage
public LBServiceUsageSummary.Builder setPoolUsagePercentage(java.lang.Double poolUsagePercentage)
Overall pool usage percentage for all load balancer services. 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:
poolUsagePercentage
- New value for the property.
-
setServiceCounts
public LBServiceUsageSummary.Builder setServiceCounts(java.util.List<LBServiceCountPerSeverity> serviceCounts)
The service count for each load balancer usage severity. 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:
serviceCounts
- New value for the property.
-
setServiceUsages
public LBServiceUsageSummary.Builder setServiceUsages(java.util.List<LBServiceUsage> serviceUsages)
The property identifies all lb service usages. By default, it is not included in response. It exists when parameter ?include_usages=true. 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:
serviceUsages
- New value for the property.
-
setVirtualServerCapacity
public LBServiceUsageSummary.Builder setVirtualServerCapacity(java.lang.Long virtualServerCapacity)
Virtual server capacity means maximum number of virtual servers which can be configured for all load balancer services. 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.
-
setVirtualServerSeverity
public LBServiceUsageSummary.Builder setVirtualServerSeverity(java.lang.String virtualServerSeverity)
Possible values are: The severity calculation is based on the overall usage percentage of virtual servers for all load balancer services. 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:
virtualServerSeverity
- New value for the property.
-
setVirtualServerUsagePercentage
public LBServiceUsageSummary.Builder setVirtualServerUsagePercentage(java.lang.Double virtualServerUsagePercentage)
Overall virtual server usage percentage for all load balancer services. 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:
virtualServerUsagePercentage
- New value for the property.
-
build
public LBServiceUsageSummary build()
-
-