Package com.vmware.nsx_policy.model
Class LBServiceUsageSummary
- java.lang.Object
-
- com.vmware.nsx_policy.model.LBServiceUsageSummary
-
- All Implemented Interfaces:
com.vmware.vapi.bindings.StaticStructure,com.vmware.vapi.bindings.Structure,java.io.Serializable
public final class LBServiceUsageSummary extends java.lang.Object implements java.io.Serializable, com.vmware.vapi.bindings.StaticStructureDescribes usage summary of virtual servers, pools and pool members for all load balancer services.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLBServiceUsageSummary.BuilderBuilder class forLBServiceUsageSummary.
-
Field Summary
Fields Modifier and Type Field Description protected com.vmware.vapi.data.StructValue__dynamicStructureFieldsstatic java.lang.StringPOOL_MEMBER_SEVERITY_GREENstatic java.lang.StringPOOL_MEMBER_SEVERITY_ORANGEstatic java.lang.StringPOOL_MEMBER_SEVERITY_REDstatic java.lang.StringPOOL_SEVERITY_GREENstatic java.lang.StringPOOL_SEVERITY_ORANGEstatic java.lang.StringPOOL_SEVERITY_REDstatic java.lang.StringVIRTUAL_SERVER_SEVERITY_GREENstatic java.lang.StringVIRTUAL_SERVER_SEVERITY_ORANGEstatic java.lang.StringVIRTUAL_SERVER_SEVERITY_RED
-
Constructor Summary
Constructors Modifier Constructor Description LBServiceUsageSummary()Default constructor.protectedLBServiceUsageSummary(com.vmware.vapi.data.StructValue __dynamicStructureFields)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends com.vmware.vapi.bindings.Structure>
T_convertTo(java.lang.Class<T> clazz)java.lang.String_getCanonicalName()static java.lang.String_getCanonicalTypeName()Returns the canonical type name.static com.vmware.vapi.bindings.type.StructType_getClassType()WARNING: Internal method, subject to change in future versions.com.vmware.vapi.data.StructValue_getDataValue()com.vmware.vapi.data.DataValue_getDynamicField(java.lang.String fieldName)java.util.Set<java.lang.String>_getDynamicFieldNames()com.vmware.vapi.bindings.type.StructType_getType()boolean_hasTypeNameOf(java.lang.Class<? extends com.vmware.vapi.bindings.Structure> clazz)static LBServiceUsageSummary_newInstance(com.vmware.vapi.data.StructValue structValue)WARNING: Internal method, subject to change in future versions.
Returns new instance of this binding class and injects the provided data value.
WARNING: The returned object is not fully initialized.static LBServiceUsageSummary_newInstance2(com.vmware.vapi.data.StructValue structValue)WARNING: Internal method, subject to change in future versions.
Serves as a versioning mechanism.void_setDynamicField(java.lang.String fieldName, com.vmware.vapi.data.DataValue fieldValue)protected void_updateDataValue(com.vmware.vapi.data.StructValue structValue)void_validate()booleanequals(java.lang.Object obj)java.lang.LonggetCurrentPoolCount()The current count of pools configured for all load balancer services.java.lang.LonggetCurrentPoolMemberCount()The current count of pool members configured for all load balancer services.java.lang.LonggetCurrentVirtualServerCount()The current count of virtual servers configured for all load balancer services.java.lang.LonggetPoolCapacity()Pool capacity means maximum number of pools which can be configured for all load balancer services.java.lang.LonggetPoolMemberCapacity()Pool capacity means maximum number of pool members which can be configured for all load balancer services.java.lang.StringgetPoolMemberSeverity()Possible values are:POOL_MEMBER_SEVERITY_GREENPOOL_MEMBER_SEVERITY_ORANGEPOOL_MEMBER_SEVERITY_REDThe severity calculation is based on the overall usage percentage of pool members for all load balancer services.java.lang.DoublegetPoolMemberUsagePercentage()Overall pool member usage percentage for all load balancer services.java.lang.StringgetPoolSeverity()Possible values are:POOL_SEVERITY_GREENPOOL_SEVERITY_ORANGEPOOL_SEVERITY_REDThe severity calculation is based on the overall usage percentage of pools for all load balancer services.java.lang.DoublegetPoolUsagePercentage()Overall pool usage percentage for all load balancer services.java.util.List<LBServiceCountPerSeverity>getServiceCounts()The service count for each load balancer usage severity.java.util.List<LBServiceUsage>getServiceUsages()The property identifies all lb service usages.java.lang.LonggetVirtualServerCapacity()Virtual server capacity means maximum number of virtual servers which can be configured for all load balancer services.java.lang.StringgetVirtualServerSeverity()Possible values are:VIRTUAL_SERVER_SEVERITY_GREENVIRTUAL_SERVER_SEVERITY_ORANGEVIRTUAL_SERVER_SEVERITY_REDThe severity calculation is based on the overall usage percentage of virtual servers for all load balancer services.java.lang.DoublegetVirtualServerUsagePercentage()Overall virtual server usage percentage for all load balancer services.inthashCode()voidsetCurrentPoolCount(java.lang.Long currentPoolCount)The current count of pools configured for all load balancer services.voidsetCurrentPoolMemberCount(java.lang.Long currentPoolMemberCount)The current count of pool members configured for all load balancer services.voidsetCurrentVirtualServerCount(java.lang.Long currentVirtualServerCount)The current count of virtual servers configured for all load balancer services.voidsetPoolCapacity(java.lang.Long poolCapacity)Pool capacity means maximum number of pools which can be configured for all load balancer services.voidsetPoolMemberCapacity(java.lang.Long poolMemberCapacity)Pool capacity means maximum number of pool members which can be configured for all load balancer services.voidsetPoolMemberSeverity(java.lang.String poolMemberSeverity)Possible values are:POOL_MEMBER_SEVERITY_GREENPOOL_MEMBER_SEVERITY_ORANGEPOOL_MEMBER_SEVERITY_REDThe severity calculation is based on the overall usage percentage of pool members for all load balancer services.voidsetPoolMemberUsagePercentage(java.lang.Double poolMemberUsagePercentage)Overall pool member usage percentage for all load balancer services.voidsetPoolSeverity(java.lang.String poolSeverity)Possible values are:POOL_SEVERITY_GREENPOOL_SEVERITY_ORANGEPOOL_SEVERITY_REDThe severity calculation is based on the overall usage percentage of pools for all load balancer services.voidsetPoolUsagePercentage(java.lang.Double poolUsagePercentage)Overall pool usage percentage for all load balancer services.voidsetServiceCounts(java.util.List<LBServiceCountPerSeverity> serviceCounts)The service count for each load balancer usage severity.voidsetServiceUsages(java.util.List<LBServiceUsage> serviceUsages)The property identifies all lb service usages.voidsetVirtualServerCapacity(java.lang.Long virtualServerCapacity)Virtual server capacity means maximum number of virtual servers which can be configured for all load balancer services.voidsetVirtualServerSeverity(java.lang.String virtualServerSeverity)Possible values are:VIRTUAL_SERVER_SEVERITY_GREENVIRTUAL_SERVER_SEVERITY_ORANGEVIRTUAL_SERVER_SEVERITY_REDThe severity calculation is based on the overall usage percentage of virtual servers for all load balancer services.voidsetVirtualServerUsagePercentage(java.lang.Double virtualServerUsagePercentage)Overall virtual server usage percentage for all load balancer services.java.lang.StringtoString()
-
-
-
Field Detail
-
POOL_MEMBER_SEVERITY_GREEN
public static final java.lang.String POOL_MEMBER_SEVERITY_GREEN
- See Also:
- Constant Field Values
-
POOL_MEMBER_SEVERITY_ORANGE
public static final java.lang.String POOL_MEMBER_SEVERITY_ORANGE
- See Also:
- Constant Field Values
-
POOL_MEMBER_SEVERITY_RED
public static final java.lang.String POOL_MEMBER_SEVERITY_RED
- See Also:
- Constant Field Values
-
POOL_SEVERITY_GREEN
public static final java.lang.String POOL_SEVERITY_GREEN
- See Also:
- Constant Field Values
-
POOL_SEVERITY_ORANGE
public static final java.lang.String POOL_SEVERITY_ORANGE
- See Also:
- Constant Field Values
-
POOL_SEVERITY_RED
public static final java.lang.String POOL_SEVERITY_RED
- See Also:
- Constant Field Values
-
VIRTUAL_SERVER_SEVERITY_GREEN
public static final java.lang.String VIRTUAL_SERVER_SEVERITY_GREEN
- See Also:
- Constant Field Values
-
VIRTUAL_SERVER_SEVERITY_ORANGE
public static final java.lang.String VIRTUAL_SERVER_SEVERITY_ORANGE
- See Also:
- Constant Field Values
-
VIRTUAL_SERVER_SEVERITY_RED
public static final java.lang.String VIRTUAL_SERVER_SEVERITY_RED
- See Also:
- Constant Field Values
-
__dynamicStructureFields
protected com.vmware.vapi.data.StructValue __dynamicStructureFields
-
-
Method Detail
-
getCurrentPoolCount
public java.lang.Long getCurrentPoolCount()
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.- Returns:
- The current value of the property.
-
setCurrentPoolCount
public void 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.
-
getCurrentPoolMemberCount
public java.lang.Long getCurrentPoolMemberCount()
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.- Returns:
- The current value of the property.
-
setCurrentPoolMemberCount
public void 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.
-
getCurrentVirtualServerCount
public java.lang.Long getCurrentVirtualServerCount()
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.- Returns:
- The current value of the property.
-
setCurrentVirtualServerCount
public void 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.
-
getPoolCapacity
public java.lang.Long getPoolCapacity()
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.- Returns:
- The current value of the property.
-
setPoolCapacity
public void 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.
-
getPoolMemberCapacity
public java.lang.Long getPoolMemberCapacity()
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.- Returns:
- The current value of the property.
-
setPoolMemberCapacity
public void 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.
-
getPoolMemberSeverity
public java.lang.String getPoolMemberSeverity()
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.- Returns:
- The current value of the property.
-
setPoolMemberSeverity
public void 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.
-
getPoolMemberUsagePercentage
public java.lang.Double getPoolMemberUsagePercentage()
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.- Returns:
- The current value of the property.
-
setPoolMemberUsagePercentage
public void 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.
-
getPoolSeverity
public java.lang.String getPoolSeverity()
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.- Returns:
- The current value of the property.
-
setPoolSeverity
public void 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.
-
getPoolUsagePercentage
public java.lang.Double getPoolUsagePercentage()
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.- Returns:
- The current value of the property.
-
setPoolUsagePercentage
public void 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.
-
getServiceCounts
public java.util.List<LBServiceCountPerSeverity> getServiceCounts()
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.- Returns:
- The current value of the property.
-
setServiceCounts
public void 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.
-
getServiceUsages
public java.util.List<LBServiceUsage> getServiceUsages()
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.- Returns:
- The current value of the property.
-
setServiceUsages
public void 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.
-
getVirtualServerCapacity
public java.lang.Long getVirtualServerCapacity()
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.- Returns:
- The current value of the property.
-
setVirtualServerCapacity
public void 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.
-
getVirtualServerSeverity
public java.lang.String getVirtualServerSeverity()
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.- Returns:
- The current value of the property.
-
setVirtualServerSeverity
public void 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.
-
getVirtualServerUsagePercentage
public java.lang.Double getVirtualServerUsagePercentage()
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.- Returns:
- The current value of the property.
-
setVirtualServerUsagePercentage
public void 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.
-
_getType
public com.vmware.vapi.bindings.type.StructType _getType()
- Specified by:
_getTypein interfacecom.vmware.vapi.bindings.StaticStructure
-
_getDataValue
public com.vmware.vapi.data.StructValue _getDataValue()
- Specified by:
_getDataValuein interfacecom.vmware.vapi.bindings.Structure
-
_updateDataValue
protected void _updateDataValue(com.vmware.vapi.data.StructValue structValue)
-
_validate
public void _validate()
- Specified by:
_validatein interfacecom.vmware.vapi.bindings.StaticStructure
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Specified by:
toStringin interfacecom.vmware.vapi.bindings.StaticStructure- Overrides:
toStringin classjava.lang.Object
-
_hasTypeNameOf
public boolean _hasTypeNameOf(java.lang.Class<? extends com.vmware.vapi.bindings.Structure> clazz)
- Specified by:
_hasTypeNameOfin interfacecom.vmware.vapi.bindings.Structure
-
_convertTo
public <T extends com.vmware.vapi.bindings.Structure> T _convertTo(java.lang.Class<T> clazz)
- Specified by:
_convertToin interfacecom.vmware.vapi.bindings.Structure
-
_setDynamicField
public void _setDynamicField(java.lang.String fieldName, com.vmware.vapi.data.DataValue fieldValue)- Specified by:
_setDynamicFieldin interfacecom.vmware.vapi.bindings.StaticStructure
-
_getDynamicField
public com.vmware.vapi.data.DataValue _getDynamicField(java.lang.String fieldName)
- Specified by:
_getDynamicFieldin interfacecom.vmware.vapi.bindings.StaticStructure
-
_getDynamicFieldNames
public java.util.Set<java.lang.String> _getDynamicFieldNames()
- Specified by:
_getDynamicFieldNamesin interfacecom.vmware.vapi.bindings.StaticStructure
-
_getClassType
public static com.vmware.vapi.bindings.type.StructType _getClassType()
WARNING: Internal method, subject to change in future versions.- Returns:
StructTypeinstance representing the static bindings type for thisStructure.
-
_getCanonicalName
public java.lang.String _getCanonicalName()
- Specified by:
_getCanonicalNamein interfacecom.vmware.vapi.bindings.Structure
-
_getCanonicalTypeName
public static java.lang.String _getCanonicalTypeName()
Returns the canonical type name. See_getCanonicalName().- Returns:
- canonical type name
-
_newInstance
public static LBServiceUsageSummary _newInstance(com.vmware.vapi.data.StructValue structValue)
WARNING: Internal method, subject to change in future versions.
Returns new instance of this binding class and injects the provided data value.
WARNING: The returned object is not fully initialized.- Parameters:
structValue- the source of the data contained in the binding object. Could contain more data than fields of this class can describe i.e. newer version of the binding object. Could be null.- Returns:
- the static bindings
StructType
-
_newInstance2
public static LBServiceUsageSummary _newInstance2(com.vmware.vapi.data.StructValue structValue)
WARNING: Internal method, subject to change in future versions.
Serves as a versioning mechanism.
-
-