public static final class ResourceQuotaOptionsV1.Builder
extends java.lang.Object
ResourceQuotaOptionsV1.| Constructor and Description |
|---|
Builder()
Constructor with parameters for the required properties of
ResourceQuotaOptionsV1. |
| Modifier and Type | Method and Description |
|---|---|
ResourceQuotaOptionsV1 |
build() |
ResourceQuotaOptionsV1.Builder |
setConfigMapCount(java.lang.Long configMapCount)
This represents 'count/configmaps' option which is the maximum number of
ConfigMaps in the namespace.
|
ResourceQuotaOptionsV1.Builder |
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.
|
ResourceQuotaOptionsV1.Builder |
setCpuLimitDefault(java.lang.Long cpuLimitDefault)
This represents the default cpu limit (in MHz) for containers in the pod.
|
ResourceQuotaOptionsV1.Builder |
setCpuRequestDefault(java.lang.Long cpuRequestDefault)
This represents the default CPU request (in MHz) for containers in the pod.
|
ResourceQuotaOptionsV1.Builder |
setDaemonSetCount(java.lang.Long daemonSetCount)
This represents 'count/daemonsets.apps' option which is the maximum number of
DaemonSets in the namespace.
|
ResourceQuotaOptionsV1.Builder |
setDeploymentCount(java.lang.Long deploymentCount)
This represents 'count/deployments.apps' option which is the maximum number of
deployments in the namespace.
|
ResourceQuotaOptionsV1.Builder |
setJobCount(java.lang.Long jobCount)
This represents 'count/jobs.batch' option which is the maximum number jobs in
the namespace.
|
ResourceQuotaOptionsV1.Builder |
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.
|
ResourceQuotaOptionsV1.Builder |
setMemoryLimitDefault(java.lang.Long memoryLimitDefault)
This represents the default memory limit (in mebibytes) for containers in the
pod.
|
ResourceQuotaOptionsV1.Builder |
setMemoryRequestDefault(java.lang.Long memoryRequestDefault)
This represents the default memory request (in mebibytes) for containers in the
pod.
|
ResourceQuotaOptionsV1.Builder |
setPersistentVolumeClaimCount(java.lang.Long persistentVolumeClaimCount)
This represents 'count/persistentvolumeclaims' option which is the maximum
number of PersistentVolumeClaims in the namespace.
|
ResourceQuotaOptionsV1.Builder |
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.
|
ResourceQuotaOptionsV1.Builder |
setReplicaSetCount(java.lang.Long replicaSetCount)
This represents 'count/replicasets.apps' option which is the maximum number of
ReplicaSets in the namespace.
|
ResourceQuotaOptionsV1.Builder |
setReplicationControllerCount(java.lang.Long replicationControllerCount)
This represents 'count/replicationcontrollers' option which is the maximum
number of ReplicationControllers in the namespace.
|
ResourceQuotaOptionsV1.Builder |
setSecretCount(java.lang.Long secretCount)
This represents 'count/secrets' option which is the maximum number of secrets in
the namespace.
|
ResourceQuotaOptionsV1.Builder |
setServiceCount(java.lang.Long serviceCount)
This represents 'count/services' option which is the maximum number of services
in the namespace.
|
ResourceQuotaOptionsV1.Builder |
setStatefulSetCount(java.lang.Long statefulSetCount)
This represents 'count/statefulsets.apps' option which is the maximum number of
StatefulSets in the namespace.
|
ResourceQuotaOptionsV1.Builder |
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.
|
public Builder()
ResourceQuotaOptionsV1.public ResourceQuotaOptionsV1.Builder setMemoryLimit(java.lang.Long memoryLimit)
null, no memory limits are set on the ResourcePool for the namespace.memoryLimit - New value for the property.public ResourceQuotaOptionsV1.Builder setMemoryLimitDefault(java.lang.Long memoryLimitDefault)
null, no default memory limits are set on containers in the pod.memoryLimitDefault - New value for the property.public ResourceQuotaOptionsV1.Builder setMemoryRequestDefault(java.lang.Long memoryRequestDefault)
null, no default memory requests are set on containers in the pod.memoryRequestDefault - New value for the property.public ResourceQuotaOptionsV1.Builder setCpuLimit(java.lang.Long cpuLimit)
null, no CPU limits are set on the ResourcePool for the namespace.cpuLimit - New value for the property.public ResourceQuotaOptionsV1.Builder 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 ResourceQuotaOptionsV1.Builder 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 ResourceQuotaOptionsV1.Builder setStorageRequestLimit(java.lang.Long storageRequestLimit)
null, no storage request limits are set on the namespace.storageRequestLimit - New value for the property.public ResourceQuotaOptionsV1.Builder setPodCount(java.lang.Long podCount)
null, no pod limits are set on the namespace.podCount - New value for the property.public ResourceQuotaOptionsV1.Builder setServiceCount(java.lang.Long serviceCount)
null, no service limits are set on the namespace.serviceCount - New value for the property.public ResourceQuotaOptionsV1.Builder setDeploymentCount(java.lang.Long deploymentCount)
null, no deployment limits are set on the namespace.deploymentCount - New value for the property.public ResourceQuotaOptionsV1.Builder setDaemonSetCount(java.lang.Long daemonSetCount)
null, no daemonset limits are set on the namespace.daemonSetCount - New value for the property.public ResourceQuotaOptionsV1.Builder setReplicaSetCount(java.lang.Long replicaSetCount)
null, no replicaset limits are set on the namespace.replicaSetCount - New value for the property.public ResourceQuotaOptionsV1.Builder setReplicationControllerCount(java.lang.Long replicationControllerCount)
null, no replicationcontroller limits are set on the namespace.replicationControllerCount - New value for the property.public ResourceQuotaOptionsV1.Builder setStatefulSetCount(java.lang.Long statefulSetCount)
null, no statefulset limits are set on the namespace.statefulSetCount - New value for the property.public ResourceQuotaOptionsV1.Builder setConfigMapCount(java.lang.Long configMapCount)
null, no configmap limits are set on the namespace.configMapCount - New value for the property.public ResourceQuotaOptionsV1.Builder setSecretCount(java.lang.Long secretCount)
null, no secret limits are set on the namespace.secretCount - New value for the property.public ResourceQuotaOptionsV1.Builder setPersistentVolumeClaimCount(java.lang.Long persistentVolumeClaimCount)
null, no persistentvolumeclaim limits are set on the namespace.persistentVolumeClaimCount - New value for the property.public ResourceQuotaOptionsV1.Builder setJobCount(java.lang.Long jobCount)
null, no job limits are set on the namespace.jobCount - New value for the property.public ResourceQuotaOptionsV1 build()