Package io.fabric8.kubernetes.api.model
Class LimitRangeItem
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.LimitRangeItem
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<LimitRangeItemBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class LimitRangeItem extends Object implements io.fabric8.kubernetes.api.builder.Editable<LimitRangeItemBuilder>, KubernetesResource
LimitRangeItem defines a min/max usage limit for any resource that matches on kind.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LimitRangeItem()No args constructor for use in serializationLimitRangeItem(Map<String,Quantity> _default, Map<String,Quantity> defaultRequest, Map<String,Quantity> max, Map<String,Quantity> maxLimitRequestRatio, Map<String,Quantity> min, String type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LimitRangeItemBuilderedit()Map<String,Object>getAdditionalProperties()Map<String,Quantity>getDefault()Default resource requirement limit value by resource name if resource limit is omitted.Map<String,Quantity>getDefaultRequest()DefaultRequest is the default resource requirement request value by resource name if resource request is omitted.Map<String,Quantity>getMax()Max usage constraints on this kind by resource name.Map<String,Quantity>getMaxLimitRequestRatio()MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource.Map<String,Quantity>getMin()Min usage constraints on this kind by resource name.StringgetType()Type of resource that this limit applies to.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetDefault(Map<String,Quantity> _default)Default resource requirement limit value by resource name if resource limit is omitted.voidsetDefaultRequest(Map<String,Quantity> defaultRequest)DefaultRequest is the default resource requirement request value by resource name if resource request is omitted.voidsetMax(Map<String,Quantity> max)Max usage constraints on this kind by resource name.voidsetMaxLimitRequestRatio(Map<String,Quantity> maxLimitRequestRatio)MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource.voidsetMin(Map<String,Quantity> min)Min usage constraints on this kind by resource name.voidsetType(String type)Type of resource that this limit applies to.LimitRangeItemBuildertoBuilder()
-
-
-
Method Detail
-
getDefault
public Map<String,Quantity> getDefault()
Default resource requirement limit value by resource name if resource limit is omitted.
-
setDefault
public void setDefault(Map<String,Quantity> _default)
Default resource requirement limit value by resource name if resource limit is omitted.
-
getDefaultRequest
public Map<String,Quantity> getDefaultRequest()
DefaultRequest is the default resource requirement request value by resource name if resource request is omitted.
-
setDefaultRequest
public void setDefaultRequest(Map<String,Quantity> defaultRequest)
DefaultRequest is the default resource requirement request value by resource name if resource request is omitted.
-
setMax
public void setMax(Map<String,Quantity> max)
Max usage constraints on this kind by resource name.
-
getMaxLimitRequestRatio
public Map<String,Quantity> getMaxLimitRequestRatio()
MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource.
-
setMaxLimitRequestRatio
public void setMaxLimitRequestRatio(Map<String,Quantity> maxLimitRequestRatio)
MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource.
-
setMin
public void setMin(Map<String,Quantity> min)
Min usage constraints on this kind by resource name.
-
getType
public String getType()
Type of resource that this limit applies to.
-
setType
public void setType(String type)
Type of resource that this limit applies to.
-
edit
public LimitRangeItemBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<LimitRangeItemBuilder>
-
toBuilder
public LimitRangeItemBuilder toBuilder()
-
-