public final class LbServiceUsage
extends java.lang.Object
implements java.io.Serializable, com.vmware.vapi.bindings.StaticStructure
Modifier and Type | Class and Description |
---|---|
static class |
LbServiceUsage.Builder
Builder class for
LbServiceUsage . |
Modifier and Type | Field and Description |
---|---|
protected com.vmware.vapi.data.StructValue |
__dynamicStructureFields |
static java.lang.String |
SERVICE_SIZE_DLB |
static java.lang.String |
SERVICE_SIZE_LARGE |
static java.lang.String |
SERVICE_SIZE_MEDIUM |
static java.lang.String |
SERVICE_SIZE_SMALL |
static java.lang.String |
SERVICE_SIZE_XLARGE |
static java.lang.String |
SEVERITY_GREEN |
static java.lang.String |
SEVERITY_ORANGE |
static java.lang.String |
SEVERITY_RED |
Modifier | Constructor and Description |
---|---|
|
LbServiceUsage()
Default constructor.
|
protected |
LbServiceUsage(com.vmware.vapi.data.StructValue __dynamicStructureFields) |
Modifier and Type | Method and Description |
---|---|
<T extends com.vmware.vapi.bindings.Structure> |
_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 LbServiceUsage |
_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 LbServiceUsage |
_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() |
boolean |
equals(java.lang.Object obj) |
java.lang.Long |
getCurrentPoolCount()
The current number of pools which have been configured in the given load
balancer service.
|
java.lang.Long |
getCurrentPoolMemberCount()
The current number of pool members which have been configured in the given load
balancer service.
|
java.lang.Long |
getCurrentVirtualServerCount()
The current number of virtual servers which have been configured in the given
load balancer service.
|
java.lang.Long |
getPoolCapacity()
Pool capacity means maximum number of pools which could be configured in the
given load balancer service.
|
java.lang.Long |
getPoolMemberCapacity()
Pool member capacity means maximum number of pool members which could be
configured in the given load balancer service.
|
java.lang.String |
getServiceId()
UUID 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.
|
java.lang.String |
getServiceSize()
Possible values are:
SERVICE_SIZE_SMALL SERVICE_SIZE_MEDIUM SERVICE_SIZE_LARGE SERVICE_SIZE_XLARGE SERVICE_SIZE_DLB 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. |
java.lang.String |
getSeverity()
Possible values are:
SEVERITY_GREEN SEVERITY_ORANGE SEVERITY_RED The severity
calculation is based on the largest usage percentage from virtual servers,
pools, pool members and rules for one load balancer service. |
java.lang.Double |
getUsagePercentage()
The usage percentage is the largest usage percentage from virtual servers, pools
and pool members for the load balancer service.
|
java.lang.Long |
getVirtualServerCapacity()
Virtual server capacity means maximum number of virtual servers which could be
configured in the given load balancer service.
|
int |
hashCode() |
void |
setCurrentPoolCount(java.lang.Long currentPoolCount)
The current number of pools which have been configured in the given load
balancer service.
|
void |
setCurrentPoolMemberCount(java.lang.Long currentPoolMemberCount)
The current number of pool members which have been configured in the given load
balancer service.
|
void |
setCurrentVirtualServerCount(java.lang.Long currentVirtualServerCount)
The current number of virtual servers which have been configured in the given
load balancer service.
|
void |
setPoolCapacity(java.lang.Long poolCapacity)
Pool capacity means maximum number of pools which could be configured in the
given load balancer service.
|
void |
setPoolMemberCapacity(java.lang.Long poolMemberCapacity)
Pool member capacity means maximum number of pool members which could be
configured in the given load balancer service.
|
void |
setServiceId(java.lang.String serviceId)
UUID 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.
|
void |
setServiceSize(java.lang.String serviceSize)
Possible values are:
SERVICE_SIZE_SMALL SERVICE_SIZE_MEDIUM SERVICE_SIZE_LARGE SERVICE_SIZE_XLARGE SERVICE_SIZE_DLB 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. |
void |
setSeverity(java.lang.String severity)
Possible values are:
SEVERITY_GREEN SEVERITY_ORANGE SEVERITY_RED The severity
calculation is based on the largest usage percentage from virtual servers,
pools, pool members and rules for one load balancer service. |
void |
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.
|
void |
setVirtualServerCapacity(java.lang.Long virtualServerCapacity)
Virtual server capacity means maximum number of virtual servers which could be
configured in the given load balancer service.
|
java.lang.String |
toString() |
public static final java.lang.String SERVICE_SIZE_SMALL
public static final java.lang.String SERVICE_SIZE_MEDIUM
public static final java.lang.String SERVICE_SIZE_LARGE
public static final java.lang.String SERVICE_SIZE_XLARGE
public static final java.lang.String SERVICE_SIZE_DLB
public static final java.lang.String SEVERITY_GREEN
public static final java.lang.String SEVERITY_ORANGE
public static final java.lang.String SEVERITY_RED
protected com.vmware.vapi.data.StructValue __dynamicStructureFields
public LbServiceUsage()
protected LbServiceUsage(com.vmware.vapi.data.StructValue __dynamicStructureFields)
public java.lang.Long getCurrentPoolCount()
public void setCurrentPoolCount(java.lang.Long currentPoolCount)
currentPoolCount
- New value for the property.public java.lang.Long getCurrentPoolMemberCount()
public void setCurrentPoolMemberCount(java.lang.Long currentPoolMemberCount)
currentPoolMemberCount
- New value for the property.public java.lang.Long getCurrentVirtualServerCount()
public void setCurrentVirtualServerCount(java.lang.Long currentVirtualServerCount)
currentVirtualServerCount
- New value for the property.public java.lang.Long getPoolCapacity()
public void setPoolCapacity(java.lang.Long poolCapacity)
poolCapacity
- New value for the property.public java.lang.Long getPoolMemberCapacity()
public void setPoolMemberCapacity(java.lang.Long poolMemberCapacity)
poolMemberCapacity
- New value for the property.public java.lang.String getServiceId()
public void setServiceId(java.lang.String serviceId)
serviceId
- New value for the property.public java.lang.String getServiceSize()
public void setServiceSize(java.lang.String serviceSize)
serviceSize
- New value for the property.public java.lang.String getSeverity()
public void setSeverity(java.lang.String severity)
severity
- New value for the property.public java.lang.Double getUsagePercentage()
public void setUsagePercentage(java.lang.Double usagePercentage)
usagePercentage
- New value for the property.public java.lang.Long getVirtualServerCapacity()
public void setVirtualServerCapacity(java.lang.Long virtualServerCapacity)
virtualServerCapacity
- New value for the property.public com.vmware.vapi.bindings.type.StructType _getType()
_getType
in interface com.vmware.vapi.bindings.StaticStructure
public com.vmware.vapi.data.StructValue _getDataValue()
_getDataValue
in interface com.vmware.vapi.bindings.Structure
protected void _updateDataValue(com.vmware.vapi.data.StructValue structValue)
public void _validate()
_validate
in interface com.vmware.vapi.bindings.StaticStructure
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in interface com.vmware.vapi.bindings.StaticStructure
toString
in class java.lang.Object
public boolean _hasTypeNameOf(java.lang.Class<? extends com.vmware.vapi.bindings.Structure> clazz)
_hasTypeNameOf
in interface com.vmware.vapi.bindings.Structure
public <T extends com.vmware.vapi.bindings.Structure> T _convertTo(java.lang.Class<T> clazz)
_convertTo
in interface com.vmware.vapi.bindings.Structure
public void _setDynamicField(java.lang.String fieldName, com.vmware.vapi.data.DataValue fieldValue)
_setDynamicField
in interface com.vmware.vapi.bindings.StaticStructure
public com.vmware.vapi.data.DataValue _getDynamicField(java.lang.String fieldName)
_getDynamicField
in interface com.vmware.vapi.bindings.StaticStructure
public java.util.Set<java.lang.String> _getDynamicFieldNames()
_getDynamicFieldNames
in interface com.vmware.vapi.bindings.StaticStructure
public static com.vmware.vapi.bindings.type.StructType _getClassType()
StructType
instance representing the static bindings
type for this Structure
.public java.lang.String _getCanonicalName()
_getCanonicalName
in interface com.vmware.vapi.bindings.Structure
public static java.lang.String _getCanonicalTypeName()
_getCanonicalName()
.public static LbServiceUsage _newInstance(com.vmware.vapi.data.StructValue structValue)
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.StructType
public static LbServiceUsage _newInstance2(com.vmware.vapi.data.StructValue structValue)