Package com.vmware.nsx_policy.model
Class LBNodeUsageSummary.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.LBNodeUsageSummary.Builder
-
- Enclosing class:
- LBNodeUsageSummary
public static final class LBNodeUsageSummary.Builder extends java.lang.ObjectBuilder class forLBNodeUsageSummary.
-
-
Constructor Summary
Constructors Constructor Description Builder()Constructor with parameters for the required properties ofLBNodeUsageSummary.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LBNodeUsageSummarybuild()LBNodeUsageSummary.BuildersetAlarm(PolicyRuntimeAlarm alarm)LBNodeUsageSummary.BuildersetCurrentLoadBalancerCredits(java.lang.Long currentLoadBalancerCredits)Current load balancer credits in use for all nodes.LBNodeUsageSummary.BuildersetCurrentPoolMemberCount(java.lang.Long currentPoolMemberCount)The overall count of pool members configured on all nodes.LBNodeUsageSummary.BuildersetEnforcementPointPath(java.lang.String enforcementPointPath)Policy Path referencing the enforcement point where the info is fetched.LBNodeUsageSummary.BuildersetLoadBalancerCreditCapacity(java.lang.Long loadBalancerCreditCapacity)The load balancer credit capacity means the maximum credits which can be used for load balancer service configuration for all nodes.LBNodeUsageSummary.BuildersetNodeCounts(java.util.List<LBNodeCountPerSeverity> nodeCounts)The property identifies array of node count for each severity.LBNodeUsageSummary.BuildersetNodeUsages(java.util.List<com.vmware.vapi.bindings.Structure> nodeUsages)The property identifies all LB node usages.LBNodeUsageSummary.BuildersetPoolMemberCapacity(java.lang.Long poolMemberCapacity)Pool member capacity means maximum number of pool members which can be configured on all nodes.LBNodeUsageSummary.BuildersetSeverity(java.lang.String severity)Possible values are:LBNodeUsageSummary.SEVERITY_GREENLBNodeUsageSummary.SEVERITY_ORANGELBNodeUsageSummary.SEVERITY_REDThe severity calculation is based on overall credit usage percentage of load balancer for all nodes.LBNodeUsageSummary.BuildersetUsagePercentage(java.lang.Double usagePercentage)The overall usage percentage of all nodes for load balancer.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofLBNodeUsageSummary.
-
-
Method Detail
-
setAlarm
public LBNodeUsageSummary.Builder setAlarm(PolicyRuntimeAlarm alarm)
- Parameters:
alarm- New value for the property.
-
setEnforcementPointPath
public LBNodeUsageSummary.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.
-
setCurrentLoadBalancerCredits
public LBNodeUsageSummary.Builder setCurrentLoadBalancerCredits(java.lang.Long currentLoadBalancerCredits)
Current load balancer credits in use for all nodes. For example, configuring a medium load balancer on a node consumes 10 credits. If there are 2 medium instances configured, the current load balancer credit number is 2 * 10 = 20. 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:
currentLoadBalancerCredits- New value for the property.
-
setCurrentPoolMemberCount
public LBNodeUsageSummary.Builder setCurrentPoolMemberCount(java.lang.Long currentPoolMemberCount)
The overall count of pool members configured on all nodes. 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.
-
setLoadBalancerCreditCapacity
public LBNodeUsageSummary.Builder setLoadBalancerCreditCapacity(java.lang.Long loadBalancerCreditCapacity)
The load balancer credit capacity means the maximum credits which can be used for load balancer service configuration for all nodes. 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:
loadBalancerCreditCapacity- New value for the property.
-
setNodeCounts
public LBNodeUsageSummary.Builder setNodeCounts(java.util.List<LBNodeCountPerSeverity> nodeCounts)
The property identifies array of node count for each 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:
nodeCounts- New value for the property.
-
setNodeUsages
public LBNodeUsageSummary.Builder setNodeUsages(java.util.List<com.vmware.vapi.bindings.Structure> nodeUsages)
The property identifies all LB node 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:
nodeUsages- New value for the property. When clients pass a value of this class as a parameter, the property must contain all the properties defined inLBNodeUsage. When methods return a value of this class as a return value, the property will contain all the properties defined inLBNodeUsage.
-
setPoolMemberCapacity
public LBNodeUsageSummary.Builder setPoolMemberCapacity(java.lang.Long poolMemberCapacity)
Pool member capacity means maximum number of pool members which can be configured on all nodes. 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.
-
setSeverity
public LBNodeUsageSummary.Builder setSeverity(java.lang.String severity)
Possible values are: The severity calculation is based on overall credit usage percentage of load balancer for all 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:
severity- New value for the property.
-
setUsagePercentage
public LBNodeUsageSummary.Builder setUsagePercentage(java.lang.Double usagePercentage)
The overall usage percentage of all nodes for load balancer. The value is the larger value between overall pool member usage percentage and overall load balancer credit usage percentage. 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.
-
build
public LBNodeUsageSummary build()
-
-