public final class ResourceQuotaOptionsV1
extends java.lang.Object
implements java.io.Serializable, com.vmware.vapi.bindings.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 com.vmware.vapi.data.StructValue |
__dynamicStructureFields |
Modifier | Constructor and Description |
---|---|
|
ResourceQuotaOptionsV1()
Default constructor.
|
protected |
ResourceQuotaOptionsV1(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 ResourceQuotaOptionsV1 |
_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 ResourceQuotaOptionsV1 |
_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 |
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() |
protected com.vmware.vapi.data.StructValue __dynamicStructureFields
public ResourceQuotaOptionsV1()
protected ResourceQuotaOptionsV1(com.vmware.vapi.data.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()
_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 ResourceQuotaOptionsV1 _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 ResourceQuotaOptionsV1 _newInstance2(com.vmware.vapi.data.StructValue structValue)