public final class ResourceQuotaOptionsV1 extends java.lang.Object implements java.io.Serializable, StaticStructure
ResourceQuotaOptionsV1
class represents the resource quota limits
which can be applied on the namespace. Refer to for
information related to the properties of this object and what they map to.Modifier and Type | Class and Description |
---|---|
static class |
ResourceQuotaOptionsV1.Builder
Builder class for
ResourceQuotaOptionsV1 . |
Modifier and Type | Field and Description |
---|---|
protected StructValue |
__dynamicStructureFields |
Modifier | Constructor and Description |
---|---|
|
ResourceQuotaOptionsV1()
Default constructor.
|
protected |
ResourceQuotaOptionsV1(StructValue __dynamicStructureFields) |
Modifier and Type | Method and Description |
---|---|
<T extends Structure> |
_convertTo(java.lang.Class<T> clazz)
Converts this structure into an instance of the provided class structure
if possible.
|
java.lang.String |
_getCanonicalName()
Returns the canonical name of the structure.
|
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.
|
StructValue |
_getDataValue()
Returns this
Structure represented in the dynamic
DataValue model. |
DataValue |
_getDynamicField(java.lang.String fieldName)
Get dynamic filed value.
|
java.util.Set<java.lang.String> |
_getDynamicFieldNames()
Get the names of the dynamic fields in the structure.
|
com.vmware.vapi.bindings.type.StructType |
_getType()
WARNING: Internal method, subject to change in future versions.
|
boolean |
_hasTypeNameOf(java.lang.Class<? extends Structure> clazz)
Checks if the runtime type name of this structure matches the type
represented by the specified binding class.
|
static ResourceQuotaOptionsV1 |
_newInstance(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 ResourceQuotaOptionsV1 |
_newInstance2(StructValue structValue)
WARNING: Internal method, subject to change in future versions.
Serves as a versioning mechanism. |
void |
_setDynamicField(java.lang.String fieldName,
DataValue fieldValue)
Sets a dynamic field value.
|
protected void |
_updateDataValue(StructValue structValue) |
void |
_validate()
Validates the state of the discriminated unions and HasFieldsOf
restrictions (if any) in this Java language binding
Structure . |
boolean |
equals(java.lang.Object obj) |
java.lang.Long |
getConfigMapCount()
This represents 'count/configmaps' option which is the maximum number of
ConfigMaps in the namespace.
|
java.lang.Long |
getCpuLimit()
This is equivalent to 'limits.cpu' option which is the maximum CPU limit (in
MHz) across all pods which exist in a non-terminal state in the namespace.
|
java.lang.Long |
getCpuLimitDefault()
This represents the default cpu limit (in MHz) for containers in the pod.
|
java.lang.Long |
getCpuRequestDefault()
This represents the default CPU request (in MHz) for containers in the pod.
|
java.lang.Long |
getDaemonSetCount()
This represents 'count/daemonsets.apps' option which is the maximum number of
DaemonSets in the namespace.
|
java.lang.Long |
getDeploymentCount()
This represents 'count/deployments.apps' option which is the maximum number of
deployments in the namespace.
|
java.lang.Long |
getJobCount()
This represents 'count/jobs.batch' option which is the maximum number jobs in
the namespace.
|
java.lang.Long |
getMemoryLimit()
This is equivalent to 'limits.memory' option which is the maximum memory limit
(in mebibytes) across all pods which exist in a non-terminal state in the
namespace.
|
java.lang.Long |
getMemoryLimitDefault()
This represents the default memory limit (in mebibytes) for containers in the
pod.
|
java.lang.Long |
getMemoryRequestDefault()
This represents the default memory request (in mebibytes) for containers in the
pod.
|
java.lang.Long |
getPersistentVolumeClaimCount()
This represents 'count/persistentvolumeclaims' option which is the maximum
number of PersistentVolumeClaims in the namespace.
|
java.lang.Long |
getPodCount()
This represents 'pods' option which is the maximum number of pods which exist in
a non-terminal state in the namespace.
|
java.lang.Long |
getReplicaSetCount()
This represents 'count/replicasets.apps' option which is the maximum number of
ReplicaSets in the namespace.
|
java.lang.Long |
getReplicationControllerCount()
This represents 'count/replicationcontrollers' option which is the maximum
number of ReplicationControllers in the namespace.
|
java.lang.Long |
getSecretCount()
This represents 'count/secrets' option which is the maximum number of secrets in
the namespace.
|
java.lang.Long |
getServiceCount()
This represents 'count/services' option which is the maximum number of services
in the namespace.
|
java.lang.Long |
getStatefulSetCount()
This represents 'count/statefulsets.apps' option which is the maximum number of
StatefulSets in the namespace.
|
java.lang.Long |
getStorageRequestLimit()
This represents 'requests.storage' option which is the maximum storage request
(in mebibytes) across all persistent volume claims from pods which exist in a
non-terminal state in the namespace.
|
int |
hashCode() |
void |
setConfigMapCount(java.lang.Long configMapCount)
This represents 'count/configmaps' option which is the maximum number of
ConfigMaps in the namespace.
|
void |
setCpuLimit(java.lang.Long cpuLimit)
This is equivalent to 'limits.cpu' option which is the maximum CPU limit (in
MHz) across all pods which exist in a non-terminal state in the namespace.
|
void |
setCpuLimitDefault(java.lang.Long cpuLimitDefault)
This represents the default cpu limit (in MHz) for containers in the pod.
|
void |
setCpuRequestDefault(java.lang.Long cpuRequestDefault)
This represents the default CPU request (in MHz) for containers in the pod.
|
void |
setDaemonSetCount(java.lang.Long daemonSetCount)
This represents 'count/daemonsets.apps' option which is the maximum number of
DaemonSets in the namespace.
|
void |
setDeploymentCount(java.lang.Long deploymentCount)
This represents 'count/deployments.apps' option which is the maximum number of
deployments in the namespace.
|
void |
setJobCount(java.lang.Long jobCount)
This represents 'count/jobs.batch' option which is the maximum number jobs in
the namespace.
|
void |
setMemoryLimit(java.lang.Long memoryLimit)
This is equivalent to 'limits.memory' option which is the maximum memory limit
(in mebibytes) across all pods which exist in a non-terminal state in the
namespace.
|
void |
setMemoryLimitDefault(java.lang.Long memoryLimitDefault)
This represents the default memory limit (in mebibytes) for containers in the
pod.
|
void |
setMemoryRequestDefault(java.lang.Long memoryRequestDefault)
This represents the default memory request (in mebibytes) for containers in the
pod.
|
void |
setPersistentVolumeClaimCount(java.lang.Long persistentVolumeClaimCount)
This represents 'count/persistentvolumeclaims' option which is the maximum
number of PersistentVolumeClaims in the namespace.
|
void |
setPodCount(java.lang.Long podCount)
This represents 'pods' option which is the maximum number of pods which exist in
a non-terminal state in the namespace.
|
void |
setReplicaSetCount(java.lang.Long replicaSetCount)
This represents 'count/replicasets.apps' option which is the maximum number of
ReplicaSets in the namespace.
|
void |
setReplicationControllerCount(java.lang.Long replicationControllerCount)
This represents 'count/replicationcontrollers' option which is the maximum
number of ReplicationControllers in the namespace.
|
void |
setSecretCount(java.lang.Long secretCount)
This represents 'count/secrets' option which is the maximum number of secrets in
the namespace.
|
void |
setServiceCount(java.lang.Long serviceCount)
This represents 'count/services' option which is the maximum number of services
in the namespace.
|
void |
setStatefulSetCount(java.lang.Long statefulSetCount)
This represents 'count/statefulsets.apps' option which is the maximum number of
StatefulSets in the namespace.
|
void |
setStorageRequestLimit(java.lang.Long storageRequestLimit)
This represents 'requests.storage' option which is the maximum storage request
(in mebibytes) across all persistent volume claims from pods which exist in a
non-terminal state in the namespace.
|
java.lang.String |
toString()
Returns a string representation of this structure.
|
protected StructValue __dynamicStructureFields
public ResourceQuotaOptionsV1()
protected ResourceQuotaOptionsV1(StructValue __dynamicStructureFields)
public java.lang.Long getMemoryLimit()
null
, no memory limits are set on the ResourcePool for the namespace.public void setMemoryLimit(java.lang.Long memoryLimit)
null
, no memory limits are set on the ResourcePool for the namespace.memoryLimit
- New value for the property.public java.lang.Long getMemoryLimitDefault()
null
, no default memory limits are set on containers in the pod.public void setMemoryLimitDefault(java.lang.Long memoryLimitDefault)
null
, no default memory limits are set on containers in the pod.memoryLimitDefault
- New value for the property.public java.lang.Long getMemoryRequestDefault()
null
, no default memory requests are set on containers in the pod.public void setMemoryRequestDefault(java.lang.Long memoryRequestDefault)
null
, no default memory requests are set on containers in the pod.memoryRequestDefault
- New value for the property.public java.lang.Long getCpuLimit()
null
, no CPU limits are set on the ResourcePool for the namespace.public void setCpuLimit(java.lang.Long cpuLimit)
null
, no CPU limits are set on the ResourcePool for the namespace.cpuLimit
- New value for the property.public java.lang.Long getCpuLimitDefault()
null
, no default CPU limits are set on containers in the pod. Refer
for information about LimitRange. If specified, this limit should be at least 10
MHz.public void setCpuLimitDefault(java.lang.Long cpuLimitDefault)
null
, no default CPU limits are set on containers in the pod. Refer
for information about LimitRange. If specified, this limit should be at least 10
MHz.cpuLimitDefault
- New value for the property.public java.lang.Long getCpuRequestDefault()
null
, no default CPU requests are set on containers in the pod. Refer
for information about LimitRange. If specified, this field should be at least 10
MHz.public void setCpuRequestDefault(java.lang.Long cpuRequestDefault)
null
, no default CPU requests are set on containers in the pod. Refer
for information about LimitRange. If specified, this field should be at least 10
MHz.cpuRequestDefault
- New value for the property.public java.lang.Long getStorageRequestLimit()
null
, no storage request limits are set on the namespace.public void setStorageRequestLimit(java.lang.Long storageRequestLimit)
null
, no storage request limits are set on the namespace.storageRequestLimit
- New value for the property.public java.lang.Long getPodCount()
null
, no pod limits are set on the namespace.public void setPodCount(java.lang.Long podCount)
null
, no pod limits are set on the namespace.podCount
- New value for the property.public java.lang.Long getServiceCount()
null
, no service limits are set on the namespace.public void setServiceCount(java.lang.Long serviceCount)
null
, no service limits are set on the namespace.serviceCount
- New value for the property.public java.lang.Long getDeploymentCount()
null
, no deployment limits are set on the namespace.public void setDeploymentCount(java.lang.Long deploymentCount)
null
, no deployment limits are set on the namespace.deploymentCount
- New value for the property.public java.lang.Long getDaemonSetCount()
null
, no daemonset limits are set on the namespace.public void setDaemonSetCount(java.lang.Long daemonSetCount)
null
, no daemonset limits are set on the namespace.daemonSetCount
- New value for the property.public java.lang.Long getReplicaSetCount()
null
, no replicaset limits are set on the namespace.public void setReplicaSetCount(java.lang.Long replicaSetCount)
null
, no replicaset limits are set on the namespace.replicaSetCount
- New value for the property.public java.lang.Long getReplicationControllerCount()
null
, no replicationcontroller limits are set on the namespace.public void setReplicationControllerCount(java.lang.Long replicationControllerCount)
null
, no replicationcontroller limits are set on the namespace.replicationControllerCount
- New value for the property.public java.lang.Long getStatefulSetCount()
null
, no statefulset limits are set on the namespace.public void setStatefulSetCount(java.lang.Long statefulSetCount)
null
, no statefulset limits are set on the namespace.statefulSetCount
- New value for the property.public java.lang.Long getConfigMapCount()
null
, no configmap limits are set on the namespace.public void setConfigMapCount(java.lang.Long configMapCount)
null
, no configmap limits are set on the namespace.configMapCount
- New value for the property.public java.lang.Long getSecretCount()
null
, no secret limits are set on the namespace.public void setSecretCount(java.lang.Long secretCount)
null
, no secret limits are set on the namespace.secretCount
- New value for the property.public java.lang.Long getPersistentVolumeClaimCount()
null
, no persistentvolumeclaim limits are set on the namespace.public void setPersistentVolumeClaimCount(java.lang.Long persistentVolumeClaimCount)
null
, no persistentvolumeclaim limits are set on the namespace.persistentVolumeClaimCount
- New value for the property.public java.lang.Long getJobCount()
null
, no job limits are set on the namespace.public void setJobCount(java.lang.Long jobCount)
null
, no job limits are set on the namespace.jobCount
- New value for the property.public com.vmware.vapi.bindings.type.StructType _getType()
StaticStructure
StructType
instance representing the static bindings
type for this Structure
._getType
in interface StaticStructure
StructType
public StructValue _getDataValue()
Structure
Structure
represented in the dynamic
DataValue
model.
Attempts to change the returned StructValue
representation are not required to change the state of this structure.
Actually the behavior is implementation dependent and is unspecified.
In general the returned value shouldn't be changed.
_getDataValue
in interface Structure
StructValue
representing this structureprotected void _updateDataValue(StructValue structValue)
public void _validate()
StaticStructure
Structure
.
More precisely, for each union: given value of the discriminant/tag
field (@UnionTag
in the IDL) of an union in this structure,
validates that:
_validate
in interface 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()
StaticStructure
In general no code should depend on the format of the resulting string. E.g. there must be no attempts to parse for re-creation of the original instance.
toString
in interface StaticStructure
toString
in class java.lang.Object
public boolean _hasTypeNameOf(java.lang.Class<? extends Structure> clazz)
Structure
This can be used as efficient check to determine if this instance
can be successfully converted
to the target
type.
_hasTypeNameOf
in interface Structure
clazz
- bindings class for the target structure; must not be null
public <T extends Structure> T _convertTo(java.lang.Class<T> clazz)
Structure
_convertTo
in interface Structure
clazz
- type of the result structure. cannot be null.CoreException
is thrown otherwise.public void _setDynamicField(java.lang.String fieldName, DataValue fieldValue)
StaticStructure
_setDynamicField
in interface StaticStructure
fieldName
- canonical name of the dynamic field to setfieldValue
- the value of the fieldpublic DataValue _getDynamicField(java.lang.String fieldName)
StaticStructure
_getDynamicField
in interface StaticStructure
fieldName
- the canonical name of the dynamic fieldDataValue
of the dynamic fieldpublic java.util.Set<java.lang.String> _getDynamicFieldNames()
StaticStructure
_getDynamicFieldNames
in interface 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()
Structure
org.example.FooBar
would turn into
org.example.foo_bar
._getCanonicalName
in interface Structure
public static java.lang.String _getCanonicalTypeName()
_getCanonicalName()
.public static ResourceQuotaOptionsV1 _newInstance(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 ResourceQuotaOptionsV1 _newInstance2(StructValue structValue)